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

Last change on this file since 31104 was 31104, checked in by davidb, 7 years ago

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

  • Property svn:executable set to *
File size: 507 bytes
RevLine 
[31078]1#!/bin/bash
2
[31104]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
[31078]18for solr_node in $SOLR_NODES ; do
[31098]19 solr_host=${solr_node%:*}
[31103]20 solr_port=${solr_node##*:}
[31104]21
[31103]22 echo "Starting solr cloud node on: $solr_host [port $solr_port]"
[31104]23 ssh $solr_host solr start -cloud -z $ZOOKEEPER_SERVER -h $solr_host -p $solr_port $opt_s
[31078]24done
Note: See TracBrowser for help on using the repository browser.