Kafka Connect-文件源连接器错误 [英] Kafka Connect - File Source Connector error
问题描述
我正在使用 Conluent Platform/Kafka Connect 和类似的东西,我想举几个例子.
我从此处进行了快速入门.这意味着:
- 安装Confluent平台(v3.2.1)
- 运行Zookeeper,Kafka Broker和模式注册器
- 运行示例以读取文件数据(使用Wif Kafka Connect)
我运行了此命令(3号):
[root@sandbox confluent-3.2.1]# ./bin/connect-standalone ./etc/schema-registry/connect-avro-standalone.properties ./etc/kafka/connect-file-source.properties
但是得到了这个结果:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/etc/kafka-connect-opentsdb/target/scala-2.11/kafka-connect-opentsdb-assembly-0.0.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-serde-tools/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-connect-elasticsearch/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-connect-hdfs/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-connect-s3/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-connect-storage-common/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
Exception in thread "main" java.lang.NoSuchFieldError: SYSTEM
at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:67)
在第67行的ConnectStandalone.java
文件中的
是:Time time = Time.SYSTEM;
,但是我不知道,为什么它会引起任何错误.有任何想法吗?我错过了重要的东西吗?
我的工作环境:
- Hortonworks沙箱[HDP 2.5.0.0-1245]
- CentOS 6.8版
- Java:openjdk版本"1.8.0_121"
我在 第67行的ConnectStandalone.java文件上遇到相同的问题是:Time time = Time.SYSTEM"
em>
也许 OpenTSDB连接器取决于 kafka-clients-versionA.jar的版本与./libs下的kafka-clients-versionB.jar不同.
I am playing with Conluent Platform/Kafka Connect and similar things and I wanted to run few examples.
I followed quickstart from here. It means:
- Install Confluent Platform (v3.2.1)
- Run Zookeeper, Kafka Broker and Schema Register
- Run example for reading file data (witk Kafka Connect)
I ran this command (number 3):
[root@sandbox confluent-3.2.1]# ./bin/connect-standalone ./etc/schema-registry/connect-avro-standalone.properties ./etc/kafka/connect-file-source.properties
but got this result:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/etc/kafka-connect-opentsdb/target/scala-2.11/kafka-connect-opentsdb-assembly-0.0.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-serde-tools/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-connect-elasticsearch/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-connect-hdfs/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-connect-s3/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka-connect-storage-common/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/confluent-3.2.1/share/java/kafka/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
Exception in thread "main" java.lang.NoSuchFieldError: SYSTEM
at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:67)
In ConnectStandalone.java
file on the line 67 is this: Time time = Time.SYSTEM;
, but I do not know, why it should cause any error. Any ideas? Am I missing something important?
My working environment:
- Hortonworks Sandbox [HDP 2.5.0.0-1245]
- CentOS release 6.8
- Java: openjdk version "1.8.0_121"
I meet the same problem on "ConnectStandalone.java file on the line 67 is this: Time time = Time.SYSTEM"
It is maybe that the OpenTSDB connector depend on the version of kafka-clients-versionA.jar is different from the kafka-clients-versionB.jar under ./libs.
这篇关于Kafka Connect-文件源连接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!