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
feita há 4 meses463 visualizações
1 Resposta
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
ENGENHEIRO DE SUPORTE
respondido há 4 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas