This is an automated email from the ASF dual-hosted git repository.

elserj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new 021165f  RATIS-629. Vagrant loadgen does not run
021165f is described below

commit 021165f2142bc1d1a0351b3cddf724272541d720
Author: Clay Baenziger <[email protected]>
AuthorDate: Sun Jul 21 18:00:42 2019 -0400

    RATIS-629. Vagrant loadgen does not run
    
    Closes #29
    
    Signed-off-by: Josh Elser <[email protected]>
---
 dev-support/vagrant/bin/start_ratis_load_gen.sh | 4 ++--
 dev-support/vagrant/bin/start_ratis_server.sh   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-support/vagrant/bin/start_ratis_load_gen.sh 
b/dev-support/vagrant/bin/start_ratis_load_gen.sh
index 62f21b6..d1310ff 100755
--- a/dev-support/vagrant/bin/start_ratis_load_gen.sh
+++ b/dev-support/vagrant/bin/start_ratis_load_gen.sh
@@ -1,5 +1,4 @@
 #!/bin/bash
-
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.
@@ -22,8 +21,9 @@ peers=$1
 
 cd ${HOME}/incubator-ratis
 
+export QUORUM_OPTS="--peers $peers"
 # run the load generator
-./ratis-examples/src/main/bin/client.sh filestore loadgen --size 1048576 
--numFiles 100 --peers $peers 2>&1 | \
+./ratis-examples/src/main/bin/client.sh filestore loadgen --size 1048576 
--numFiles 100 2>&1 | \
   tee ${HOME}/loadgen.log
 
 # verify all logs checksum the same
diff --git a/dev-support/vagrant/bin/start_ratis_server.sh 
b/dev-support/vagrant/bin/start_ratis_server.sh
index 6d8bf80..e0e39b6 100755
--- a/dev-support/vagrant/bin/start_ratis_server.sh
+++ b/dev-support/vagrant/bin/start_ratis_server.sh
@@ -23,5 +23,5 @@ id=$2
 peers=$3
 
 cd ${HOME}/incubator-ratis/
-java -jar `find ./ -name 'ratis-examples*-SNAPSHOT.jar'` filestore server 
--storage $storage --id $id --peers $peers 2>&1 | \
+./ratis-examples/src/main/bin/server.sh filestore server --storage $storage 
--id $id --peers $peers 2>&1 | \
   tee ${HOME}/server_${id}.log

Reply via email to