2013-12-22 23:44:26 -05:00
|
|
|
#!/bin/bash
|
2012-02-16 17:31:42 -05:00
|
|
|
|
|
|
|
zkaddress = localhost:2181/solr
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
rm -r -f example2
|
|
|
|
rm -r -f example3
|
|
|
|
rm -r -f example4
|
|
|
|
rm -r -f example5
|
|
|
|
rm -r -f example6
|
|
|
|
|
|
|
|
rm -r -f dist
|
|
|
|
rm -r -f build
|
|
|
|
rm -r -f example/solr/zoo_data
|
2012-08-03 12:11:00 -04:00
|
|
|
rm -r -f example/solr/collection1/data
|
2012-02-16 17:31:42 -05:00
|
|
|
rm -f example/example.log
|
|
|
|
|
|
|
|
ant example dist
|
|
|
|
|
|
|
|
cp -r -f example example2
|
|
|
|
cp -r -f example example3
|
|
|
|
cp -r -f example example4
|
|
|
|
cp -r -f example example5
|
|
|
|
cp -r -f example example6
|
|
|
|
|
2013-04-08 20:15:43 -04:00
|
|
|
java -classpath "example/solr-webapp/webapp/WEB-INF/lib/*:example/lib/ext/" org.apache.solr.cloud.ZkController "$zkaddress" 8983 example/solr/conf conf1
|
2012-02-16 17:31:42 -05:00
|
|
|
|
|
|
|
cd example
|
|
|
|
java -DzkHost="$zkaddress" -DnumShards=2 -DSTOP.PORT=7983 -DSTOP.KEY=key -jar start.jar 1>example.log 2>&1 &
|
|
|
|
|
|
|
|
cd ../example2
|
|
|
|
java -Djetty.port=7574 -DzkHost="$zkaddress" -DSTOP.PORT=6574 -DSTOP.KEY=key -jar start.jar 1>example2.log 2>&1 &
|
|
|
|
|
|
|
|
cd ../example3
|
|
|
|
java -Djetty.port=7575 -DzkHost="$zkaddress" -DSTOP.PORT=6575 -DSTOP.KEY=key -jar start.jar 1>example3.log 2>&1 &
|
|
|
|
|
|
|
|
cd ../example4
|
|
|
|
java -Djetty.port=7576 -DzkHost="$zkaddress" -DSTOP.PORT=6576 -DSTOP.KEY=key -jar start.jar 1>example4.log 2>&1 &
|
|
|
|
|
|
|
|
cd ../example5
|
|
|
|
java -Djetty.port=7577 -DzkHost="$zkaddress" -DSTOP.PORT=6577 -DSTOP.KEY=key -jar start.jar 1>example5.log 2>&1 &
|
|
|
|
|
|
|
|
cd ../example6
|
|
|
|
java -Djetty.port=7578 -DzkHost="$zkaddress" -DSTOP.PORT=6578 -DSTOP.KEY=key -jar start.jar 1>example6.log 2>&1 &
|