title: How to access files specified by --files?
body: <p>I'm trying to read in <code>derp.csv</code> specified by <code>--files</code>, but I'm getting path not found. What do?</p>
  
  <pre><code>spark2-shell --master yarn --files derp.csv
  scala&gt; spark.read.csv("file:///derp.csv")
  org.apache.spark.sql.AnalysisException: Path does not exist: file:/derp.csv;
    at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$14.apply(DataSource.scala:360)
    at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$14.apply(DataSource.scala:348)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
    at scala.collection.immutable.List.foreach(List.scala:381)
    at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:344)
    at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:348)
    at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:178)
    at org.apache.spark.sql.DataFrameReader.csv(DataFrameReader.scala:533)
    at org.apache.spark.sql.DataFrameReader.csv(DataFrameReader.scala:412)
    ... 48 elided
  </code></pre>