Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sc not defined #5

Open
mnarrell opened this issue Jul 2, 2015 · 2 comments
Open

sc not defined #5

mnarrell opened this issue Jul 2, 2015 · 2 comments

Comments

@mnarrell
Copy link

mnarrell commented Jul 2, 2015

Installed on Ambari 2.0.1, HDP 2.2. HDFS/YARN/Tez/Zookeeper/Spark/Metrics

words = sc.textFile("file:///tmp/hello.txt")
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-3ddcf4589bfc> in <module>()
----> 1 words = sc.textFile("file:///tmp/hello.txt")

NameError: name 'sc' is not defined
@azimut
Copy link

azimut commented Mar 9, 2016

same here, but for python it seems that you need to follow what they do the .ipynb on examples/ to define sc, that works for me

@Rosana-ManWithVision
Copy link

You have either not installed spark or you have not imported it before you began to code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants