hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1099640 - in /hadoop/hdfs/trunk: CHANGES.txt bin/distribute-exclude.sh bin/refresh-namenodes.sh bin/start-dfs.sh bin/stop-dfs.sh
Date Wed, 04 May 2011 23:42:49 GMT
Author: eli
Date: Wed May  4 23:42:49 2011
New Revision: 1099640

URL: http://svn.apache.org/viewvc?rev=1099640&view=rev
Log:
HDFS-1889. incorrect path in start/stop dfs script. Contributd by John George

Modified:
    hadoop/hdfs/trunk/CHANGES.txt
    hadoop/hdfs/trunk/bin/distribute-exclude.sh
    hadoop/hdfs/trunk/bin/refresh-namenodes.sh
    hadoop/hdfs/trunk/bin/start-dfs.sh
    hadoop/hdfs/trunk/bin/stop-dfs.sh

Modified: hadoop/hdfs/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=1099640&r1=1099639&r2=1099640&view=diff
==============================================================================
--- hadoop/hdfs/trunk/CHANGES.txt (original)
+++ hadoop/hdfs/trunk/CHANGES.txt Wed May  4 23:42:49 2011
@@ -494,6 +494,8 @@ Trunk (unreleased changes)
     HDFS-1888. MiniDFSCluster#corruptBlockOnDatanodes() access must be
     public. (suresh)
 
+    HDFS-1889. incorrect path in start/stop dfs script. (John George via eli)
+
 Release 0.22.0 - Unreleased
 
   NEW FEATURES

Modified: hadoop/hdfs/trunk/bin/distribute-exclude.sh
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/bin/distribute-exclude.sh?rev=1099640&r1=1099639&r2=1099640&view=diff
==============================================================================
--- hadoop/hdfs/trunk/bin/distribute-exclude.sh (original)
+++ hadoop/hdfs/trunk/bin/distribute-exclude.sh Wed May  4 23:42:49 2011
@@ -50,8 +50,8 @@ if [ ! -f "$excludeFilenameLocal" ] ; th
   exit 1
 fi
 
-namenodes=$("$HADOOP_HOME/bin/hdfs" getconf -namenodes)
-excludeFilenameRemote=$("$HADOOP_HOME/bin/hdfs" getconf -excludeFile)
+namenodes=$("$HADOOP_HDFS_HOME/bin/hdfs" getconf -namenodes)
+excludeFilenameRemote=$("$HADOOP_HDFS_HOME/bin/hdfs" getconf -excludeFile)
 
 if [ "$excludeFilenameRemote" = '' ] ; then
   echo \

Modified: hadoop/hdfs/trunk/bin/refresh-namenodes.sh
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/bin/refresh-namenodes.sh?rev=1099640&r1=1099639&r2=1099640&view=diff
==============================================================================
--- hadoop/hdfs/trunk/bin/refresh-namenodes.sh (original)
+++ hadoop/hdfs/trunk/bin/refresh-namenodes.sh Wed May  4 23:42:49 2011
@@ -25,11 +25,11 @@ bin=`cd "$bin"; pwd`
 
 . "$bin/hdfs-config.sh"
 
-namenodes=$("$HADOOP_HOME/bin/hdfs" getconf -namenodes)
+namenodes=$("$HADOOP_HDFS_HOME/bin/hdfs" getconf -namenodes)
 
 for namenode in $namenodes ; do
   echo "Refreshing namenode [$namenode]"
-  "$HADOOP_HOME/bin/hdfs" dfsadmin -refreshNodes
+  "$HADOOP_HDFS_HOME/bin/hdfs" dfsadmin -refreshNodes
   if [ "$?" != '0' ] ; then errorFlag='1' ; fi
 done
 

Modified: hadoop/hdfs/trunk/bin/start-dfs.sh
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/bin/start-dfs.sh?rev=1099640&r1=1099639&r2=1099640&view=diff
==============================================================================
--- hadoop/hdfs/trunk/bin/start-dfs.sh (original)
+++ hadoop/hdfs/trunk/bin/start-dfs.sh Wed May  4 23:42:49 2011
@@ -47,7 +47,7 @@ fi
 #---------------------------------------------------------
 # namenodes
 
-NAMENODES=$($HADOOP_HOME/bin/hdfs getconf -namenodes)
+NAMENODES=$($HADOOP_HDFS_HOME/bin/hdfs getconf -namenodes)
 
 echo "Starting namenodes on [$NAMENODES]"
 
@@ -74,7 +74,7 @@ fi
 
 # if there are no secondary namenodes configured it returns
 # 0.0.0.0 or empty string
-SECONDARY_NAMENODES=$($HADOOP_HOME/bin/hdfs getconf -secondarynamenodes 2>&-)
+SECONDARY_NAMENODES=$($HADOOP_HDFS_HOME/bin/hdfs getconf -secondarynamenodes 2>&-)
 SECONDARY_NAMENODES=${SECONDARY_NAMENODES:='0.0.0.0'}
 
 if [ "$SECONDARY_NAMENODES" = '0.0.0.0' ] ; then

Modified: hadoop/hdfs/trunk/bin/stop-dfs.sh
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/bin/stop-dfs.sh?rev=1099640&r1=1099639&r2=1099640&view=diff
==============================================================================
--- hadoop/hdfs/trunk/bin/stop-dfs.sh (original)
+++ hadoop/hdfs/trunk/bin/stop-dfs.sh Wed May  4 23:42:49 2011
@@ -23,7 +23,7 @@ bin=`cd "$bin"; pwd`
 #---------------------------------------------------------
 # namenodes
 
-NAMENODES=$($HADOOP_HOME/bin/hdfs getconf -namenodes)
+NAMENODES=$($HADOOP_HDFS_HOME/bin/hdfs getconf -namenodes)
 
 echo "Stopping namenodes on [$NAMENODES]"
 
@@ -50,7 +50,7 @@ fi
 
 # if there are no secondary namenodes configured it returns
 # 0.0.0.0 or empty string
-SECONDARY_NAMENODES=$($HADOOP_HOME/bin/hdfs getconf -secondarynamenodes 2>&-)
+SECONDARY_NAMENODES=$($HADOOP_HDFS_HOME/bin/hdfs getconf -secondarynamenodes 2>&-)
 SECONDARY_NAMENODES=${SECONDARY_NAMENODES:-'0.0.0.0'}
 
 if [ "$SECONDARY_NAMENODES" = '0.0.0.0' ] ; then



Mime
View raw message