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
|
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_dir="/hdfsd05/dbbridge/solr-ef"
|
---|
7 |
|
---|
8 | for solr_host in $unique_hosts ; do
|
---|
9 | remote_dir="$solr_host:$local_dir"
|
---|
10 |
|
---|
11 | echo "Running rsync from networked SOLR_HOME to $remote_dir"
|
---|
12 | ssh $solr_host "if [ ! -d $local_dir ] ; then mkdir $local_dir ; fi"
|
---|
13 | rsync -pav "$SOLR_HOME/." "$remote_dir/."
|
---|
14 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.