source: other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-setup-local-disk-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: 413 bytes
RevLine 
[31105]1#!/bin/bash
2
3unique_hosts=`echo $SOLR_NODES | tr ' ' '\n' | sed 's/:.*$//' | sort | uniq`
4
[31231]5#local_dir="/tmp/solr-ef"
6local_dir="/hdfsd05/dbbridge/solr-ef"
[31105]7
8for solr_host in $unique_hosts ; do
[31231]9 remote_dir="$solr_host:$local_dir"
[31105]10
11 echo "Running rsync from networked SOLR_HOME to $remote_dir"
[31231]12 ssh $solr_host "if [ ! -d $local_dir ] ; then mkdir $local_dir ; fi"
13 rsync -pav "$SOLR_HOME/." "$remote_dir/."
[31105]14done
Note: See TracBrowser for help on using the repository browser.