hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rishabh Bhardwaj <rbnex...@yahoo.com>
Subject Error in adding Hive UDF
Date Fri, 27 Jun 2014 13:56:13 GMT
Hi all,
I have a udf namely gwudf.jar
I have it on my local dir at /tmp/gwudf.jar ,and
also at hdfs at /user/hive/lib/gwudf.jar

so when I am adding this jar, The following error comes

Adding like this,

hive> add jar /tmp/gwudf.jar;                                 

Added /tmp/gwudf.jar to class path
Added resource: /tmp/gwudf.jar


Error in the query,
Job Submission failed with exception 'java.io.FileNotFoundException(File does not exist: hdfs://localhost:9000/tmp/root_16639@localhost.localdomain_201406271859_resources/gwudf.jar)'



I also tried by giving the hdfs path while adding the jar file as,
Adding like this,

hive> add jar hdfs:///tmp/gwudf.jar;
converting to local hdfs:///tmp/gwudf.jar
Added /tmp/root_16639@localhost.localdomain_201406271859_resources/gwudf.jar to class path
Added resource: /tmp/root_16639@localhost.localdomain_201406271859_resources/gwudf.jar


Error while running the query,
Job Submission failed with exception 'java.io.FileNotFoundException(File does not exist: hdfs://localhost:9000/tmp/root_16639@localhost.localdomain_201406271859_resources/gwudf.jar)'



Please Help.

Thanks,
Rishabh
Mime
View raw message