-2

While I am trying to import SparkContext from pyspark on apache zeppelin, following error is shown: enter image description here

BlueSheepToken
  • 5,751
  • 3
  • 17
  • 42

1 Answers1

0

You should use the spark.pyspark interpreter instead of the python one if you need a spark context. Try:

%spark.pyspark
print(sc)
florpor
  • 201
  • 1
  • 6