Imported single table using sqoop
...
--as-avrodatafile
--compression-codec ...SnappyCodec
...
Viewing in Hue file browser confirms that it is compressed by displaying a message Output rendered from compressed avro file.
Created external table in Hive as
create external table customers_avro
stored as avro
location '.../path/'
tblproperties('avro.schema.file'='/path/to/customers.avsc')
However, when querying with describe extended tblname
shows compressed:false
...
inputFormat:org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat, outputFormat:org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat, compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, serializationLib:org.apache.hadoop.hive.serde2.avro.AvroSerDe, parameters:{serialization.format=1})...
Is there any other property that needs to be set with tblproperties
?