title: Pyspark can't read csv file in a shared folder on the network
body: <p>I have a problem reading a csv file on a shared folder (Network) using
  <strong>spark.read.csv</strong></p>
  <p>I tried the same with <strong>pandas pd.read_csv</strong> , and it worked</p>
  <p>I also tried to move the same file to the local drive and read it with spark.read.csv, and it worked.</p>
  <p>So, Whenever I read csv using spark.read.csv , I get this error</p>
  <p><strong>spark.read.csv(&quot;//hqhome/7-Days-Share/Nessus reports/old/01-05-2021/Internal Windows/Internal_Windows_Agent_Scan_ajrfr4.csv&quot;,header=True)</strong></p>
  <pre><code>Py4JJavaError: An error occurred while calling o167.csv.
  : org.apache.hadoop.fs.UnsupportedFileSystemException: No FileSystem for scheme &quot;null&quot;
      at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:3281)
      at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3301)
      at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:124)
      at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3352)
      at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3320)
      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:479)
      at org.apache.hadoop.fs.Path.getFileSystem(Path.java:361)
      at org.apache.spark.sql.execution.streaming.FileStreamSink$.hasMetadata(FileStreamSink.scala:46)
      at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:377)
      at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:325)
      at org.apache.spark.sql.DataFrameReader.$anonfun$load$3(DataFrameReader.scala:307)
      at scala.Option.getOrElse(Option.scala:189)
      at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:307)
      at org.apache.spark.sql.DataFrameReader.csv(DataFrameReader.scala:795)
      at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
      at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
      at py4j.Gateway.invoke(Gateway.java:282)
      at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
      at py4j.commands.CallCommand.execute(CallCommand.java:79)
      at py4j.GatewayConnection.run(GatewayConnection.java:238)
      at java.lang.Thread.run(Unknown Source)
  </code></pre>