Professional Documents
Culture Documents
Lecture 28.6 Code File
Lecture 28.6 Code File
-------------------------------------------
username - root
password - cloudera
Use retail_db;
show tables;
Create hive table on top of the data using the schema extracted in earlier steps.
----------------------------------------------------------------------------------
CREATE EXTERNAL TABLE customers_avro
stored as avro
LOCATION '/customers_avro_data'
TBLPROPERTIES ('avro.schema.url'='hdfs:///customers_avro_metadata/schema');
Sqooping using SNAPPY compression codec
----------------------------------------
Create hive table on top of the data using the schema extracted in earlier steps.
----------------------------------------------------------------------------------
CREATE EXTERNAL TABLE customers_avro_snappy
stored as avro
LOCATION '/customers_avro_data'
TBLPROPERTIES ('avro.schema.url'='hdfs:///customers_avro_metadata/schema');