I am trying to read a file in Spark Shell that comes with CentOS distribution of Cloudera on my local machine. Following are the commands I have entered in Spark Shell.

```
spark-shell
val fileData = sc.textFile("hdfs://user/home/cloudera/cm_api.py");
fileData.count

```

I also tried this statment for reading file:

```
val fileData = sc.textFile("user/home/cloudera/cm_api.py");

```

However I am getting

```
org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://quickstart.cloudera:8020/user/cloudera/user/cloudera/cm_api.py

```

I haven't changed any settings or configurations. What am I doing wrong?