Oleg Danilov created SPARK-5194:
-----------------------------------

             Summary: ADD JAR doesn't update classpath until reconnect
                 Key: SPARK-5194
                 URL: https://issues.apache.org/jira/browse/SPARK-5194
             Project: Spark
          Issue Type: Bug
    Affects Versions: 1.2.0
            Reporter: Oleg Danilov


Steps to reproduce:

beeline>  !connect jdbc:hive2://vmhost-vm0:10000                                
   
0: jdbc:hive2://vmhost-vm0:10000> add jar 
./target/nexr-hive-udf-0.2-SNAPSHOT.jar
0: jdbc:hive2://vmhost-vm0:10000> CREATE TEMPORARY FUNCTION nvl AS 
'com.nexr.platform.hive.udf.GenericUDFNVL';
0: jdbc:hive2://vmhost-vm0:10000> select nvl(imsi,'test') from 
ps_cei_index_1_week limit 1;
Error: java.lang.ClassNotFoundException: 
com.nexr.platform.hive.udf.GenericUDFNVL (state=,code=0)
0: jdbc:hive2://vmhost-vm0:10000> !reconnect
Reconnecting to "jdbc:hive2://vmhost-vm0:10000"...
Closing: org.apache.hive.jdbc.HiveConnection@3f18dc75: {1}
Connected to: Spark SQL (version 1.2.0)
Driver: null (version null)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://vmhost-vm0:10000> select nvl(imsi,'test') from 
ps_cei_index_1_week limit 1;
+------+
| _c0  |
+------+
| -1   |
+------+
1 row selected (1.605 seconds)




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