accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1398290 - in /accumulo/trunk/test/system/randomwalk: ./ bin/start-local.sh
Date Mon, 15 Oct 2012 13:58:36 GMT
Author: ecn
Date: Mon Oct 15 13:58:35 2012
New Revision: 1398290

URL: http://svn.apache.org/viewvc?rev=1398290&view=rev
Log:
ACCUMULO-644 modify the start script to run on a shared file system

Modified:
    accumulo/trunk/test/system/randomwalk/   (props changed)
    accumulo/trunk/test/system/randomwalk/bin/start-local.sh

Propchange: accumulo/trunk/test/system/randomwalk/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Oct 15 13:58:35 2012
@@ -0,0 +1,2 @@
+*-tmp
+logs

Modified: accumulo/trunk/test/system/randomwalk/bin/start-local.sh
URL: http://svn.apache.org/viewvc/accumulo/trunk/test/system/randomwalk/bin/start-local.sh?rev=1398290&r1=1398289&r2=1398290&view=diff
==============================================================================
--- accumulo/trunk/test/system/randomwalk/bin/start-local.sh (original)
+++ accumulo/trunk/test/system/randomwalk/bin/start-local.sh Mon Oct 15 13:58:35 2012
@@ -57,9 +57,10 @@ cd "$RW_HOME"
 "$HADOOP_HOME/bin/hadoop" fs -get /randomwalk/config.tgz config.tgz
 
 # extract config to a tmp directory
-rm -rf tmp/
-mkdir tmp/
-tar xzf config.tgz -C tmp/
+TEMP="`hostname`-tmp"
+rm -rf "$TEMP"
+mkdir "$TEMP"
+tar xzf config.tgz -C "$TEMP"
 rm config.tgz
 
 # config the logging
@@ -71,4 +72,4 @@ fi
 LOG_ID=`hostname -s`_`date +%Y%m%d_%H%M%S`
 
 # run the local walker
-"$ACCUMULO_HOME/bin/accumulo" org.apache.accumulo.server.test.randomwalk.Framework "$RW_HOME/tmp/conf/"
"$RW_LOGS" "$LOG_ID" "$1" >"$RW_LOGS/$LOG_ID.out" 2>"$RW_LOGS/$LOG_ID.err" &
+"$ACCUMULO_HOME/bin/accumulo" org.apache.accumulo.server.test.randomwalk.Framework "$RW_HOME/$TEMP/conf/"
"$RW_LOGS" "$LOG_ID" "$1" >"$RW_LOGS/$LOG_ID.out" 2>"$RW_LOGS/$LOG_ID.err" &



Mime
View raw message