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/25 17:42:50 UTC

[1/2] incubator-trafodion git commit: Adding hostname change fix and cloudera start node fix

Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 7dece120f -> ed6512c0f


Adding hostname change fix and cloudera start node fix

When hostnames change on restart will now generate a new sqconfig file, and modify the trafodion
.bashrc file. Also can add a node and trafodion user id will be added on that node.

Cloudera start node wasn't being found because was missing variable.


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

Branch: refs/heads/master
Commit: f5eccb9bb05b888f53e585e27d4487d6bac711ba
Parents: 59927f0
Author: Amanda Moran <am...@apache.com>
Authored: Fri Aug 21 22:29:55 2015 +0000
Committer: Amanda Moran <am...@apache.com>
Committed: Fri Aug 21 22:29:55 2015 +0000

----------------------------------------------------------------------
 install/installer/traf_add_user        |  6 +++--
 install/installer/traf_cloudera_mods98 |  2 +-
 install/installer/traf_config_setup    |  5 ++--
 install/installer/traf_setup           |  2 +-
 install/installer/trafodion_install    | 40 ++++++++++++++++++++---------
 5 files changed, 37 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/f5eccb9b/install/installer/traf_add_user
----------------------------------------------------------------------
diff --git a/install/installer/traf_add_user b/install/installer/traf_add_user
index adeb9af..2894d86 100755
--- a/install/installer/traf_add_user
+++ b/install/installer/traf_add_user
@@ -96,8 +96,10 @@ if [ -z "$traf_gid" ]; then
     done
     $TRAF_PDSH sudo /usr/sbin/groupadd --gid $traf_gid $TRAF_GROUP
     if [ $? -ne 0 ]; then
-        echo "***ERROR: unable to create Trafodion group: $TRAF_GROUP"
-        exit -1
+       if [ $? -ne 9]; then
+          echo "***ERROR: unable to create Trafodion group: $TRAF_GROUP"
+          exit -1
+       fi
     fi
 else
     # Make sure Trafodion group exists on all nodes and create it if it is not

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/f5eccb9b/install/installer/traf_cloudera_mods98
----------------------------------------------------------------------
diff --git a/install/installer/traf_cloudera_mods98 b/install/installer/traf_cloudera_mods98
index 44b730f..03bdfd1 100755
--- a/install/installer/traf_cloudera_mods98
+++ b/install/installer/traf_cloudera_mods98
@@ -109,7 +109,7 @@ do
       break
    fi
    count=$[$count+1]
-   if [[ $count -ge $hadoop_nodes ]]; then
+   if [[ $count -ge $hadoop_node_count ]]; then
       echo "***ERROR: Could not find Cloudera Server status on any node"
       echo "***ERROR: Restart Cloudera Server" 
       exit -1 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/f5eccb9b/install/installer/traf_config_setup
----------------------------------------------------------------------
diff --git a/install/installer/traf_config_setup b/install/installer/traf_config_setup
index 9db600e..203c211 100755
--- a/install/installer/traf_config_setup
+++ b/install/installer/traf_config_setup
@@ -649,11 +649,12 @@ if [[ -z $HADOOP_NODES ]]; then
 fi
 
 echo "***INFO: $HADOOP_TYPE list of nodes: $HADOOP_NODES"
+hadoop_node_count=$(echo $HADOOP_NODES | wc -w)
+
 
 echo "export HADOOP_NODES=\"$HADOOP_NODES\"" >> $LOCAL_TRAF_CONFIG
 echo "export MY_HADOOP_NODES=\"$MY_HADOOP_NODES\"" >> $LOCAL_TRAF_CONFIG
-
-hadoop_node_count=$(echo $HADOOP_NODES | wc -w)
+echo "export hadoop_node_count=\"$hadoop_node_count\"" >>$LOCAL_TRAF_CONFIG
 
 for node in $HADOOP_NODES
 do

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/f5eccb9b/install/installer/traf_setup
----------------------------------------------------------------------
diff --git a/install/installer/traf_setup b/install/installer/traf_setup
index e420977..4e7be35 100755
--- a/install/installer/traf_setup
+++ b/install/installer/traf_setup
@@ -241,7 +241,7 @@ if [[ $SUSE_LINUX == "false" ]]; then
             installed=`ssh -q -n $node sudo rpm -qa | grep $package | wc -l`
             if [[ $installed -eq "0" ]]; then
                echo "***INFO: Installing $package on all nodes"
-               $TRAF_PDSH sudo yum --assumeyes install $package 2>> $YUM_LOG >> $YUM_LOG
+               ssh -q -n $node sudo yum --assumeyes install $package 2>> $YUM_LOG >> $YUM_LOG
                if [ $? != 0 ]; then
                   echo "***ERROR: Can't install $package"
                   exit -1

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/f5eccb9b/install/installer/trafodion_install
----------------------------------------------------------------------
diff --git a/install/installer/trafodion_install b/install/installer/trafodion_install
index 6aa1a16..2fc2267 100755
--- a/install/installer/trafodion_install
+++ b/install/installer/trafodion_install
@@ -575,9 +575,25 @@ echo
 
 if [[ "$UPGRADE_TRAF" == "true" ]]; then
 
-   echo "***INFO: $TRAF_USER username has already been installed." | tee -a $INSTALL_LOG
-   echo "***INFO: Skipping Trafodion setup..." | tee -a $INSTALL_LOG
-
+   sed -i -e "s@export NODE_LIST=.*@export NODE_LIST=\"$NODE_LIST\"@" $HOME_DIR/$TRAF_USER/.bashrc   
+   sed -i -e "s@export MY_NODES=.*@export MY_NODES=\"$NODE_LIST\"@" $HOME_DIR/$TRAF_USER/.bashrc
+   
+   for node in $NODE_LIST
+   do
+      userForTrafodion=$(ssh -q -n $node grep "$TRAF_USER:" /etc/passwd | wc -l)
+      if [[ "$userForTrafodion" == 0 ]]; then
+         $LOCAL_WORKDIR/traf_setup | tee -a $INSTALL_LOG
+         if [ ${PIPESTATUS[0]} != "0" ]; then
+            echo "***ERROR: Error while running traf_setup." | tee -a $INSTALL_LOG
+            echo "***ERROR: Setup not complete, review logs." | tee -a $INSTALL_LOG
+            echo "***ERROR: Exiting...." | tee -a $INSTALL_LOG
+            exit -1
+         else
+            echo "***INFO: Trafodion environment setup completed" | tee -a $INSTALL_LOG
+         fi
+      fi
+   done  
+   
 else
    $LOCAL_WORKDIR/traf_setup | tee -a $INSTALL_LOG
 
@@ -607,15 +623,11 @@ if [ $node_count -ne 1 ]; then
 fi
 
 
-#Create sqconfig file if it does not exist
-
-if [[ ! -f $HOME_DIR/$TRAF_USER/sqconfig ]]; then
-   $LOCAL_WORKDIR/traf_sqconfig
-   if [ $? != 0 ]; then
-      echo "***ERROR: traf_sqconfig script failed."
-      echo "***ERROR: sqconfig file not created."
-      exit -1
-   fi
+$LOCAL_WORKDIR/traf_sqconfig
+if [ $? != 0 ]; then
+   echo "***ERROR: traf_sqconfig script failed."
+   echo "***ERROR: sqconfig file not created."
+   exit -1
 fi
 #Reserve DCS Ports
 
@@ -644,6 +656,10 @@ do
    fi
 done
 
+#Set Max kernel pid 
+
+$TRAF_PDSH sudo sysctl -w kernel.pid_max=65535
+
 
 #Create install directory
 if [[ "$node_count" -ne "1" ]]; then


[2/2] incubator-trafodion git commit: Merge [TRAFODION-1218] PR 64 Fix new hosts names, add node at install, fix cloudera bug

Posted by db...@apache.org.
Merge [TRAFODION-1218] PR 64 Fix new hosts names, add node at install, fix cloudera bug


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

Branch: refs/heads/master
Commit: ed6512c0f545fd990c0d506c6832e3583c4a3028
Parents: 7dece12 f5eccb9
Author: Dave Birdsall <db...@apache.org>
Authored: Tue Aug 25 15:40:23 2015 +0000
Committer: Dave Birdsall <db...@apache.org>
Committed: Tue Aug 25 15:40:23 2015 +0000

----------------------------------------------------------------------
 install/installer/traf_add_user        |  6 +++--
 install/installer/traf_cloudera_mods98 |  2 +-
 install/installer/traf_config_setup    |  5 ++--
 install/installer/traf_setup           |  2 +-
 install/installer/trafodion_install    | 40 ++++++++++++++++++++---------
 5 files changed, 37 insertions(+), 18 deletions(-)
----------------------------------------------------------------------