Quellcode durchsuchen

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

Mahadev Konar vor 11 Jahren
Ursprung
Commit
c3751de81e

+ 6 - 1
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
+