Parquet file load into Hive

#1

If Parquet file is given, how do I load into Hive. When avro file is given, I will get schema out of it, then use
create table table_avro stored as avro location '/hdfs/path’
tblproperties (‘avro.schema.url’=‘avsc/file/hdfs/path/’)

Do you load parquet table in the same way, if so how do I get parquet schema. Or, do I need to define table DDL and load data without getting into parquet schema.

0 Likes

#2

I think to create parquet table, they have to provide fields information. Using this, create table tabname(…)stored as parquet location …

0 Likes

#3

@bdh8… just create table with stored as parquet… no need of schema defining for parquet file separately.

0 Likes