Last change
on this file since 31304 was 31304, checked in by davidb, 7 years ago |
Changes made whe (it turned out) the real source of the error was an error in a solr config file stored in zookeeper (currency error, shouldn't have made the version number 1.0 for htrc-name). Possible this change was not actually required
|
-
Property svn:executable
set to
*
|
File size:
704 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | unique_hosts=`echo $SOLR_NODES | tr ' ' '\n' | sed 's/:.*$//' | sort | uniq`
|
---|
4 |
|
---|
5 | #local_dir="/tmp/solr-ef"
|
---|
6 | local_dir1="/hdfsd05/dbbridge/solr-ef"
|
---|
7 | local_dir2="/hdfsd05/dbbridge/gslis-cluster/solr/server/solr"
|
---|
8 |
|
---|
9 | for solr_host in $unique_hosts ; do
|
---|
10 | remote_dir1="$solr_host:$local_dir1"
|
---|
11 | remote_dir2="$solr_host:$local_dir2"
|
---|
12 |
|
---|
13 | echo "Running rsync from networked SOLR_HOME to $remote_dir1"
|
---|
14 | ssh $solr_host "if [ ! -d $local_dir1 ] ; then mkdir $local_dir1 ; fi"
|
---|
15 | rsync -pav "$SOLR_HOME/." "$remote_dir1/."
|
---|
16 |
|
---|
17 | echo "Running rsync from networked SOLR_HOME to $remote_dir2"
|
---|
18 | ssh $solr_host "if [ ! -d $local_dir2 ] ; then mkdir $local_dir2 ; fi"
|
---|
19 | rsync -pav "$SOLR_HOME/." "$remote_dir2/."
|
---|
20 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.