May 2017
Beginner to intermediate
596 pages
15h 2m
English
Now let us visualize the loaded data by creating Hive tables over the binary Avro data by executing the following Hive table scripts (using Hive Query Editor):
CREATE EXTERNAL TABLE customerROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.avro.AvroSerDe'STORED AS INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat'OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat'LOCATION '/datalake/raw/customer'TBLPROPERTIES ( 'avro.schema.literal'='{"namespace": "example.avro", "type": "record", "name": "Customer", "fields": [ {"name": "id", "type": "int"}, {"name": "first_name", "type": "string"}, {"name": "last_name", ...