Changeset 31231 for other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-rsync2nema-local-shard-all.sh
- Timestamp:
- 2016-12-13T22:41:54+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-rsync2nema-local-shard-all.sh
r31112 r31231 3 3 unique_hosts=`echo $SOLR_NODES | tr ' ' '\n' | sed 's/:.*$//' | sort | uniq` 4 4 5 5 local_dir="/hdfsd05/dbbridge/solr-ef" 6 6 7 7 for solr_host in $unique_hosts ; do 8 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 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/. 10 12 done
Note:
See TracChangeset
for help on using the changeset viewer.