Added jars are not available after running shell command in hive that uses hive

2015-06-22 Thread Harel Gliksman
Hi,

We encounter strange behavior on Hive 13.0.1 on Amazon EMR:

add jar my.jar //Loading a jar that contains udfs
create temporary function my_func as "some.package.Func"
!hive -e "";
select  my_func(column1)
from mytable

This results in:

The UDF implementation class 'some.package.Func' is not present in the
class path



We had no such problem when using hive 0.11


[jira] [Created] (HIVE-11081) Running hive commands from an external command line ( using ! ) makes added UDF disappear

2015-06-22 Thread harel gliksman (JIRA)
harel gliksman created HIVE-11081:
-

 Summary: Running hive commands from an external command line ( 
using ! ) makes added UDF disappear
 Key: HIVE-11081
 URL: https://issues.apache.org/jira/browse/HIVE-11081
 Project: Hive
  Issue Type: Bug
Affects Versions: 0.13.1
 Environment: Amazon EMR AMI 3.5.0
Reporter: harel gliksman
Priority: Minor


add jar myjar.jar
create temporary function myfunc as '...'
create some table
!hive -e "" --some commnd line that uses hive (such as a customized script that 
adds partitions to a table)
use myfunc in a query

This results in The UDF implementation class '...' is not present in the class 
path.

Without the shell command it works,
Even weirder is that running "list jars" does show the added jar still the 
exception is thrown...  

This did not happen on Hive 0.11



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)