Updated Branches: refs/heads/master 1c2b9589d -> 72555595c
BIGTOP-1182. Location of HCat binary default file not overridable Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/72555595 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/72555595 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/72555595 Branch: refs/heads/master Commit: 72555595caca3c306f8e5e7e86fdb44e86385f83 Parents: c471b09 Author: Sean Mackrory <[email protected]> Authored: Wed Jan 15 10:10:57 2014 -0800 Committer: Sean Mackrory <[email protected]> Committed: Thu Jan 16 09:41:15 2014 -0800 ---------------------------------------------------------------------- bigtop-packages/src/common/hive/install_hive.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/72555595/bigtop-packages/src/common/hive/install_hive.sh ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/hive/install_hive.sh b/bigtop-packages/src/common/hive/install_hive.sh index 95d05e2..a842783 100755 --- a/bigtop-packages/src/common/hive/install_hive.sh +++ b/bigtop-packages/src/common/hive/install_hive.sh @@ -210,7 +210,9 @@ done wrapper=$BIN_DIR/hcat cat >>$wrapper <<EOF #!/bin/sh -. /etc/default/hadoop + +BIGTOP_DEFAULTS_DIR=${BIGTOP_DEFAULTS_DIR-/etc/default} +[ -n "${BIGTOP_DEFAULTS_DIR}" -a -r ${BIGTOP_DEFAULTS_DIR}/hadoop ] && . ${BIGTOP_DEFAULTS_DIR}/hadoop # Autodetect JAVA_HOME if not defined . /usr/lib/bigtop-utils/bigtop-detect-javahome
