Hi Venkatesh, Where do you see this error?
Are you passing a custom log4j.properties file when launching the app? Thanks, Thomas On Thu, Jan 28, 2016 at 12:16 PM, Kottapalli, Venkatesh < [email protected]> wrote: > Hi, > > > I get the following message when I am trying to view > application master logs. I am running the app on DT 3.2.0. Please suggest. > > og4j:ERROR Could not read configuration file from URL > [file:/var/run/cloudera-scm-agent/process/1036-yarn-NODEMANAGER/log4j.properties]. > java.io.FileNotFoundException: > /var/run/cloudera-scm-agent/process/1036-yarn-NODEMANAGER/log4j.properties > (Permission denied) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.<init>(FileInputStream.java:146) > at java.io.FileInputStream.<init>(FileInputStream.java:101) > at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) > at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) > at > org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:557) > at > org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526) > at org.apache.log4j.LogManager.<clinit>(LogManager.java:127) > at org.apache.log4j.DTLoggerFactory.<clinit>(DTLoggerFactory.java:251) > at > com.datatorrent.stram.StramUtils$YarnContainerMain.<clinit>(StramUtils.java:83) > log4j:ERROR Ignoring configuration file > [file:/var/run/cloudera-scm-agent/process/1036-yarn-NODEMANAGER/log4j.properties]. > log4j:WARN No appenders could be found for logger > (org.apache.log4j.DTLoggerFactory). > log4j:WARN Please initialize the log4j system properly. > log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for > more info. > log4j:WARN No appenders could be found for logger > (com.datatorrent.stram.StreamingAppMaster). > log4j:WARN Please initialize the log4j system properly. > log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for > more info. > Jan 28, 2016 1:10:06 PM > com.google.inject.servlet.InternalServletModule$BackwardsCompatibleServletContextProvider > get > WARNING: You are attempting to use a deprecated API (specifically, > attempting to @Inject ServletContext inside an eagerly created singleton. > While we allow this for backwards compatibility, be warned that this MAY > have unexpected behavior if you have more than one injector (with > ServletModule) running in the same JVM. Please consult the Guice > documentation at http://code.google.com/p/google-guice/wiki/Servlets for > more information. > Jan 28, 2016 1:10:06 PM > com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register > INFO: Registering > com.datatorrent.stram.webapp.StramWebApp$JAXBContextResolver as a provider > class > Jan 28, 2016 1:10:06 PM > com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register > INFO: Registering org.apache.hadoop.yarn.webapp.GenericExceptionHandler as > a provider class > Jan 28, 2016 1:10:06 PM > com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register > INFO: Registering com.datatorrent.stram.webapp.WebServices as a root > resource class > Jan 28, 2016 1:10:06 PM > com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register > INFO: Registering com.datatorrent.stram.webapp.StramWebServices as a root > resource class > Jan 28, 2016 1:10:06 PM > com.sun.jersey.server.impl.application.WebApplicationImpl _initiate > INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 > AM' > Jan 28, 2016 1:10:06 PM > com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory > getComponentProvider > INFO: Binding com.datatorrent.stram.webapp.StramWebApp$JAXBContextResolver > to GuiceManagedComponentProvider with the scope "Singleton" > Jan 28, 2016 1:10:07 PM > com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory > getComponentProvider > INFO: Binding org.apache.hadoop.yarn.webapp.GenericExceptionHandler to > GuiceManagedComponentProvider with the scope "Singleton" > Jan 28, 2016 1:10:07 PM > com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory > getComponentProvider > INFO: Binding com.datatorrent.stram.webapp.WebServices to > GuiceManagedComponentProvider with the scope "PerRequest" > Jan 28, 2016 1:10:07 PM > com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory > getComponentProvider > INFO: Binding com.datatorrent.stram.webapp.StramWebServices to > GuiceManagedComponentProvider with the scope "Singleton" > Jan 28, 2016 1:10:07 PM > com.google.inject.servlet.InternalServletModule$BackwardsCompatibleServletContextProvider > get > WARNING: You are attempting to use a deprecated API (specifically, > attempting to @Inject ServletContext inside an eagerly created singleton. > While we allow this for backwards compatibility, be warned that this MAY > have unexpected behavior if you have more than one injector (with > ServletModule) running in the same JVM. Please consult the Guice > documentation at http://code.google.com/p/google-guice/wiki/Servlets for > more information. > >
