Ducaz035 Ducaz035 - 1 month ago 15
Java Question

Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask

I would like to create a function like;

CREATE TEMPORARY FUNCTION func AS 'pathTo/TrackToCsvExtractor';


This is the returning message of adding jar file.

Added /mnt/var/lib/hive_0110/downloaded_resources/TrackToCsvExtractor.jar to class path
Added resource: /mnt/var/lib/hive_0110/downloaded_resources/TrackToCsvExtractor.jar


And, i am facing an error

FAILED: Class pathTo/TrackToCsvExtractor not found
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask


All the class files are correct and although i have been adding the jar file and whenever i do

list jars;


It does lists me the jar file that i have added.
I am totally out of ideas and wondering why do i facing this error.

Cheers,

Answer

I found my answer on my own, I had to compile the jar files with all the classes and etc with everything instead of just the class that I would use.

Comments