2013-12-22 23:44:26 -05:00
|
|
|
#!/bin/bash
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
# TODO: !OUT OF DATE!
|
|
|
|
|
2012-02-16 17:31:42 -05:00
|
|
|
zkaddress = localhost:2181/solr
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
rm -r -f server2
|
|
|
|
rm -r -f server3
|
|
|
|
rm -r -f server4
|
|
|
|
rm -r -f server5
|
|
|
|
rm -r -f server6
|
2012-02-16 17:31:42 -05:00
|
|
|
|
|
|
|
rm -r -f dist
|
|
|
|
rm -r -f build
|
2014-12-02 12:41:30 -05:00
|
|
|
rm -r -f server/solr/zoo_data
|
|
|
|
rm -r -f server/solr/collection1/data
|
|
|
|
rm -f server/server.log
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2015-01-13 18:31:20 -05:00
|
|
|
ant server dist
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
cp -r -f server server2
|
|
|
|
cp -r -f server server3
|
|
|
|
cp -r -f server server4
|
|
|
|
cp -r -f server server5
|
|
|
|
cp -r -f server server6
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
java -classpath "server/solr-webapp/webapp/WEB-INF/lib/*:server/lib/ext/" org.apache.solr.cloud.ZkController "$zkaddress" 8983 server/solr/conf conf1
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
cd server
|
|
|
|
java -DzkHost="$zkaddress" -DnumShards=2 -DSTOP.PORT=7983 -DSTOP.KEY=key -jar start.jar 1>server.log 2>&1 &
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
cd ../server2
|
|
|
|
java -Djetty.port=7574 -DzkHost="$zkaddress" -DSTOP.PORT=6574 -DSTOP.KEY=key -jar start.jar 1>server2.log 2>&1 &
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
cd ../server3
|
|
|
|
java -Djetty.port=7575 -DzkHost="$zkaddress" -DSTOP.PORT=6575 -DSTOP.KEY=key -jar start.jar 1>server3.log 2>&1 &
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
cd ../server4
|
|
|
|
java -Djetty.port=7576 -DzkHost="$zkaddress" -DSTOP.PORT=6576 -DSTOP.KEY=key -jar start.jar 1>server4.log 2>&1 &
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
cd ../server5
|
|
|
|
java -Djetty.port=7577 -DzkHost="$zkaddress" -DSTOP.PORT=6577 -DSTOP.KEY=key -jar start.jar 1>server5.log 2>&1 &
|
2012-02-16 17:31:42 -05:00
|
|
|
|
2014-12-02 12:41:30 -05:00
|
|
|
cd ../server6
|
|
|
|
java -Djetty.port=7578 -DzkHost="$zkaddress" -DSTOP.PORT=6578 -DSTOP.KEY=key -jar start.jar 1>server6.log 2>&1 &
|