[ https://issues.apache.org/jira/browse/SPARK-16349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yin Huai updated SPARK-16349: ----------------------------- Assignee: Marcelo Vanzin > 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: Marcelo Vanzin > Fix For: 2.1.0 > > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org