title: 'SparkContext' object has no attribute 'textfile'
body: <p>I tried loading a file by using following code: </p>
  
  <pre><code>textdata = sc.textfile('hdfs://localhost:9000/file.txt')
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>AttributeError: 'SparkContext' object has no attribute 'textfile'</p>
  </blockquote>