spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Breame (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-23226) Cannot read CSV file from Windows UNC network path
Date Fri, 26 Jan 2018 09:00:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-23226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Colin Breame updated SPARK-23226:
---------------------------------
    Description: 
An exception is thrown when reading CSV files from a Window UNC path.

 

*Example*

val df = spark.read.csv("//unc/path/to/file.csv")

*Expected Result*

The csv file should be read.

*Actual Result*

java.io.IOException: No FileSystem for scheme: null
 at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2660)
 at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2667)
 at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:94)
 at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2703)
 at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2685)
 at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:373)
 at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
 at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$14.apply(DataSource.scala:372)
 at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$14.apply(DataSource.scala:370)
 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:370)
 at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:152)
 at org.apache.spark.sql.DataFrameReader.csv(DataFrameReader.scala:415)
 at org.apache.spark.sql.DataFrameReader.csv(DataFrameReader.scala:352)
 ... 48 elided

  was:
An exception is thrown when reading CSV files from a Window UNC path.

 

*Example*

val df = spark.read.csv(raw"\\unc\path\to\file.csv")

*Expected Result*

The csv file should be read.

*Actual Result*

java.io.IOException: No FileSystem for scheme: null
 at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2660)
 at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2667)
 at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:94)
 at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2703)
 at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2685)
 at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:373)
 at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
 at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$14.apply(DataSource.scala:372)
 at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$14.apply(DataSource.scala:370)
 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:370)
 at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:152)
 at org.apache.spark.sql.DataFrameReader.csv(DataFrameReader.scala:415)
 at org.apache.spark.sql.DataFrameReader.csv(DataFrameReader.scala:352)
 ... 48 elided


> Cannot read CSV file from Windows UNC network path
> --------------------------------------------------
>
>                 Key: SPARK-23226
>                 URL: https://issues.apache.org/jira/browse/SPARK-23226
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0
>         Environment: Windows 10
>            Reporter: Colin Breame
>            Priority: Major
>
> An exception is thrown when reading CSV files from a Window UNC path.
>  
> *Example*
> val df = spark.read.csv("//unc/path/to/file.csv")
> *Expected Result*
> The csv file should be read.
> *Actual Result*
> java.io.IOException: No FileSystem for scheme: null
>  at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2660)
>  at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2667)
>  at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:94)
>  at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2703)
>  at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2685)
>  at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:373)
>  at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
>  at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$14.apply(DataSource.scala:372)
>  at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$14.apply(DataSource.scala:370)
>  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:370)
>  at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:152)
>  at org.apache.spark.sql.DataFrameReader.csv(DataFrameReader.scala:415)
>  at org.apache.spark.sql.DataFrameReader.csv(DataFrameReader.scala:352)
>  ... 48 elided



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message