hadoop-yarn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject svn commit: r1377821 - /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh
Date Mon, 27 Aug 2012 20:16:16 GMT
Author: harsh
Date: Mon Aug 27 20:16:16 2012
New Revision: 1377821

URL: http://svn.apache.org/viewvc?rev=1377821&view=rev
Log:
HADOOP-8719. Workaround for kerberos-related log errors upon running any hadoop command on
OSX. Contributed by Jianbin Wei. (harsh)

Modified:
    hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh

Modified: hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh?rev=1377821&r1=1377820&r2=1377821&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh (original)
+++ hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/conf/yarn-env.sh Mon Aug 27 20:16:16
2012
@@ -61,6 +61,15 @@ fi
 # restore ordinary behaviour
 unset IFS
 
+MAC_OSX=false
+case "`uname`" in
+Darwin*) MAC_OSX=true;;
+esac
+
+if $MAC_OSX; then
+  YARN_OPTS="$YARN_OPTS -Djava.security.krb5.realm= -Djava.security.krb5.kdc="
+fi
+
 
 YARN_OPTS="$YARN_OPTS -Dhadoop.log.dir=$YARN_LOG_DIR"
 YARN_OPTS="$YARN_OPTS -Dyarn.log.dir=$YARN_LOG_DIR"



Mime
View raw message