-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/48641/
-----------------------------------------------------------

Review request for Ambari and Dmytro Sen.


Bugs: AMBARI-17148
    https://issues.apache.org/jira/browse/AMBARI-17148


Repository: ambari


Description
-------

yarn cli are throwing "FileNotFoundException : /grid/0/log/yarn/hrt_qa/rm-
audit.log" log4j errors.  
Find yarn configuration at <http://qelog.hortonworks.com/log/os-r6-mhblfu-
yarn-ha/conf/hadoop/> and service logs at
<http://qelog.hortonworks.com/log/os-r6-mhblfu-yarn-ha/service-logs/yarn/>

    
    
    
    2016-05-05 
12:15:15,412|beaver.machine|INFO|32706|140642029037312|MainThread|RUNNING: 
/usr/hdp/current/hadoop-yarn-client/bin/yarn application -list -appStates 
RUNNING
    2016-05-05 
12:15:17,162|beaver.machine|INFO|32706|140642029037312|MainThread|log4j: ERROR 
setFile(null,true) call failed .
    2016-05-05 
12:15:17,166|beaver.machine|INFO|32706|140642029037312|MainThread|java.io. 
FileNotFoundException : /grid/0/log/yarn/hrt_qa/nm-audit.log (No such file or 
directory)
    2016-05-05 
12:15:17,167|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.io.FileOutputStream.open0(Native Method)
    2016-05-05 
12:15:17,167|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.io.FileOutputStream.open(FileOutputStream.java:270)
    2016-05-05 
12:15:17,167|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.io.FileOutputStream.(FileOutputStream.java:213)
    2016-05-05 
12:15:17,168|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.io.FileOutputStream.(FileOutputStream.java:133)
    2016-05-05 
12:15:17,168|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
    2016-05-05 
12:15:17,168|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
    2016-05-05 
12:15:17,169|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
    2016-05-05 
12:15:17,169|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
    2016-05-05 
12:15:17,169|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
    2016-05-05 
12:15:17,170|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
    2016-05-05 
12:15:17,170|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
    2016-05-05 
12:15:17,170|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
    2016-05-05 
12:15:17,174|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
    2016-05-05 
12:15:17,174|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
    2016-05-05 
12:15:17,178|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
    2016-05-05 
12:15:17,179|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
    2016-05-05 
12:15:17,179|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.LogManager.(LogManager.java:127)
    2016-05-05 
12:15:17,181|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.Logger.getLogger(Logger.java:104)
    2016-05-05 
12:15:17,182|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:262)
    2016-05-05 
12:15:17,182|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:108)
    2016-05-05 
12:15:17,182|beaver.machine|INFO|32706|140642029037312|MainThread|at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2016-05-05 
12:15:17,182|beaver.machine|INFO|32706|140642029037312|MainThread|at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    2016-05-05 
12:15:17,183|beaver.machine|INFO|32706|140642029037312|MainThread|at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    2016-05-05 
12:15:17,183|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    2016-05-05 
12:15:17,183|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1025)
    2016-05-05 
12:15:17,183|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:790)
    2016-05-05 
12:15:17,183|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:541)
    2016-05-05 
12:15:17,184|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
    2016-05-05 
12:15:17,184|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:269)
    2016-05-05 
12:15:17,184|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657)
    2016-05-05 
12:15:17,184|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.hadoop.conf.Configuration.(Configuration.java:177)
    2016-05-05 
12:15:17,185|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.hadoop.yarn.client.cli.YarnCLI.(YarnCLI.java:43)
    2016-05-05 
12:15:17,185|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.hadoop.yarn.client.cli.ApplicationCLI.(ApplicationCLI.java:58)
    2016-05-05 
12:15:17,185|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.hadoop.yarn.client.cli.ApplicationCLI.main(ApplicationCLI.java:80)
    2016-05-05 
12:15:17,186|beaver.machine|INFO|32706|140642029037312|MainThread|log4j: ERROR 
Either File or DatePattern options are not set for appender [NMAUDIT].
    2016-05-05 
12:15:17,196|beaver.machine|INFO|32706|140642029037312|MainThread|log4j: ERROR 
setFile(null,true) call failed .
    2016-05-05 
12:15:17,197|beaver.machine|INFO|32706|140642029037312|MainThread|java.io. 
FileNotFoundException : /grid/0/log/yarn/hrt_qa/rm-audit.log (No such file or 
directory)
    2016-05-05 
12:15:17,197|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.io.FileOutputStream.open0(Native Method)
    2016-05-05 
12:15:17,197|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.io.FileOutputStream.open(FileOutputStream.java:270)
    2016-05-05 
12:15:17,197|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.io.FileOutputStream.(FileOutputStream.java:213)
    2016-05-05 
12:15:17,198|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.io.FileOutputStream.(FileOutputStream.java:133)
    2016-05-05 
12:15:17,199|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
    2016-05-05 
12:15:17,199|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
    2016-05-05 
12:15:17,199|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
    2016-05-05 
12:15:17,199|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
    2016-05-05 
12:15:17,199|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
    2016-05-05 
12:15:17,200|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
    2016-05-05 
12:15:17,200|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
    2016-05-05 
12:15:17,200|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
    2016-05-05 
12:15:17,200|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
    2016-05-05 
12:15:17,201|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
    2016-05-05 
12:15:17,201|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
    2016-05-05 
12:15:17,201|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
    2016-05-05 
12:15:17,201|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.LogManager.(LogManager.java:127)
    2016-05-05 
12:15:17,201|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.log4j.Logger.getLogger(Logger.java:104)
    2016-05-05 
12:15:17,202|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:262)
    2016-05-05 
12:15:17,202|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:108)
    2016-05-05 
12:15:17,217|beaver.machine|INFO|32706|140642029037312|MainThread|at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2016-05-05 
12:15:17,217|beaver.machine|INFO|32706|140642029037312|MainThread|at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    2016-05-05 
12:15:17,217|beaver.machine|INFO|32706|140642029037312|MainThread|at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    2016-05-05 
12:15:17,218|beaver.machine|INFO|32706|140642029037312|MainThread|at 
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    2016-05-05 
12:15:17,218|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1025)
    2016-05-05 
12:15:17,218|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:790)
    2016-05-05 
12:15:17,218|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:541)
    2016-05-05 
12:15:17,218|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
    2016-05-05 
12:15:17,219|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:269)
    2016-05-05 
12:15:17,219|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657)
    2016-05-05 
12:15:17,219|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.hadoop.conf.Configuration.(Configuration.java:177)
    2016-05-05 
12:15:17,219|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.hadoop.yarn.client.cli.YarnCLI.(YarnCLI.java:43)
    2016-05-05 
12:15:17,219|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.hadoop.yarn.client.cli.ApplicationCLI.(ApplicationCLI.java:58)
    2016-05-05 
12:15:17,220|beaver.machine|INFO|32706|140642029037312|MainThread|at 
org.apache.hadoop.yarn.client.cli.ApplicationCLI.main(ApplicationCLI.java:80)
    2016-05-05 
12:15:17,220|beaver.machine|INFO|32706|140642029037312|MainThread|log4j: ERROR 
Either File or DatePattern options are not set for appender [RMAUDIT].
    2016-05-05 
12:15:20,641|beaver.machine|INFO|32706|140642029037312|MainThread|16/05/05 
12:15:20 INFO impl.TimelineClientImpl: Timeline service address: 
http://os-r6-mhblfu-yarn-ha-3.openstacklocal:8188/ws/v1/timeline/
    2016-05-05 
12:15:22,953|beaver.machine|INFO|32706|140642029037312|MainThread|Total number 
of applications (application-types: [] and states: [RUNNING]):0
    2016-05-05 
12:15:22,953|beaver.machine|INFO|32706|140642029037312|MainThread|Application-Id
 Application-Name        Application-Type        User    Queue   State   
Final-State     Progress        Tracking-URL
    2016-05-05 
12:15:23,316|beaver.component.hadoop|INFO|32706|140642029037312|MainThread|YARN 
getApplicationList returns:
    2016-05-05 
12:15:23,316|beaver.component.hadoop|INFO|32706|140642029037312|MainThread|Sleeping
 for 1 seconds for app ID to become available


Diffs
-----

  
ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/configuration/yarn-env.xml
 929f672 
  
ambari-server/src/main/resources/stacks/HDP/2.1/services/YARN/configuration/yarn-env.xml
 c43b462 
  
ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/configuration/yarn-env.xml
 90ad1fc 

Diff: https://reviews.apache.org/r/48641/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk

Reply via email to