hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hair...@apache.org
Subject svn commit: r653634 - in /hadoop/core/trunk: CHANGES.txt bin/start-balancer.sh bin/stop-balancer.sh
Date Mon, 05 May 2008 23:43:56 GMT
Author: hairong
Date: Mon May  5 16:43:56 2008
New Revision: 653634

URL: http://svn.apache.org/viewvc?rev=653634&view=rev
Log:
HADOOP-2930. Make {start,stop}-balancer.sh work even if hadoop-daemon.sh isn't in the PATH.
Contributed by Spiros Papadimitriou.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/bin/start-balancer.sh
    hadoop/core/trunk/bin/stop-balancer.sh

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=653634&r1=653633&r2=653634&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Mon May  5 16:43:56 2008
@@ -162,6 +162,9 @@
     HADOOP-3335. Prevent the libhdfs build from deleting the wrong
     files on make clean. (cutting via omalley)
 
+    HADOOP-2930. Make {start,stop}-balancer.sh work even if hadoop-daemon.sh
+    is not in the PATH. (Spiros Papadimitriou via hairong)
+
 Release 0.17.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/trunk/bin/start-balancer.sh
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/bin/start-balancer.sh?rev=653634&r1=653633&r2=653634&view=diff
==============================================================================
--- hadoop/core/trunk/bin/start-balancer.sh (original)
+++ hadoop/core/trunk/bin/start-balancer.sh Mon May  5 16:43:56 2008
@@ -15,7 +15,11 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/hadoop-config.sh
 
 # Start balancer daemon.
 
-hadoop-daemon.sh start balancer $@
+"$bin"/hadoop-daemon.sh --config $HADOOP_CONF_DIR start balancer $@

Modified: hadoop/core/trunk/bin/stop-balancer.sh
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/bin/stop-balancer.sh?rev=653634&r1=653633&r2=653634&view=diff
==============================================================================
--- hadoop/core/trunk/bin/stop-balancer.sh (original)
+++ hadoop/core/trunk/bin/stop-balancer.sh Mon May  5 16:43:56 2008
@@ -15,8 +15,12 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/hadoop-config.sh
 
 # Stop balancer daemon.
 # Run this on the machine where the balancer is running
 
-hadoop-daemon.sh stop balancer
+"$bin"/hadoop-daemon.sh --config $HADOOP_CONF_DIR stop balancer



Mime
View raw message