Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

239
Vistas
Why are my ORC with SNAPPY compressed files larger than the original files?

I set up a first Hive table with GZIP-compressed files:

CREATE EXTERNAL TABLE table_gzip (
    col1,
    col2,
    col3
)
ROW FORMAT DELIMITED,
  FIELDS TERMINATED BY ','
  LINES TERMINATED BY '\n'
LOCATION
  's3://bucket/files_gzip/';

Then I set up another Hive table with ORC format:

CREATE EXTERNAL TABLE table_orc (
    col1,
    col2,
    col3
)
STORED AS ORC
LOCATION
   's3://bucket/files_orc/';
ALTER TABLE table_orc SET tblproperties ("orc.compress" ="SNAPPY");

And then I uncompressed and recompressed from GZIP to ORC using this query:

INSERT OVERWRITE TABLE table_gzip SELECT * FROM table_orc

Once this query finished, I had new ORC-compressed files in 's3://bucket/files_orc/'. So far so good.

However when I looked at the files, they went from 500 1.2GiB files to 500 1.6GiB files.

What did I do wrong? Why are my ORC-SNAPPY compressed files larger than the original files? Is GZIP a better compression method?

Thanks for your time.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda