accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/3] git commit: ACCUMULO-1960 sudo before ssh'ing to the remote server to avoid the lack of a tty because of the nohup.
Date Thu, 12 Dec 2013 19:52:43 GMT
ACCUMULO-1960 sudo before ssh'ing to the remote server to avoid the lack of a tty because of
the nohup.


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

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 7b1f3032fecf4b6ecf5deed5146ffeba93d7b3b0
Parents: 464bfe3
Author: Josh Elser <elserj@apache.org>
Authored: Thu Dec 12 14:48:18 2013 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Thu Dec 12 14:50:33 2013 -0500

----------------------------------------------------------------------
 test/system/continuous/README      | 2 +-
 test/system/continuous/agitator.pl | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/7b1f3032/test/system/continuous/README
----------------------------------------------------------------------
diff --git a/test/system/continuous/README b/test/system/continuous/README
index 713c18f..cba9ea8 100644
--- a/test/system/continuous/README
+++ b/test/system/continuous/README
@@ -41,7 +41,7 @@ ACCUMULO_USER for Accumulo processes). If you run it as yourself and the
HDFS_US
 ACCUMULO_USER values are the same as your user, the agitator will not change users. In
 the case where you run the agitator as a non-privileged user which isn't the same as HDFS_USER
 nor ACCUMULO_USER, the agitator will attempt to `sudo` to these users which relies on correct

-configuration of sudo.
+configuration of sudo. Also, be sure that your HDFS_USER has password-less ssh configured.
 
  start-agitator.sh
  stop-agitator.sh

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7b1f3032/test/system/continuous/agitator.pl
----------------------------------------------------------------------
diff --git a/test/system/continuous/agitator.pl b/test/system/continuous/agitator.pl
index faeb231..49772eb 100755
--- a/test/system/continuous/agitator.pl
+++ b/test/system/continuous/agitator.pl
@@ -161,7 +161,7 @@ while(1){
         system("ssh $server \"pkill -9 -f '[p]roc_datanode'\"");
       } else {
         # We're not the hdfs user, try to use sudo
-        system("ssh $server 'sudo -u $HDFS_USER pkill -9 -f \'[p]roc_datanode\''");
+        system("sudo -u $HDFS_USER ssh $server pkill -9 -f \'[p]roc_datanode\'");
       }
     }
   }
@@ -191,7 +191,7 @@ while(1){
       system("ssh $server '$HADOOP_PREFIX/sbin/hadoop-daemon.sh start datanode'");
     } else {
       # Not the HDFS user, have to try sudo
-      system("ssh $server 'sudo -u $HDFS_USER $HADOOP_PREFIX/sbin/hadoop-daemon.sh start
datanode'");
+      system("sudo -u $HDFS_USER ssh $server $HADOOP_PREFIX/sbin/hadoop-daemon.sh start datanode");
     }
   }
 


Mime
View raw message