While I am trying to import SparkContext from pyspark on apache zeppelin, following error is shown:
Asked
Active
Viewed 288 times
-2

BlueSheepToken
- 5,751
- 3
- 17
- 42
-
3Please post errors as text, otherwise search & google will not find them. – James Z Jan 14 '19 at 15:15
1 Answers
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