Last change
on this file 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:
489 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | unique_hosts=`echo $SOLR_NODES | tr ' ' '\n' | sed 's/:.*$//' | sort | uniq`
|
---|
4 |
|
---|
5 | local_dir="/hdfsd05/dbbridge/solr-ef"
|
---|
6 |
|
---|
7 | for 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/.
|
---|
12 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.