You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2014/02/20 04:48:36 UTC

git commit: AMBARI-4755. HIVE_AUX_JARS_PATH in hive-env.sh points to nonexistent hcatalog-core.jar. (mahadev)

Repository: ambari
Updated Branches:
  refs/heads/trunk cf0b56657 -> c3751de81


AMBARI-4755. HIVE_AUX_JARS_PATH in hive-env.sh points to nonexistent hcatalog-core.jar. (mahadev)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c3751de8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c3751de8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c3751de8

Branch: refs/heads/trunk
Commit: c3751de81e0f1fef94367551f636da8d681ed9e0
Parents: cf0b566
Author: Mahadev Konar <ma...@apache.org>
Authored: Wed Feb 19 19:48:20 2014 -0800
Committer: Mahadev Konar <ma...@apache.org>
Committed: Wed Feb 19 19:48:25 2014 -0800

----------------------------------------------------------------------
 .../HDP/2.0.6/services/HIVE/package/templates/hive-env.sh.j2  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c3751de8/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/templates/hive-env.sh.j2
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/templates/hive-env.sh.j2 b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/templates/hive-env.sh.j2
index 548262a..61f8a60 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/templates/hive-env.sh.j2
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/templates/hive-env.sh.j2
@@ -52,4 +52,9 @@ export HIVE_CONF_DIR={{conf_dir}}
 
 # Folder containing extra ibraries required for hive compilation/execution can be controlled by:
 # export HIVE_AUX_JARS_PATH=
-export HIVE_AUX_JARS_PATH={{hive_aux_jars_path}}
+if [ -d "/usr/lib/hive-hcatalog/" ]; then
+  export HIVE_AUX_JARS_PATH=/usr/lib/hive-hcatalog/share/hcatalog/hive-hcatalog-core-*.jar
+else
+  export HIVE_AUX_JARS_PATH=/usr/lib/hcatalog/share/hcatalog/hcatalog-core.jar
+fi
+