Created 10-29-2015 04:59 PM
Regarding permanently adding custom JARs for Hive SerDes
(Feel free to answer those which you now, and come back later to answer the rest.)
Created 10-30-2015 04:18 AM
I put jars into folder /usr/hdp/current/hive-client/auxlib (in each hiveserver2/hive cli node).
Other solutions might work, but in my experience was when it worked for hiveserver2, it did not work for hive cli, or good for hue and bad for squirel, so I gave up and started using auxlib.
Created 10-29-2015 06:33 PM
Here are some of the answers:
1. HIVE_AUX_JARS_PATH in the hive-env.sh or set on your shell (not hive cli) will override the one set by "hive.aux.jars.path" in hive-site.xml. However calling "hive -hiveconf hive.aux.jars.path=..." will override HIVE_AUX_JARS_PATH setting in hive-env.sh. Using "hive --auxpath ..." will append file to any settings you may have in HIVE_AUX_JARS_PATH.
2. Since we ship the Apache Hive binaries so hive.reloadable.aux.jars.path should be supported on any hive shipped since HDP 2.2.0.
3. "hdfs:///" is supported on add jar, doubt if hive.aux.jars.path supports it.
4. Wildcards are not supported in both hive.aux.jars.path and add jar.
Created 10-29-2015 07:54 PM
#5 I hope this helps
A global init file can be placed in the configured hive.server2.global.init.file.location location (Hive 0.14 onward, see HIVE-5160, HIVE-7497, and HIVE-8138). This can be either the path to the init file itself, or a directory where an init file named ".hiverc" is expected.
The init file lists a set of commands that will run for users of this HiveServer2 instance, such as register a standard set of jars and functions.
Created 10-30-2015 04:18 AM
I put jars into folder /usr/hdp/current/hive-client/auxlib (in each hiveserver2/hive cli node).
Other solutions might work, but in my experience was when it worked for hiveserver2, it did not work for hive cli, or good for hue and bad for squirel, so I gave up and started using auxlib.