启动flume是报以下错误Info: Including Hadoop libraries found via (/opt/software/hadoop-2.8.3/bin/hadoop) for HDFS access Info: Including Hive libraries found via (/opt/software/hive-2.3.3) for Hive access + exec /opt/jdk1.8.0_261/bin/java -Xmx20m -cp '/opt/software/flume-1.8.0/conf:/opt/software/flume-1.8.0/lib/*:/opt/software/hadoop-2.8.3/etc/hadoop:/opt/software/hadoop-2.8.3/share/hadoop/common/lib/*:/opt/software/hadoop-2.8.3/share/hadoop/common/*:/opt/software/hadoop-2.8.3/share/hadoop/hdfs:/opt/software/hadoop-2.8.3/share/hadoop/hdfs/lib/*:/opt/software/hadoop-2.8.3/share/hadoop/hdfs/*:/opt/software/hadoop-2.8.3/share/hadoop/yarn/lib/*:/opt/software/hadoop-2.8.3/share/hadoop/yarn/*:/opt/software/hadoop-2.8.3/share/hadoop/mapreduce/lib/*:/opt/software/hadoop-2.8.3/share/hadoop/mapreduce/*:/contrib/capacity-scheduler/*.jar:/opt/software/hive-2.3.3/lib/*' -Djava.library.path=:/opt/software/hadoop-2.8.3/lib/native org.apache.flume.node.Application --conf-file /opt/software/flume-1.8.0/conf/hdfs.conf --name agent1 Dflume.root.logger=DEBUG,console SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/software/flume-1.8.0/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/software/hadoop-2.8.3/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/software/hive-2.3.3/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.是什么原因
时间: 2023-07-12 20:03:34 浏览: 356
hadoop新手入门资料
这个错误是由于在classpath中包含了多个SLF4J的绑定引起的。由于SLF4J提供了多种绑定,如果在classpath中包含了多个绑定,就会导致这个异常。为了解决这个问题,你可以在classpath中保留一个绑定,并删除其他绑定。或者你可以通过在classpath中包含一个名为slf4j-over-log4j的JAR来解决这个问题,它可以将所有SLF4J日志记录器路由到Log4J日志记录器。
阅读全文