Browse Source

Fix rsync command to (a) use ssh as transport, and (b) to correctly
quote the path.


git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@381821 13f79535-47bb-0310-9956-ffa450edef68

Doug Cutting 19 years ago
parent
commit
5c13c7170f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/hadoop-daemon.sh

+ 1 - 1
bin/hadoop-daemon.sh

@@ -74,7 +74,7 @@ case $startStop in
 
     if [ "$HADOOP_MASTER" != "" ]; then
       echo rsync from $HADOOP_MASTER
-      rsync -a --delete --exclude=.svn $HADOOP_MASTER/ $HADOOP_HOME
+      rsync -a -e ssh --delete --exclude=.svn $HADOOP_MASTER/ "$HADOOP_HOME"
     fi
 
     cd "$HADOOP_HOME"