hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-16137) hadoop version - fairscheduler-statedump.log (No such file or directory)
Date Fri, 01 Mar 2019 02:03:00 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-16137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16781206#comment-16781206
] 

Akira Ajisaka commented on HADOOP-16137:
----------------------------------------

This issue is duplicate of YARN-9308.

Workaround: Remove the following settings from log4j.properties.
{noformat}
# Fair scheduler requests log on state dump		
log4j.logger.org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.statedump=DEBUG,FSLOGGER
	
log4j.additivity.org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.statedump=false
	
log4j.appender.FSLOGGER=org.apache.log4j.RollingFileAppender		
log4j.appender.FSLOGGER.File=${hadoop.log.dir}/fairscheduler-statedump.log		
log4j.appender.FSLOGGER.layout=org.apache.log4j.PatternLayout		
log4j.appender.FSLOGGER.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n		
log4j.appender.FSLOGGER.MaxFileSize=${hadoop.log.maxfilesize}		
log4j.appender.FSLOGGER.MaxBackupIndex=${hadoop.log.maxbackupindex}
{noformat}

> hadoop version - fairscheduler-statedump.log (No such file or directory)
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-16137
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16137
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Massoud Maboudi
>            Priority: Major
>
> I tried to install hadoop-3.2.0 on linux mint. Everything is going fine. Also java 11.0.2
is installed like this:
> {code:java}
> $ java -version java version "11.0.2" 2018-10-16 LTS Java(TM) SE Runtime Environment
18.9 (build 11.0.2+7-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+7-LTS, mixed
mode){code}
> when I use this command {{hadoop version}}, I get this error:
> {code:java}
> $ hadoop version log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException:
/usr/local/hadoop-3.2.0/logs/fairscheduler-statedump.log (No such file or directory) at java.base/java.io.FileOutputStream.open0(Native
Method) at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:237)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:158) at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768) at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526) at
org.apache.log4j.LogManager.<clinit>(LogManager.java:127) at org.slf4j.impl.Log4jLoggerFactory.<init>(Log4jLoggerFactory.java:66)
at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:72) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:45)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383) at org.apache.hadoop.util.VersionInfo.<clinit>(VersionInfo.java:37)
Hadoop 3.2.0 Source code repository https://github.com/apache/hadoop.git -r e97acb3bd8f3befd27418996fa5d4b50bf2e17bf
Compiled by sunilg on 2019-01-08T06:08Z Compiled with protoc 2.5.0 From source with checksum
d3f0795ed0d9dc378e2c785d3668f39 This command was run using /usr/local/hadoop-3.2.0/share/hadoop/common/hadoop-common-3.2.0.jar{code}
> It seems hadoop is properly installed but something is wrong with {{log4j}}. May I ask
you to help me to solve this error?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message