You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2015/08/18 00:17:59 UTC
[3/4] incubator-trafodion git commit: Added HADOOP_PATH for installs
using --config_file
Added HADOOP_PATH for installs using --config_file
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/08fe6f54
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/08fe6f54
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/08fe6f54
Branch: refs/heads/master
Commit: 08fe6f54dff0a2242d39a4862676e1a91162ad62
Parents: 8e91a78
Author: Amanda Moran <am...@apache.com>
Authored: Fri Aug 14 19:13:31 2015 +0000
Committer: Amanda Moran <am...@apache.com>
Committed: Fri Aug 14 19:13:31 2015 +0000
----------------------------------------------------------------------
install/installer/traf_getHadoopNodes | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/08fe6f54/install/installer/traf_getHadoopNodes
----------------------------------------------------------------------
diff --git a/install/installer/traf_getHadoopNodes b/install/installer/traf_getHadoopNodes
index 303c6a9..7eadecb 100755
--- a/install/installer/traf_getHadoopNodes
+++ b/install/installer/traf_getHadoopNodes
@@ -12,6 +12,12 @@ if [[ $HADOOP_TYPE == "cloudera" ]]; then
curlRC=$?
numberHadoopNodes=$(grep -r "hostname" tempFile | wc -l)
grep -r "hostname" tempFile > tempFile2
+
+ if [[ -d /opt/cloudera/parcels/CDH ]]; then
+ HADOOP_PATH="/opt/cloudera/parcles/CDH/lib/hbase/lib"
+ else
+ HADOOP_PATH="/usr/lib/hbase/lib"
+ fi
fi
if [[ $HADOOP_TYPE == "hortonworks" ]]; then
@@ -19,6 +25,12 @@ if [[ $HADOOP_TYPE == "hortonworks" ]]; then
curlRC=$?
numberHadoopNodes=$(grep -r "host_name" tempFile | wc -l)
grep -r "host_name" tempFile > tempFile2
+
+ if [[ -d /usr/lib/hbase/lib ]]; then
+ HADOOP_PATH="/usr/lib/hbase/lib"
+ else
+ HADOOP_PATH="/usr/hdp/current/hbase-regionserver/lib"
+ fi
fi
if [ $curlRC != 0 ]; then
@@ -65,6 +77,10 @@ sudo chmod 777 $TRAF_CONFIG
sed -i '/MY_HADOOP_NODES\=/d' $TRAF_CONFIG
echo "export MY_HADOOP_NODES=\"$MY_HADOOP_NODES\"" >> $TRAF_CONFIG
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
+
hadoop_node_count=$(echo $HADOOP_NODES | wc -w)