GitHub user zjffdu opened a pull request: https://github.com/apache/spark/pull/9142
[SPARK-11102] [SQL] Uninformative exception when specifing non-exist ⦠â¦input for JSON data source Here's the exception after this patch ``` scala> val people = sqlContext.read.json("/Users/hadoop/github/spark/examples/src/main/resources/people.json") 15/10/16 07:41:10 INFO JSONRelation: Listing hdfs://0.0.0.0:9000/Users/jzhang/github/spark/examples/src/main/resources/users.parquet on driver java.lang.RuntimeException: Input paths do not exist or are empty directories, Input Paths=hdfs://0.0.0.0:9000/Users/hadoop/github/spark/examples/src/main/resources/people.json at org.apache.spark.sql.execution.datasources.json.JSONRelation.org$apache$spark$sql$execution$datasources$json$JSONRelation$$createBaseRdd(JSONRelation.scala:91) at org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$6$$anonfun$apply$1.apply(JSONRelation.scala:109) at org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$6$$anonfun$apply$1.apply(JSONRelation.scala:109) at scala.Option.getOrElse(Option.scala:120) at org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$6.apply(JSONRelation.scala:109) at org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$6.apply(JSONRelation.scala:103) at scala.Option.getOrElse(Option.scala:120) at org.apache.spark.sql.execution.datasources.json.JSONRelation.dataSchema$lzycompute(JSONRelation.scala:103) at org.apache.spark.sql.execution.datasources.json.JSONRelation.dataSchema(JSONRelation.scala:102) at org.apache.spark.sql.sources.HadoopFsRelation.schema$lzycompute(interfaces.scala:561) at org.apache.spark.sql.sources.HadoopFsRelation.schema(interfaces.scala:560) at org.apache.spark.sql.execution.datasources.LogicalRelation.<init>(LogicalRelation.scala:37) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:123) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:107) at org.apache.spark.sql.DataFrameReader.json(DataFrameReader.scala:222) at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:19) at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:24) at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:26) at $iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:28) at $iwC$$iwC$$iwC$$iwC.<init>(<console>:30) at $iwC$$iwC$$iwC.<init>(<console>:32) at $iwC$$iwC.<init>(<console>:34) at $iwC.<init>(<console>:36) at <init>(<console>:38) at .<init>(<console>:42) at .<clinit>(<console>) at .<init>(<console>:7) at .<clinit>(<console>) ``` You can merge this pull request into a Git repository by running: $ git pull https://github.com/zjffdu/spark SPARK-11102 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/9142.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #9142 ---- commit 312cbe21c3b2e2ae8ee00034b9842170cb28c969 Author: Jeff Zhang <zjf...@apache.org> Date: 2015-10-16T00:05:33Z [SPARK-11102] [SQL] Uninformative exception when specifing non-exist input for JSON data source ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org