HIVE_BAD_DATA: Not valid Parquet file

0

HIVE_BAD_DATA: Not valid Parquet file: s3://adp-to-aqt-dev/partition1/partition1.csv expected magic number: PAR1 got: ,, This query ran against the "" database, unless qualified by the query.

Vasu
已提问 4 个月前464 查看次数
1 回答
3

Hello,

In general, the parquet file consists of header, one or more blocks and footer. The parquet file format contains a 4-byte magic number in the header (PAR1) and at the end of the footer. This is a magic number indicates that the file is in parquet format. All the file metadata stored in the footer section.

Based on the above exception, the parquet file seems to be not valid. You can simply use parquet-tools utility to analyze the file format to make sure the file is not corrupted & valid.

parquet-tools cat --json <your-file-name-with-location>

You can refer this documents [1] [2] to configure the parquet-tools to validate the files.

AWS
支持工程师
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则