Support Questions
Find answers, ask questions, and share your expertise
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://")

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

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?