You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2016/07/01 22:30:11 UTC
[jira] [Created] (SPARK-16349) IsolatedClientLoader ignores needed
Hadoop classes not present in Spark's loader
Marcelo Vanzin created SPARK-16349:
--------------------------------------
Summary: IsolatedClientLoader ignores needed Hadoop classes not present in Spark's loader
Key: SPARK-16349
URL: https://issues.apache.org/jira/browse/SPARK-16349
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.0.0
Reporter: Marcelo Vanzin
While trying to use a custom classpath for metastore jars (spark.sql.hive.metastore.jars pointing at some filesystem path), I ran into the following issue:
{noformat}
java.lang.ClassNotFoundException: java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/MRVersion when creating Hive client using classpath
{noformat}
The issue here is that {{MRVersion}} is not packaged anywhere with Spark, and the code in {{IsolatedClientLoader}} only ever tries the parent class loader when loading hadoop classes in this configuration. So even though I had the class in the list of files in {{spark.sql.hive.metastore.jars}}, Spark never tries to load it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org