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

Revision 31231, 0.5 KB (checked in by davidb, 3 years ago)

Changes to allow SOLR to run on nodes in /hdfsd05/dbbridge/solr-ef

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3run_from_local_disk=1
4
5#local_dir="/tmp/solr-ef"
6local_dir="/hdfsd05/dbbridge/solr-ef"
7
8
9if [ $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 "****"
15else
16  opt_s=
17fi
18
19for 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
25done
Note: See TracBrowser for help on using the browser.