I have created hive external table by using .avsc file. now I would like to load the data from avro file to the table.
can some one suggest how to load the data.
CREATE EXTERNAL TABLE data_hive
ROW 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 'hdfs location to save the table'
TBLPROPERTIES ('avro.schema.url'='<avro schema location>');