Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Please see the Cloudera blog for information on the Cloudera Response to CVE-2021-4428

Getting an error while trying to create a RDD,Getting an error while trying to create RDD

New Contributor

While running the tutorial, I am getting an error on the step where trying to create a RDD.

%sh val file = sc.textFile("hdfs://sandbox.hortonworks.com:8020/tmp/Hortonworks")

Process exited with an error: 1 (Exit value: 1)
ERROR Took 0 seconds ,
1 REPLY 1

New Contributor

It worked if I do not use the shell interpreter command in the beginning. So it probably used the default Spark interpreter. Correct?