summaryrefslogtreecommitdiff
path: root/devel/hadoop2/files/patch-hadoop-yarn-project-hadoop-yarn-bin-yarn-daemon.sh
blob: ec94968ba974132a6c8f49d434ab1aa7576449f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh.orig	2014-06-21 09:41:15.000000000 +0400
+++ hadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh	2014-07-04 15:48:29.000000000 +0400
@@ -79,10 +79,6 @@
   export YARN_LOG_DIR="$HADOOP_YARN_HOME/logs"
 fi
 
-if [ ! -w "$YARN_LOG_DIR" ] ; then
-  mkdir -p "$YARN_LOG_DIR"
-  chown $YARN_IDENT_STRING $YARN_LOG_DIR 
-fi
 
 if [ "$YARN_PID_DIR" = "" ]; then
   YARN_PID_DIR=/tmp
@@ -104,8 +100,6 @@
 
   (start)
 
-    [ -w "$YARN_PID_DIR" ] || mkdir -p "$YARN_PID_DIR"
-
     if [ -f $pid ]; then
       if kill -0 `cat $pid` > /dev/null 2>&1; then
         echo $command running as process `cat $pid`.  Stop it first.