Repository: ambari Updated Branches: refs/heads/branch-2.0.0 a48918291 -> e653e3a3c refs/heads/trunk 24a7e6442 -> f76de1329
AMBARI-9821. Need to update HIVE_AUX_JARS_PATH in hive-env.sh (dlysnichenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f76de132 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f76de132 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f76de132 Branch: refs/heads/trunk Commit: f76de1329035395841300335e37257ea63e20f9c Parents: 24a7e64 Author: Lisnichenko Dmitro <[email protected]> Authored: Thu Feb 26 21:32:08 2015 +0200 Committer: Lisnichenko Dmitro <[email protected]> Committed: Thu Feb 26 21:33:02 2015 +0200 ---------------------------------------------------------------------- .../HDP/2.2/services/HIVE/configuration/hive-env.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/f76de132/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml index 53ab0f8..7a657ab 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml +++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml @@ -49,10 +49,14 @@ export HIVE_CONF_DIR={{hive_config_dir}} # Folder containing extra libraries required for hive compilation/execution can be controlled by: if [ "${HIVE_AUX_JARS_PATH}" != "" ]; then - export HIVE_AUX_JARS_PATH=${HIVE_AUX_JARS_PATH} + if [ -f "${HIVE_AUX_JARS_PATH}" ]; then + export HIVE_AUX_JARS_PATH=${HIVE_AUX_JARS_PATH} + elif [ -d "/usr/hdp/current/hive-webhcat/share/hcatalog" ]; then + export HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-webhcat/share/hcatalog/hive-hcatalog-core.jar + fi elif [ -d "/usr/hdp/current/hive-webhcat/share/hcatalog" ]; then - export HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-webhcat/share/hcatalog -fi + export HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-webhcat/share/hcatalog/hive-hcatalog-core.jar +fi export METASTORE_PORT={{hive_metastore_port}} </value>
