AMBARI-17148. yarncli throws log4j error "FileNotFoundException : 
/grid/0/log/yarn/hrt_qa/rm-audit.log" (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7594165a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7594165a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7594165a

Branch: refs/heads/branch-2.4
Commit: 7594165a485fef932a786eb9abf94421bad60004
Parents: 5c14304
Author: Andrew Onishuk <[email protected]>
Authored: Mon Jun 13 20:44:49 2016 +0300
Committer: Andrew Onishuk <[email protected]>
Committed: Mon Jun 13 20:44:49 2016 +0300

----------------------------------------------------------------------
 .../common-services/YARN/2.1.0.2.0/configuration/yarn-env.xml     | 3 ++-
 .../stacks/HDP/2.1/services/YARN/configuration/yarn-env.xml       | 3 ++-
 .../stacks/HDP/2.3/services/YARN/configuration/yarn-env.xml       | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7594165a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/configuration/yarn-env.xml
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/configuration/yarn-env.xml
 
b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/configuration/yarn-env.xml
index 929f672..b035ea3 100644
--- 
a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/configuration/yarn-env.xml
+++ 
b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/configuration/yarn-env.xml
@@ -230,7 +230,8 @@ YARN_OPTS="$YARN_OPTS -Dyarn.home.dir=$YARN_COMMON_HOME"
 YARN_OPTS="$YARN_OPTS -Dyarn.id.str=$YARN_IDENT_STRING"
 YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
 YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
-YARN_OPTS="$YARN_OPTS -Drm.audit.logger=INFO,RMAUDIT 
-Dnm.audit.logger=INFO,NMAUDIT"
+export YARN_NODEMANAGER_OPTS="$YARN_NODEMANAGER_OPTS 
-Dnm.audit.logger=INFO,NMAUDIT"
+export YARN_RESOURCEMANAGER_OPTS="$YARN_RESOURCEMANAGER_OPTS 
-Drm.audit.logger=INFO,RMAUDIT"
 if [ "x$JAVA_LIBRARY_PATH" != "x" ]; then
   YARN_OPTS="$YARN_OPTS -Djava.library.path=$JAVA_LIBRARY_PATH"
 fi

http://git-wip-us.apache.org/repos/asf/ambari/blob/7594165a/ambari-server/src/main/resources/stacks/HDP/2.1/services/YARN/configuration/yarn-env.xml
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.1/services/YARN/configuration/yarn-env.xml
 
b/ambari-server/src/main/resources/stacks/HDP/2.1/services/YARN/configuration/yarn-env.xml
index c43b462..2b84c81 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.1/services/YARN/configuration/yarn-env.xml
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.1/services/YARN/configuration/yarn-env.xml
@@ -145,7 +145,8 @@ YARN_OPTS="$YARN_OPTS -Dyarn.home.dir=$YARN_COMMON_HOME"
 YARN_OPTS="$YARN_OPTS -Dyarn.id.str=$YARN_IDENT_STRING"
 YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
 YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
-YARN_OPTS="$YARN_OPTS -Drm.audit.logger=INFO,RMAUDIT 
-Dnm.audit.logger=INFO,NMAUDIT"
+export YARN_NODEMANAGER_OPTS="$YARN_NODEMANAGER_OPTS 
-Dnm.audit.logger=INFO,NMAUDIT"
+export YARN_RESOURCEMANAGER_OPTS="$YARN_RESOURCEMANAGER_OPTS 
-Drm.audit.logger=INFO,RMAUDIT"
 if [ "x$JAVA_LIBRARY_PATH" != "x" ]; then
   YARN_OPTS="$YARN_OPTS -Djava.library.path=$JAVA_LIBRARY_PATH"
 fi

http://git-wip-us.apache.org/repos/asf/ambari/blob/7594165a/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-env.xml
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-env.xml
 
b/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-env.xml
index 90ad1fc..190684c 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-env.xml
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-env.xml
@@ -146,7 +146,8 @@
       YARN_OPTS="$YARN_OPTS -Dyarn.id.str=$YARN_IDENT_STRING"
       YARN_OPTS="$YARN_OPTS 
-Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
       YARN_OPTS="$YARN_OPTS 
-Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
-      YARN_OPTS="$YARN_OPTS -Drm.audit.logger=INFO,RMAUDIT 
-Dnm.audit.logger=INFO,NMAUDIT"
+      export YARN_NODEMANAGER_OPTS="$YARN_NODEMANAGER_OPTS 
-Dnm.audit.logger=INFO,NMAUDIT"
+      export YARN_RESOURCEMANAGER_OPTS="$YARN_RESOURCEMANAGER_OPTS 
-Drm.audit.logger=INFO,RMAUDIT"
       if [ "x$JAVA_LIBRARY_PATH" != "x" ]; then
       YARN_OPTS="$YARN_OPTS -Djava.library.path=$JAVA_LIBRARY_PATH"
       fi

Reply via email to