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

Last change on this file since 31231 was 31231, checked in by davidb, 5 years ago

Changes to allow SOLR to run on nodes in /hdfsd05/dbbridge/solr-ef

  • Property svn:executable set to *
File size: 489 bytes
Line 
1#!/bin/bash
2
3unique_hosts=`echo $SOLR_NODES | tr ' ' '\n' | sed 's/:.*$//' | sort | uniq`
4
5local_dir="/hdfsd05/dbbridge/solr-ef"
6
7for solr_host in $unique_hosts ; do
8 echo "Running 'rsync' on $solr_host -> nema:/tmp/$solr_host/solr-ef"
9# ssh $solr_host rsync -pav /tmp/solr-ef/solr nema:/tmp/${solr_host}-solr-ef
10 ssh nema "if [ ! -d /tmp/${solr_host}-solr-ef ] ; then mkdir /tmp/${solr_host}-solr-ef ; fi"
11 ssh $solr_host rsync -pav $local_dir/. nema:/tmp/${solr_host}-solr-ef/.
12done
Note: See TracBrowser for help on using the repository browser.