Cloudera Employee
Posts: 20
Registered: ‎09-11-2013
Re: Impala: Parquet error "Invalid file footer" on pipe-delimited file

The ROW FORMAT clause only applies to tables using the text format.  STORED AS PARQUET means the table expects the data to already be in Parquet format. You will need to make 2 tables.  One table with no STORED AS clause but with ROW FORMAT DELIMITED etc.  You will be able to query this table after you move the delimited data files into the table directory and REFRESH the table).  Then another (empty) table with the same columns and a STORED AS PARQUET clause.  Then to convert the data to Parquet, you do:

 

insert into parquet_table select * from text_table;

 

John

View solution in original post

Who Me Too'd this solution