Last change
on this file since 31307 was 31231, checked in by davidb, 7 years ago |
Changes to allow SOLR to run on nodes in /hdfsd05/dbbridge/solr-ef
|
-
Property svn:executable
set to
*
|
File size:
541 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | run_from_local_disk=1
|
---|
4 |
|
---|
5 | #local_dir="/tmp/solr-ef"
|
---|
6 | local_dir="/hdfsd05/dbbridge/solr-ef"
|
---|
7 |
|
---|
8 |
|
---|
9 | if [ $run_from_local_disk = "1" ] ; then
|
---|
10 | opt_s="-s $local_dir"
|
---|
11 | export SOLR_HOME=
|
---|
12 | echo "****"
|
---|
13 | echo "* Running solr from local disk: $local_dir"
|
---|
14 | echo "****"
|
---|
15 | else
|
---|
16 | opt_s=
|
---|
17 | fi
|
---|
18 |
|
---|
19 | for solr_node in $SOLR_NODES ; do
|
---|
20 | solr_host=${solr_node%:*}
|
---|
21 | solr_port=${solr_node##*:}
|
---|
22 |
|
---|
23 | echo "Starting solr cloud node on: $solr_host [port $solr_port]"
|
---|
24 | ssh $solr_host solr start -cloud -z $ZOOKEEPER_SERVER -h $solr_host -p $solr_port $opt_s
|
---|
25 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.