Search

Can we save RDBMS table into Hive table with Avro file format and compression enabled? If yes how can we do that ?



Yes, we can use –as-avrodatafile clause to create the target file as avro file and -z,–compress clause as argument, optionally we can specify –compression-codec <c> to provide the compression codec class name.