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/e653e3a3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e653e3a3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e653e3a3

Branch: refs/heads/branch-2.0.0
Commit: e653e3a3c2c99fd227d0b65f6459ef93777a2863
Parents: a489182
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:56 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/e653e3a3/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>

Reply via email to