Support Questions

Find answers, ask questions, and share your expertise

Unable to INSTANTIATE SPARKSESSION using %spark2 val hiveContext = new org.apache.spark.sql.SparkSession.Builder().getOrCreate(),unable to INSTANTIATE SPARKSESSION by

New Contributor

19503-screen-shot-2017-07-17-at-62849-pm.png

19502-screen-shot-2017-07-17-at-62113-pm.png

I am trying this command form zeppelin notebook. I also tried using spark2 then it gives prefix not found

2 REPLIES 2

Expert Contributor

Can you post your interpreter configuration for spark/spark2? It should be at the following URL if you are using the HDP sandbox: http://127.0.0.1:9995/#/interpreter

Expert Contributor

The spark2 interpreter does not exist on your version of the sandbox. You should update your sandbox:
https://hortonworks.com/downloads/#sandbox