GitHub user zsxwing opened a pull request:
https://github.com/apache/spark/pull/13201
[SPARK-15416][PySpark]Display a better message for not finding classes
removed in Spark 2.0
## What changes were proposed in this pull request?
If finding `NoClassDefFoundError` or `ClassNotFoundException`, check if the
class name is removed in Spark 2.0. If so, the user must be using an
incompatible library and we can provide a better message.
## How was this patch tested?
1. Run `bin/pyspark --packages com.databricks:spark-avro_2.10:2.0.1`
2. type
`sqlContext.read.format("com.databricks.spark.avro").load("src/test/resources/episodes.avro")`.
It will show `pyspark.sql.utils.IncompatibilityException:
u'org.apache.spark.sql.sources.HadoopFsRelationProvider is removed in Spark
2.0. Please check if your library is compatible with Spark 2.0'`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zsxwing/spark better-message
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13201.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 #13201
----
commit f92ce1f2aebe94e2dc61aad811a96ee47b5eff27
Author: Shixiong Zhu <[email protected]>
Date: 2016-05-19T20:25:12Z
Display a better message for not finding classes removed in Spark 2.0
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]