hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077560 - /hadoop/common/branches/branch-0.20-security-patches/bin/hadoop
Date Fri, 04 Mar 2011 04:29:10 GMT
Author: omalley
Date: Fri Mar  4 04:29:10 2011
New Revision: 1077560

URL: http://svn.apache.org/viewvc?rev=1077560&view=rev
Log:
commit 870139811165f96885c0a3a4d0e15609954edd73
Author: Devaraj Das <ddas@yahoo-inc.com>
Date:   Tue May 18 09:57:31 2010 -0700

    HDFS:1150 from https://issues.apache.org/jira/secure/attachment/12444811/hdfs-1150-bugfix-1.patch
    
    +++ b/YAHOO-CHANGES.txt
    +    HDFS-1150. Bugfix in the hadoop shell script on top of earlier patches (ddas)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/bin/hadoop

Modified: hadoop/common/branches/branch-0.20-security-patches/bin/hadoop
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/bin/hadoop?rev=1077560&r1=1077559&r2=1077560&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/bin/hadoop (original)
+++ hadoop/common/branches/branch-0.20-security-patches/bin/hadoop Fri Mar  4 04:29:10 2011
@@ -326,6 +326,27 @@ if [ "$starting_secure_dn" = "true" ]; t
     HADOOP_SECURE_DN_PID="/tmp/hadoop_secure_dn.pid"
   else
    HADOOP_SECURE_DN_PID="$HADOOP_PID_DIR/hadoop_secure_dn.pid"
+
+if [ "$COMMAND" = "datanode" ]; then
+  if [[ $EUID -eq 0 ]]; then
+    if [ "$HADOOP_SECURE_DN_USER" = "" ]; then
+      HADOOP_SECURE_DN_USER="hdfs"
+    fi
+
+    if [ "$HADOOP_PID_DIR" = "" ]; then
+      HADOOP_SECURE_DN_PID="/tmp/hadoop_secure_dn.pid"
+    else
+      HADOOP_SECURE_DN_PID="$HADOOP_PID_DIR/hadoop_secure_dn.pid"
+    fi
+
+    exec "jsvc" -outfile "$HADOOP_LOG_DIR/jsvc.out" \
+                -errfile "$HADOOP_LOG_DIR/jsvc.err" \
+                -pidfile "$HADOOP_SECURE_DN_PID" \
+                -nodetach \
+                -user "$HADOOP_SECURE_DN_USER" \
+                -cp "$CLASSPATH" \
+                $JAVA_HEAP_MAX $HADOOP_OPTS \
+                org.apache.hadoop.hdfs.server.datanode.SecureDataNodeStarter "$@"
   fi
 
   exec "$HADOOP_HOME/bin/jsvc" -Dproc_$COMMAND -outfile "$HADOOP_LOG_DIR/jsvc.out" \



Mime
View raw message