root/other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-start-all.sh @ 31104

Revision 31104, 507 bytes (checked in by davidb, 4 years ago)

now configurable to be run from local disk (/tmp)

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3run_from_local_disk=1
4
5local_dir="/tmp/solr-ef"
6
7
8if [ $run_from_local_disk = "1" ] ; then
9  opt_s="-s $local_dir/solr"
10  export SOLR_HOME=
11  echo "****"
12  echo "* Running solr from local disk: $local_dir"
13  echo "****"
14else
15  opt_s=
16fi
17
18for solr_node in $SOLR_NODES ; do
19  solr_host=${solr_node%:*}
20  solr_port=${solr_node##*:}
21
22  echo "Starting solr cloud node on: $solr_host [port $solr_port]"
23  ssh $solr_host solr start -cloud -z $ZOOKEEPER_SERVER -h $solr_host -p $solr_port $opt_s
24done
Note: See TracBrowser for help on using the browser.