Hi,
Using ConvertCSVtoAvro processor, I was successfully able to convert CSV to AVRO .Now my requirement is to insert this Avro data to existing Hive table using NIFI but i am stuck here. How can i do this?.
I am using below statement currently to insert the Avro file to Hive table.
CREATE EXTERNAL TABLE avroTEST
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 '/user/test/csvData/AVRO'
TBLPROPERTIES ('avro.schema.url'='hdfs:///user/hive/schemas/newavro.schema');
also please let me know if there is any other optimal way of doing this.