Wei-Chiu Chuang created HDDS-15419:
--------------------------------------
Summary: log file not found for ozone s3 command
Key: HDDS-15419
URL: https://issues.apache.org/jira/browse/HDDS-15419
Project: Apache Ozone
Issue Type: Bug
Affects Versions: 2.1.1
Reporter: Wei-Chiu Chuang
Cosmetic issue. Built the 2.1.1 Ozone debian package, installed it and it
displayed an error:
{noformat}
/opt/ozone/bin/ozone s3
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /opt/ozone/logs/access.log (No such file or
directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:162)
at
org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:208)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:274)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:154)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:775)
at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:711)
at
org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:625)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:493)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:552)
at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:485)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:115)
at
org.slf4j.reload4j.Reload4jLoggerFactory.<init>(Reload4jLoggerFactory.java:67)
at
org.slf4j.reload4j.Reload4jServiceProvider.initialize(Reload4jServiceProvider.java:43)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:201)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:187)
at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:511)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:497)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:446)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:472)
at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:232)
at org.apache.hadoop.hdds.cli.GenericCli.<init>(GenericCli.java:45)
at org.apache.hadoop.ozone.shell.Shell.<init>(Shell.java:70)
at org.apache.hadoop.ozone.shell.s3.S3Shell.<init>(S3Shell.java:33)
at org.apache.hadoop.ozone.shell.s3.S3Shell.main(S3Shell.java:36)
log4j:ERROR Either File or DatePattern options are not set for appender
[HttpAccess]. {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]