Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1886

Kafka server can not create a log-cleaner.log file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8.0, 1.0.0
    • Fix Version/s: 1.0.0, 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      $ cat /var/log/kafka/kafka-server.out
      
      log4j:ERROR setFile(null,true) call failed.
      java.io.FileNotFoundException: log-cleaner.log (Permission denied)
      	at java.io.FileOutputStream.open(Native Method)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
      	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
      	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
      	at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
      	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:809)
      	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
      	at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:639)
      	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:504)
      	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547)
      	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
      	at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      	at org.apache.log4j.Logger.getLogger(Logger.java:104)
      	at kafka.utils.Logging$class.logger(Logging.scala:24)
      	at kafka.utils.VerifiableProperties.logger$lzycompute(VerifiableProperties.scala:24)
      	at kafka.utils.VerifiableProperties.logger(VerifiableProperties.scala:24)
      	at kafka.utils.Logging$class.info(Logging.scala:67)
      	at kafka.utils.VerifiableProperties.info(VerifiableProperties.scala:24)
      	at kafka.utils.VerifiableProperties.verify(VerifiableProperties.scala:197)
      	at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:32)
      	at kafka.Kafka$.main(Kafka.scala:35)
      	at kafka.Kafka.main(Kafka.scala)
      ...
      

      The 'log-cleaner.log' should be

      ${kafka.logs.dir}/log-cleaner.log

      . Like this:

      log4j.appender.cleanerAppender.File=${kafka.logs.dir}/log-cleaner.log
      

      This is fixed by KAFKA-1251 but 0.8.1.x does not have that.

        Attachments

          Activity

            People

            • Assignee:
              warwithin YoungWoo Kim
              Reporter:
              warwithin YoungWoo Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: