title: Spark with Webhdfs/httpfs
body: <p>I would like to read a file from HDFS into Spark via httpfs or Webhdfs.  Something along the lines of</p>
  
  <blockquote>
    <p>sc.textFile("webhdfs://myhost:14000/webhdfs/v1/path/to/file.txt")</p>
  </blockquote>
  
  <p>or, ideally,</p>
  
  <blockquote>
    <p>sc.textFile("httpfs://myhost:14000/webhdfs/v1/path/to/file.txt")</p>
  </blockquote>
  
  <p>Is there a way to get Spark to read the file over Webhdfs/httpfs?</p>