title: How to load local file in sc.textFile, instead of HDFS
body: <p>I'm following the great <a href="https://www.youtube.com/watch?v=VWeWViFCzzg">spark tutorial</a></p>
  
  <p>so i'm trying at 46m:00s to load the <code>README.md</code> but fail to what i'm doing is this:</p>
  
  <pre><code>$ sudo docker run -i -t -h sandbox sequenceiq/spark:1.1.0 /etc/bootstrap.sh -bash
  bash-4.1# cd /usr/local/spark-1.1.0-bin-hadoop2.4
  bash-4.1# ls README.md
  README.md
  bash-4.1# ./bin/spark-shell
  scala&gt; val f = sc.textFile("README.md")
  14/12/04 12:11:14 INFO storage.MemoryStore: ensureFreeSpace(164073) called with curMem=0, maxMem=278302556
  14/12/04 12:11:14 INFO storage.MemoryStore: Block broadcast_0 stored as values in memory (estimated size 160.2 KB, free 265.3 MB)
  f: org.apache.spark.rdd.RDD[String] = README.md MappedRDD[1] at textFile at &lt;console&gt;:12
  scala&gt; val wc = f.flatMap(l =&gt; l.split(" ")).map(word =&gt; (word, 1)).reduceByKey(_ + _)
  org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://sandbox:9000/user/root/README.md
      at org.apache.hadoop.mapred.FileInputFormat.singleThreadedListStatus(FileInputFormat.java:285)
  </code></pre>
  
  <p>how can I load that <code>README.md</code>?</p>