Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-1027

Missing log4j library in Flume distribution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.1.0
    • 1.1.0, 1.2.0
    • Node
    • None
    • [CentOS 6.2 64-bit]

    Description

      [will@localhost flume-1.1.0-incubating-SNAPSHOT]$ bin/flume-ng node --conf conf --conf-file conf/flume-conf.properties --name foo
      Failed to instantiate SLF4J LoggerFactory
      Reported exception:
      java.lang.NoClassDefFoundError: org/apache/log4j/Level
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:279)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:265)
      at org.apache.flume.node.Application.<clinit>(Application.java:52)
      Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 6 more
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Level
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:279)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:265)
      at org.apache.flume.node.Application.<clinit>(Application.java:52)
      Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 6 more
      Could not find the main class: org.apache.flume.node.Application. Program will exit.

      Attachments

        1. FLUME-1027.patch
          0.3 kB
          Mike Percy

        Activity

          People

            mpercy Mike Percy
            will@cloudera.com Will McQueen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: