[
https://issues.apache.org/jira/browse/FLUME-3436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612349#comment-17612349
]
Ralph Goers commented on FLUME-3436:
------------------------------------
Apache Flume now uses Log4j 2.x for logging. This error would mean that there
is a mismatch in the Log4j-API and Log4j-Core versions.
> Failed to instantiate SLF4J LoggerFactory
> -----------------------------------------
>
> Key: FLUME-3436
> URL: https://issues.apache.org/jira/browse/FLUME-3436
> Project: Flume
> Issue Type: Bug
> Affects Versions: 1.10.0
> Environment: apache-flume-1.10.1
> Linux version 3.10.0-957.el7.x86_64
> Java(TM) SE Runtime Environment (build 1.8.0_341-b10)
> Reporter: jk
> Priority: Major
>
> I'm currently trying to install a new version of Flume in a test environment,
> but I'm running into this problem. I'm not sure what to do:
> When I was using an older version of Flume in another environment, it would
> normally work fine with this command, but I failed with this version, and I
> tried it on both test machines with the same issue.
> [root@node01 flume]# bin/flume-ng agent -n agent -c conf -f
> conf/flume-conf.properties.template -D flume.root.logger=DEBUG,console
> Info: Sourcing environment configuration script
> /usr/local/flume/conf/flume-env.sh
> Info: Including Hive libraries found via () for Hive access
> + exec /usr/java/jre1.8.0_341-amd64/bin/java -Xmx20m -D -cp
> '/usr/local/flume/conf:/usr/local/flume/lib/*:/lib/*' -Djava.library.path=
> org.apache.flume.node.Application -n agent -f
> conf/flume-conf.properties.template flume.root.logger=DEBUG,console
> Failed to instantiate SLF4J LoggerFactory
> Reported exception:
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.logging.log4j.util.PropertiesUtil
> at
> org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:78)
> at
> org.apache.logging.slf4j.Log4jLoggerFactory.<clinit>(Log4jLoggerFactory.java:35)
> at
> org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:53)
> at
> org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:41)
> 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.flume.node.Application.<clinit>(Application.java:73)
> Exception in thread "main" java.lang.NoClassDefFoundError: Could not
> initialize class org.apache.logging.log4j.util.PropertiesUtil
> at
> org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:78)
> at
> org.apache.logging.slf4j.Log4jLoggerFactory.<clinit>(Log4jLoggerFactory.java:35)
> at
> org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:53)
> at
> org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:41)
> 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.flume.node.Application.<clinit>(Application.java:73)
> [root@node01 flume]#
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]