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

BELUGA BEHR commented on HIVE-18821:
------------------------------------

This is the way that 'beeline' works.  Beeline is a pretty simple client that 
simply forwards your statements to a HiveServer2 instance.  Therefore, if 
providing a JAR file path that is local, the file must be locally accessible to 
the HiveServer2 receiving the request, not the client submitting it.  The 
'hive' shell is a thick client and it processes the statements itself, 
internally, therefore when it receives an {{ADD JAR}} command, it will be able 
to successfully access the file.

You are better off putting your JAR files into {{hive.aux.jars.path}}

https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration

> Add jar in hive is not working when executed from beeline
> ---------------------------------------------------------
>
>                 Key: HIVE-18821
>                 URL: https://issues.apache.org/jira/browse/HIVE-18821
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 1.2.1
>         Environment: Hive 1.2.1000.2.5.3.0-37
> Hadoop 2.7.3.2.5.3.0-37
>            Reporter: Ranjan Choudhury
>            Priority: Critical
>
> Add jar in hive is not working when executed from beeline.
>  Steps to reproduce:
>  1. Run beeline
>  2. Connect to hive using command !connect jdbc:hive2://localhost:10000
>  3. Provide username/password
>  4. Execute: add jar <jarPathName>;
> it throws exception "Error: Error while processing statement: 
> /home/ranjan/token-mask/bedrock-masking-UDF-5.0.0-FINAL.jar does not exist 
> (state=,code=1)" even though there are files in <jarPathName>. When i execute 
> the command hive CLI, it works successfully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to