Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to insert a record into hive table (avro format) from spark streaming ?

How to insert a record into hive table (avro format) from spark streaming ?

New Contributor

I am getting this error while executing the command: df.write.insertInto(hive_table)

15569-12.jpg

1 REPLY 1
Highlighted

Re: How to insert a record into hive table (avro format) from spark streaming ?

Expert Contributor

I suspect that you did not create the hive table with the correct serde. Are you using the avro serde described here:

https://cwiki.apache.org/confluence/display/Hive/AvroSerDe

Don't have an account?
Coming from Hortonworks? Activate your account here