Just export that path in your class path and restart megastore service. On Jun 27, 2014 7:26 PM, "Rishabh Bhardwaj" <rbnex...@yahoo.com> wrote:
> 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 > > >