[ 
https://issues.apache.org/jira/browse/SPARK-8306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yin Huai updated SPARK-8306:
----------------------------
    Description: In {{AddJar}} command, we are using 
{{org.apache.hadoop.hive.ql.metadata.Hive.get().getConf().setClassLoader(newClassLoader)}}.
 However, the conf returned by {{Hive.get().getConf()}} is not necessary the 
one set in {{executionHive.state}}. Thus, we may fail to set the correct class 
loader to {{executionHive}} in some cases.  (was: We do not need to call 
{{Thread.currentThread().setContextClassLoader(getClass.getClassLoader)}} to 
switch classloader for executionHive since we are using the built-in hive and 
the class loader returned by {{getClass.getClassLoader}} may not have user jars 
in some use cases.)

> AddJar command needs to set the new class loader to the HiveConf inside 
> executionHive.state.
> --------------------------------------------------------------------------------------------
>
>                 Key: SPARK-8306
>                 URL: https://issues.apache.org/jira/browse/SPARK-8306
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.4.0
>            Reporter: Yin Huai
>            Assignee: Yin Huai
>
> In {{AddJar}} command, we are using 
> {{org.apache.hadoop.hive.ql.metadata.Hive.get().getConf().setClassLoader(newClassLoader)}}.
>  However, the conf returned by {{Hive.get().getConf()}} is not necessary the 
> one set in {{executionHive.state}}. Thus, we may fail to set the correct 
> class loader to {{executionHive}} in some cases.



--
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

Reply via email to