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.

Sandbox Tutorial - Zeppelin and Spark 1.6.0

Highlighted

Sandbox Tutorial - Zeppelin and Spark 1.6.0

New Contributor

Hi All,

I am using the HDP 2.4 sandbox (not the latest one, we are aware of it) and trying to follow the tutorial which seems to be updated for 2.6.

At the Zeppelin tutorial part [Clicky!], it is using spark2, which is not available on the HDP 2.4 sandbox.
The Sandbox has Spark 1.6.0.
I was able to adjust the code in the examples

%spark2

val drivermileage_temp1 = hiveContext.sql("select * from drivermileage")

To

%spark

sqlc.sql("show tables").show()


But I can't find a way for the "Querying Against a Table" section :

%spark 

geolocation_temp1.createOrReplaceTempView("geolocation_temp1") 

drivermileage_temp1.createOrReplaceTempView("drivermileage_temp1")

hiveContext.sql("show tables").show()


How can I adjust the following code to make it with with Spark 1.6.0 ?

Thank you very much !