Show
Ignore:
Timestamp:
11.11.2016 16:00:37 (3 years ago)
Author:
davidb
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-start-all.sh

    r31103 r31104  
    11#!/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 
    217 
    318for solr_node in $SOLR_NODES ; do 
    419  solr_host=${solr_node%:*} 
    520  solr_port=${solr_node##*:} 
     21 
    622  echo "Starting solr cloud node on: $solr_host [port $solr_port]" 
    7   ssh $solr_host solr start -c -z $ZOOKEEPER_SERVER -h $solr_host -p $solr_port 
     23  ssh $solr_host solr start -cloud -z $ZOOKEEPER_SERVER -h $solr_host -p $solr_port $opt_s 
    824done