hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r1176682 - in /hadoop/common/branches/branch-0.22/hdfs: CHANGES.txt bin/hdfs
Date Wed, 28 Sep 2011 01:24:42 GMT
Author: cos
Date: Wed Sep 28 01:24:41 2011
New Revision: 1176682

URL: http://svn.apache.org/viewvc?rev=1176682&view=rev
Log:
HDFS-1943. fail to start datanode while start-dfs.sh is executed by root user. Contributed
by Wei Yongjun.

Modified:
    hadoop/common/branches/branch-0.22/hdfs/CHANGES.txt
    hadoop/common/branches/branch-0.22/hdfs/bin/hdfs

Modified: hadoop/common/branches/branch-0.22/hdfs/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.22/hdfs/CHANGES.txt?rev=1176682&r1=1176681&r2=1176682&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.22/hdfs/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.22/hdfs/CHANGES.txt Wed Sep 28 01:24:41 2011
@@ -631,6 +631,9 @@ Release 0.22.0 - Unreleased
     HDFS-2290. Block with corrupt replica is not getting replicated.
     (Benoy Antony via shv)
 
+    HDFS-1943. fail to start datanode while start-dfs.sh is executed by root
+    user (Wei Yongjun via cos)
+
 Release 0.21.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/common/branches/branch-0.22/hdfs/bin/hdfs
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.22/hdfs/bin/hdfs?rev=1176682&r1=1176681&r2=1176682&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.22/hdfs/bin/hdfs (original)
+++ hadoop/common/branches/branch-0.22/hdfs/bin/hdfs Wed Sep 28 01:24:41 2011
@@ -68,7 +68,7 @@ elif [ "$COMMAND" = "secondarynamenode" 
   HADOOP_OPTS="$HADOOP_OPTS $HADOOP_SECONDARYNAMENODE_OPTS"
 elif [ "$COMMAND" = "datanode" ] ; then
   CLASS='org.apache.hadoop.hdfs.server.datanode.DataNode'
-  if [[ $EUID -eq 0 ]]; then
+  if [ "$starting_secure_dn" = "true" ]; then
     HADOOP_OPTS="$HADOOP_OPTS -jvm server $HADOOP_DATANODE_OPTS"
   else
     HADOOP_OPTS="$HADOOP_OPTS -server $HADOOP_DATANODE_OPTS"



Mime
View raw message