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
posta 4 mesi fa461 visualizzazioni
1 Risposta
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
TECNICO DI SUPPORTO
con risposta 4 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande