You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2013/11/27 03:12:50 UTC

[3/4] git commit: ACCUMULO-1932 Add in a configuration for the Accumulo user, and then make sure we exec the magitator as that user so we don't restart the master and gc as root.

ACCUMULO-1932 Add in a configuration for the Accumulo user, and then make sure we exec the magitator as that user so we
don't restart the master and gc as root.


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

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 4be3d662550f3c5ecf6b1a501d2a9beafa5b2d9a
Parents: 64aab86
Author: Josh Elser <el...@apache.org>
Authored: Tue Nov 26 21:08:27 2013 -0500
Committer: Josh Elser <el...@apache.org>
Committed: Tue Nov 26 21:08:27 2013 -0500

----------------------------------------------------------------------
 test/system/continuous/continuous-env.sh.example | 1 +
 test/system/continuous/start-agitator.sh         | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/4be3d662/test/system/continuous/continuous-env.sh.example
----------------------------------------------------------------------
diff --git a/test/system/continuous/continuous-env.sh.example b/test/system/continuous/continuous-env.sh.example
index 833393a..af80081 100644
--- a/test/system/continuous/continuous-env.sh.example
+++ b/test/system/continuous/continuous-env.sh.example
@@ -24,6 +24,7 @@ ZOOKEEPER_HOME=${ZOOKEEPER_HOME:-/opt/zookeeper}
 CONTINUOUS_LOG_DIR=$ACCUMULO_HOME/test/system/continuous/logs
 INSTANCE_NAME=instance
 ZOO_KEEPERS=zhost1,zhost2
+ACCUMULO_USER=accumulo
 USER=user
 PASS=pass
 TABLE=ci

http://git-wip-us.apache.org/repos/asf/accumulo/blob/4be3d662/test/system/continuous/start-agitator.sh
----------------------------------------------------------------------
diff --git a/test/system/continuous/start-agitator.sh b/test/system/continuous/start-agitator.sh
index 980cd77..fd43a14 100755
--- a/test/system/continuous/start-agitator.sh
+++ b/test/system/continuous/start-agitator.sh
@@ -23,4 +23,4 @@ mkdir -p $CONTINUOUS_LOG_DIR
 
 nohup ./agitator.pl $KILL_SLEEP_TIME $TUP_SLEEP_TIME $MIN_KILL $MAX_KILL >$CONTINUOUS_LOG_DIR/`date +%Y%m%d%H%M%S`_`hostname`_agitator.out 2>$CONTINUOUS_LOG_DIR/`date +%Y%m%d%H%M%S`_`hostname`_agitator.err &
 
-nohup ./magitator.pl $MASTER_KILL_SLEEP_TIME $MASTER_RESTART_SLEEP_TIME >$CONTINUOUS_LOG_DIR/`date +%Y%m%d%H%M%S`_`hostname`_magitator.out 2>$CONTINUOUS_LOG_DIR/`date +%Y%m%d%H%M%S`_`hostname`_magitator.err &
+su -c "nohup $CONTINUOUS_CONF_DIR/magitator.pl $MASTER_KILL_SLEEP_TIME $MASTER_RESTART_SLEEP_TIME >$CONTINUOUS_LOG_DIR/`date +%Y%m%d%H%M%S`_`hostname`_magitator.out 2>$CONTINUOUS_LOG_DIR/`date +%Y%m%d%H%M%S`_`hostname`_magitator.err &" -m - $ACCUMULO_USER