Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to read hive views using spark with hivecontext?

avatar

I am new to this spark... here i am trying to read the data from hive views... but failing... could anyone suggest me how to do that

Thanks in Advance.

som

1 ACCEPTED SOLUTION

avatar
Super Guru

@som

You would have to be more explicit about versions of Hive, Spark etc, also explain "failing". There is nothing different about accessing Hive views via Hive context from Spark as it is the same as with tables. Anyhow, check the following:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_spark-guide/content/ch_spark-hive-access...

https://hortonworks.com/hadoop-tutorial/using-hive-with-orc-from-apache-spark/

Hopefully this helps.

View solution in original post

1 REPLY 1

avatar
Super Guru

@som

You would have to be more explicit about versions of Hive, Spark etc, also explain "failing". There is nothing different about accessing Hive views via Hive context from Spark as it is the same as with tables. Anyhow, check the following:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_spark-guide/content/ch_spark-hive-access...

https://hortonworks.com/hadoop-tutorial/using-hive-with-orc-from-apache-spark/

Hopefully this helps.