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
demandé il y a 4 mois461 vues
1 réponse
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 4 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions