Reply
New Contributor
Posts: 1
Registered: ‎04-13-2017

PySpark Issue in Jupyter

Hi,

I have pyspark kernel setup and was able to see and use the kernel in JupyterHub.

However, when I run the below code , I get the below error. Could anyone please let me know why I'm getting this error.

Below is the line I have in Jupyter Notebook File.
print(sc) 
I'm getting the below error.
NameError: name 'sc' is not defined

Any help would be greatly useful. Tried few things and still unable to resolve.

Thanks!

 

 

Announcements