Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

95
Visualizações
Writing hive columns headers to S3 via Create Table statement

I'm trying to get the column headers into a S3 file.

When I run this on the hive command line:

set hive.cli.print.header=true;
select * from abc;

Things work fine, I'm able to see the column headers with the table data on the console.

But my query is, when I try something like this:

set hive.cli.print.header=true;
CREATE TABLE test123 ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' STORED AS TEXTFILE LOCATION 's3://somelocation' AS
select * abc;

The column headers are missing from the S3 file.

Is this the expected behaviour or am I missing something?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

It does not work like that.
The columns names are not written as headers to the data files.
The columns` information (names, types, order) is kept in a "metastore" -
a database (MySql, Derby, Oracle, etc.) that holds hive's metadata.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda