source: other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-start-all.sh@ 31231

Last change on this file since 31231 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
RevLine 
[31078]1#!/bin/bash
2
[31104]3run_from_local_disk=1
4
[31231]5#local_dir="/tmp/solr-ef"
6local_dir="/hdfsd05/dbbridge/solr-ef"
[31104]7
8
9if [ $run_from_local_disk = "1" ] ; then
[31231]10 opt_s="-s $local_dir"
[31104]11 export SOLR_HOME=
12 echo "****"
13 echo "* Running solr from local disk: $local_dir"
14 echo "****"
15else
16 opt_s=
17fi
18
[31078]19for solr_node in $SOLR_NODES ; do
[31098]20 solr_host=${solr_node%:*}
[31103]21 solr_port=${solr_node##*:}
[31104]22
[31103]23 echo "Starting solr cloud node on: $solr_host [port $solr_port]"
[31104]24 ssh $solr_host solr start -cloud -z $ZOOKEEPER_SERVER -h $solr_host -p $solr_port $opt_s
[31078]25done
Note: See TracBrowser for help on using the repository browser.