From 0f1b765c2890a08ceba2d8a37a48a9865261f552 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Sat, 11 Feb 2012 23:14:55 +0000 Subject: [PATCH] add start existing solrcloud script and remove data dir in init start script git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1243179 13f79535-47bb-0310-9956-ffa450edef68 --- solr/cloud-dev/solrcloud-start-existing.sh | 26 +++++++++++++++++++ .../{solrcloud.sh => solrcloud-start.sh} | 1 + 2 files changed, 27 insertions(+) create mode 100644 solr/cloud-dev/solrcloud-start-existing.sh rename solr/cloud-dev/{solrcloud.sh => solrcloud-start.sh} (97%) diff --git a/solr/cloud-dev/solrcloud-start-existing.sh b/solr/cloud-dev/solrcloud-start-existing.sh new file mode 100644 index 00000000000..4632142443e --- /dev/null +++ b/solr/cloud-dev/solrcloud-start-existing.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +cd .. + +rm -r -f dist +rm -r -f build + +ant example dist + +cd example +java -DzkRun -DSTOP.PORT=7983 -DSTOP.KEY=key -jar start.jar 1>example.log 2>&1 & + +cd ../example2 +java -Djetty.port=7574 -DzkHost=localhost:9983 -DSTOP.PORT=6574 -DSTOP.KEY=key -jar start.jar 1>example2.log 2>&1 & + +cd ../example3 +java -Djetty.port=7575 -DzkHost=localhost:9983 -DSTOP.PORT=6575 -DSTOP.KEY=key -jar start.jar 1>example3.log 2>&1 & + +cd ../example4 +java -Djetty.port=7576 -DzkHost=localhost:9983 -DSTOP.PORT=6576 -DSTOP.KEY=key -jar start.jar 1>example4.log 2>&1 & + +cd ../example5 +java -Djetty.port=7577 -DzkHost=localhost:9983 -DSTOP.PORT=6577 -DSTOP.KEY=key -jar start.jar 1>example5.log 2>&1 & + +cd ../example6 +java -Djetty.port=7578 -DzkHost=localhost:9983 -DSTOP.PORT=6578 -DSTOP.KEY=key -jar start.jar 1>example6.log 2>&1 & diff --git a/solr/cloud-dev/solrcloud.sh b/solr/cloud-dev/solrcloud-start.sh similarity index 97% rename from solr/cloud-dev/solrcloud.sh rename to solr/cloud-dev/solrcloud-start.sh index f1792224969..0bfc70b07cd 100644 --- a/solr/cloud-dev/solrcloud.sh +++ b/solr/cloud-dev/solrcloud-start.sh @@ -11,6 +11,7 @@ rm -r -f example6 rm -r -f dist rm -r -f build rm -r -f example/solr/zoo_data +rm -r -f example/solr/data rm -f example/example.log ant example dist