Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to read hive views using spark with hivecontext?

avatar
New Member

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.