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
asked 4 months ago435 views
1 Answer
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
SUPPORT ENGINEER
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions