trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sure...@apache.org
Subject [1/2] incubator-trafodion git commit: [TRAFODION 1539] HADOOP_PATH now will be set.
Date Mon, 19 Oct 2015 18:28:50 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master fe1a77ebe -> aa86b53b6


[TRAFODION 1539] HADOOP_PATH now will be set.


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

Branch: refs/heads/master
Commit: dc47dd195a41fb674b5442a648ea042973bfdf98
Parents: 6c493cf
Author: Amanda Moran <amanda@apache.com>
Authored: Fri Oct 16 21:18:12 2015 +0000
Committer: Amanda Moran <amanda@apache.com>
Committed: Fri Oct 16 21:18:12 2015 +0000

----------------------------------------------------------------------
 install/installer/traf_config_check | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/dc47dd19/install/installer/traf_config_check
----------------------------------------------------------------------
diff --git a/install/installer/traf_config_check b/install/installer/traf_config_check
index a53e5e0..638fbcd 100755
--- a/install/installer/traf_config_check
+++ b/install/installer/traf_config_check
@@ -466,13 +466,6 @@ do
       break;
    fi
 done
-
-sudo chmod 777 $TRAF_CONFIG
-sed -i '/HADOOP_PATH\=/d' $TRAF_CONFIG
-echo "export HADOOP_PATH=\"$HADOOP_PATH\"" >> $TRAF_CONFIG
-sudo chmod 777 $TRAF_CONFIG
-source $TRAF_CONFIG
-
 }
 
 function checkClouderaVersion {
@@ -527,6 +520,11 @@ fi
 
 echo "***INFO: nameOfVersion=$nameOfVersion"
 echo "***INFO: HADOOP_PATH=$HADOOP_PATH"
+sudo chmod 777 $TRAF_CONFIG
+sed -i '/HADOOP_PATH\=/d' $TRAF_CONFIG
+echo "export HADOOP_PATH=\"$HADOOP_PATH\"" >> $TRAF_CONFIG
+sudo chmod 777 $TRAF_CONFIG
+source $TRAF_CONFIG
 
 }
 
@@ -589,6 +587,12 @@ export HADOOP_PATH="/usr/hdp/current/hbase-regionserver/lib"
 
 echo "***INFO: nameOfVersion=$nameOfVersion"
 echo "***INFO: HADOOP_PATH=$HADOOP_PATH"
+sudo chmod 777 $TRAF_CONFIG
+sed -i '/HADOOP_PATH\=/d' $TRAF_CONFIG
+echo "export HADOOP_PATH=\"$HADOOP_PATH\"" >> $TRAF_CONFIG
+sudo chmod 777 $TRAF_CONFIG
+source $TRAF_CONFIG
+
 }
 
 


Mime
View raw message