Spark -submit failing with Input path does not exist


I am getting input path does not exist error and following are the error and file. Could you please let me know what is wrong witht the path.

I have data in the directory: /user/rajeshv28/sqoop_import/departments

[rajeshv28@gw01 ~]$ spark-submit --master yarn --conf “spark.ui.port=10101”
Multiple versions of Spark are installed but SPARK_MAJOR_VERSION is not set
Spark1 will be picked by default
spark.yarn.driver.memoryOverhead is set but does not apply in client mode.
Traceback (most recent call last):
File “/home/rajeshv28/”, line 6, in
for line in dataRDD.collect():
File “/usr/hdp/”, line 771, in collect
File “/usr/hdp/”, line 813, in call
File “/usr/hdp/”, line 308, in get_return_value
py4j.protocol.Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.collectAndServe.
: org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://
at org.apache.hadoop.mapred.FileInputFormat.singleThreadedListStatus(
at org.apache.hadoop.mapred.FileInputFormat.listStatus(
at org.apache.hadoop.mapred.FileInputFormat.getSplits(
at org.apache.spark.rdd.HadoopRDD.getPartitions(HadoopRDD.scala:199)

Here is my file:

from pyspark import SparkContext, SparkConf
conf = SparkConf().setAppName(“pyspark”)
sc = SparkContext(conf=conf)
dataRDD = sc.textFile("/user/rajeshv28/sqoop_import/departments")
for line in dataRDD.collect():

use this

print dataRDD.collect()

instead of
for line in dataRDD.collect():


Thank you for your response and I changed it as per your suggestion and i am getting same error. Looks like its not recognizing the input file path.