root/other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-setup-local-disk-all.sh @ 31231

Revision 31231, 413 bytes (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
3unique_hosts=`echo $SOLR_NODES | tr ' ' '\n' | sed 's/:.*$//' | sort | uniq`
4
5#local_dir="/tmp/solr-ef"
6local_dir="/hdfsd05/dbbridge/solr-ef"
7
8for solr_host in $unique_hosts ; do
9  remote_dir="$solr_host:$local_dir"
10
11  echo "Running rsync from networked SOLR_HOME to $remote_dir"
12  ssh $solr_host "if [ ! -d $local_dir ] ; then mkdir $local_dir ; fi"
13  rsync -pav "$SOLR_HOME/." "$remote_dir/."
14done
Note: See TracBrowser for help on using the browser.