[ 
https://issues.apache.org/jira/browse/SPARK-16349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15359774#comment-15359774
 ] 

Apache Spark commented on SPARK-16349:
--------------------------------------

User 'vanzin' has created a pull request for this issue:
https://github.com/apache/spark/pull/14020

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to