title: reading a file in hdfs from pyspark
body: <p>I'm trying to read a file in my hdfs. Here's a showing of my hadoop file structure.</p>
  
  <pre><code>hduser@GVM:/usr/local/spark/bin$ hadoop fs -ls -R /
  drwxr-xr-x   - hduser supergroup          0 2016-03-06 17:28 /inputFiles
  drwxr-xr-x   - hduser supergroup          0 2016-03-06 17:31 /inputFiles/CountOfMonteCristo
  -rw-r--r--   1 hduser supergroup    2685300 2016-03-06 17:31 /inputFiles/CountOfMonteCristo/BookText.txt
  </code></pre>
  
  <p>Here's my pyspark code:</p>
  
  <pre><code>from pyspark import SparkContext, SparkConf
  
  conf = SparkConf().setAppName("myFirstApp").setMaster("local")
  sc = SparkContext(conf=conf)
  
  textFile = sc.textFile("hdfs://inputFiles/CountOfMonteCristo/BookText.txt")
  textFile.first()
  </code></pre>
  
  <p>The error I get is: </p>
  
  <pre><code>Py4JJavaError: An error occurred while calling o64.partitions.
  : java.lang.IllegalArgumentException: java.net.UnknownHostException: inputFiles
  </code></pre>
  
  <p>Is this because I'm setting my sparkContext incorrectly? I'm running this in a ubuntu 14.04 virtual machine through virtual box. </p>
  
  <p>I'm not sure what I'm doing wrong here....</p>