Updated Branches:
  refs/heads/master 920335c31 -> cb8a5a1d6

BIGTOP-1129. Cannot stop datanode through init script


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

Branch: refs/heads/master
Commit: cb8a5a1d6078f0541d9fa21b329df1732439811e
Parents: 920335c
Author: Roman Shaposhnik <[email protected]>
Authored: Tue Oct 29 15:33:34 2013 -0700
Committer: Roman Shaposhnik <[email protected]>
Committed: Tue Oct 29 22:37:00 2013 -0700

----------------------------------------------------------------------
 bigtop-packages/src/common/hadoop/install_hadoop.sh | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/cb8a5a1d/bigtop-packages/src/common/hadoop/install_hadoop.sh
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/hadoop/install_hadoop.sh 
b/bigtop-packages/src/common/hadoop/install_hadoop.sh
index 38ccd6b..fe004a1 100755
--- a/bigtop-packages/src/common/hadoop/install_hadoop.sh
+++ b/bigtop-packages/src/common/hadoop/install_hadoop.sh
@@ -297,6 +297,10 @@ install -m 0644 \
 # conf
 install -d -m 0755 $HADOOP_ETC_DIR/conf.empty
 cp ${DISTRO_DIR}/conf.empty/mapred-site.xml $HADOOP_ETC_DIR/conf.empty
+# disable everything that's definied in hadoop-env.sh
+# so that it can still be used as example, but doesn't affect anything
+# by default
+sed -i -e '/^[^#]/s,^,#,' ${BUILD_DIR}/etc/hadoop/hadoop-env.sh
 cp ${BUILD_DIR}/etc/hadoop/* $HADOOP_ETC_DIR/conf.empty
 
 # docs

Reply via email to