java.lang.ClassNotFoundException: org.apache.hadoop.log.metrics.EventCounter

SpringSource Issue Tracker | Xueyuan Huang (c) | 4 years ago
  1. 0

    Reproduce Step: 1.Create a cluster on cdh distro: 2.Log in client node and run teragen job: ssh joe@10.111.88.103 hadoop jar /usr/lib/hadoop/hadoop-examples-0.20.2-cdh3u3.jar teragen 5000000 /user/joe/terasort-input Expected Result: 1.Teragen job finish. 2.No exception occurs. Actual Result: 1.Teragen job finish. 2.Throw exception. Exception Msg is as below: =============================================================== java.lang.ClassNotFoundException: org.apache.hadoop.log.metrics.EventCounter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179) at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320) at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:121) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:664) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471) at org.apache.log4j.LogManager.<clinit>(LogManager.java:125) at org.apache.log4j.Logger.getLogger(Logger.java:105) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:150) at org.apache.hadoop.util.RunJar.main(RunJar.java:143) log4j:ERROR Could not instantiate appender named "EventCounter". ===============================================================

    SpringSource Issue Tracker | 4 years ago | Xueyuan Huang (c)
    java.lang.ClassNotFoundException: org.apache.hadoop.log.metrics.EventCounter
  2. 0

    Reproduce Step: 1.Create a cluster on cdh distro: 2.Log in client node and run teragen job: ssh joe@10.111.88.103 hadoop jar /usr/lib/hadoop/hadoop-examples-0.20.2-cdh3u3.jar teragen 5000000 /user/joe/terasort-input Expected Result: 1.Teragen job finish. 2.No exception occurs. Actual Result: 1.Teragen job finish. 2.Throw exception. Exception Msg is as below: =============================================================== java.lang.ClassNotFoundException: org.apache.hadoop.log.metrics.EventCounter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179) at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320) at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:121) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:664) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471) at org.apache.log4j.LogManager.<clinit>(LogManager.java:125) at org.apache.log4j.Logger.getLogger(Logger.java:105) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:150) at org.apache.hadoop.util.RunJar.main(RunJar.java:143) log4j:ERROR Could not instantiate appender named "EventCounter". ===============================================================

    SpringSource Issue Tracker | 4 years ago | Xueyuan Huang (c)
    java.lang.ClassNotFoundException: org.apache.hadoop.log.metrics.EventCounter
  3. 0

    Azure Data Factory Jobs Failing in Hadoop/Map Reduce?

    Stack Overflow | 9 months ago | Tayyab Anwar
    java.lang.ClassNotFoundException: com.microsoft.log4jappender.FilterLogAppender
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    when installing hadoop0.21.0 with exception EventCounter not found and cannot create directory

    Stack Overflow | 4 years ago | Li You
    java.lang.ClassNotFoundException: org.apache.hadoop.log.metrics.EventCounter
  6. 0

    Re: Problem when trying to connect to hive server using jdbc

    apache.org | 1 year ago
    java.lang.ClassNotFoundException: org.apache.hadoop.log.metrics.EventCounter

  1. gehel 1 times, last 6 days ago
  2. davidvanlaatum 3 times, last 7 days ago
  3. danleyb2Interintel 1 times, last 2 weeks ago
  4. malhobayyeb 3 times, last 2 weeks ago
  5. Kialandei 1 times, last 2 weeks ago
49 more registered users
46 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.apache.hadoop.log.metrics.EventCounter

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    6. java.lang.ClassLoader.loadClass(Unknown Source)
    7. java.lang.Class.forName0(Native Method)
    8. java.lang.Class.forName(Unknown Source)
    8 frames
  3. Apache Log4j
    Logger.getLogger
    1. org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)
    2. org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320)
    3. org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:121)
    4. org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:664)
    5. org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
    6. org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
    7. org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
    8. org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
    9. org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
    10. org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
    11. org.apache.log4j.Logger.getLogger(Logger.java:105)
    11 frames
  4. Apache Commons Logging
    Log4JLogger.<init>
    1. org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
    2. org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
    2 frames
  5. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  6. Apache Commons Logging
    LogFactory.getLog
    1. org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
    2. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
    3. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
    4. org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    4 frames
  7. Hadoop
    RunJar.main
    1. org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:150)
    2. org.apache.hadoop.util.RunJar.main(RunJar.java:143)
    2 frames