hadoop-yarn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sur...@apache.org
Subject svn commit: r1443517 - /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh
Date Thu, 07 Feb 2013 14:52:58 GMT
Author: suresh
Date: Thu Feb  7 14:52:58 2013
New Revision: 1443517

URL: http://svn.apache.org/viewvc?rev=1443517&view=rev
Log:
HADOOP-9253. Capture ulimit info in the logs at service start time. Contributed by Arpit Gupta.

Modified:
    hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh

Modified: hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh?rev=1443517&r1=1443516&r2=1443517&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh (original)
+++ hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh Thu Feb  7 14:52:58
2013
@@ -123,7 +123,11 @@ case $startStop in
     cd "$HADOOP_YARN_HOME"
     nohup nice -n $YARN_NICENESS "$HADOOP_YARN_HOME"/bin/yarn --config $YARN_CONF_DIR $command
"$@" > "$log" 2>&1 < /dev/null &
     echo $! > $pid
-    sleep 1; head "$log"
+    sleep 1
+    # capture the ulimit output
+    echo "ulimit -a" >> $log
+    ulimit -a >> $log 2>&1
+    head -30 "$log"
     ;;
           
   (stop)



Mime
View raw message