Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17642

Remove appender EventCounter to avoid instantiation

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      After removal of EventCounter class, we are not able to bring up HDFS cluster.

      log4j:ERROR Could not instantiate class [org.apache.hadoop.log.metrics.EventCounter].
      java.lang.ClassNotFoundException: org.apache.hadoop.log.metrics.EventCounter
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:264)
      	at org.apache.log4j.helpers.Loader.loadClass(Loader.java:198)
      	at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:327)
      	at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:124)
      	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:785)
      	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
      	at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
      	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
      	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:417)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
      	at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:229)
      	at org.apache.hadoop.hdfs.tools.GetConf.<clinit>(GetConf.java:131)
      log4j:ERROR Could not instantiate appender named "EventCounter".
      

      We need to clean up log4j.properties to avoid instantiating appender EventCounter.

      Attachments

        Issue Links

          Activity

            People

              vjasani Viraj Jasani
              vjasani Viraj Jasani
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h