hive looks for hdfs private directory for jar -
how add jar work in hive? when add local jar file, add jar /users/course/jars/json-serde-1.3.1.jar
;
hive query fails , says not find jar in hdfs, same directory. job submission failed exception 'java.io.filenotfoundexception(file not exist: hdfs://localhost:9000/users/course/jars/json-serde-1.3.1.jar)
then put jar hdfs, add jar using hdfs filepath. add jar hdfs://localhost/users/course/jars/json-serde-1.3.1.jar;
now, hive query says
file not exist: hdfs://localhost:9000/private/var/folders/k5/bn104n8s72sdpg3tg7d8kkpc0000gn/t/a598a513-d7c9-4d55-9280-b6554487cac7_resources/json-serde-1.3.1.jar
i have no idea why keeps looking jar in wrong places.
i believe hive looks jar locally, not on hdfs.
so if home directory on gateway server is
pwd /home/my_username/
and jar sitting locally at:
/home/my_username/hive_udfs/awesomeness.jar
then i'd go hive shell , run:
add jar /home/my_username/awesomeness.jar
at least, works me in environment. hth. luck! :)
Comments
Post a Comment