You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/07/01 22:44:11 UTC
[jira] [Assigned] (SPARK-16349) IsolatedClientLoader ignores needed
Hadoop classes not present in Spark's loader
[ https://issues.apache.org/jira/browse/SPARK-16349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-16349:
------------------------------------
Assignee: Apache Spark
> 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
> Assignee: Apache Spark
>
> 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