I have created a hadoop cluster using hortonworks sanbox VM on windows. For that I am using putty SSH. I want to add a custom jsonserde jar to hive. I am using add jar
command, but i am getting an error like
-bash: add: command not found.
This is for putty ssh
add jar /usr/hdp/2.5.0.0-1245/hive/lib/json-serde-1.3.7-SNAPSHOT-jar-with-dependencies.jar;
I expect this jar
to be added to specified path.
ADD JAR
is a Hive command, not shell. Read more here: HiveResources
Execute it in the Hive script in the same session before using in the query.
Example:
hive> add jar /usr/lib/sqoop/lib/jtds-1.2.jar;
Hive prints:
Added [/usr/lib/sqoop/lib/jtds-1.2.jar] to class path
Added resources: [/usr/lib/sqoop/lib/jtds-1.2.jar]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.