我有Kafka制片人在虚拟机上运行。生产者将消息发布到远程kafka集群。我将其中一个vm中的操作系统从centos更新为rehl7,并将一些生产者转移到这个vm中。在运行producer作业时,我得到以下错误。我可以从这个vm发布到远程kafka集群,所有配置都已经完成。出现此错误的原因是什么(相同的主题正在旧的vm中成功运行)。我可能错过了什么配置?
错误
[XXXXX@XXXXXX ccbs_add_parent]$ ./crmpublisher.sh
[XXXXX@XXXXXX ccbs_add_parent]$ SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/apps/kafkaProducers/cmu/ccbs_add_parent/kafka-keberoes-producer.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/apps/kafkaProducers/cmu/ccbs_add_parent/libs/slf4j-log4j12-1.7.25.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 [org.slf4j.impl.Log4jLoggerFactory]
2020-10-12 09:03:49 INFO ProducerConfig:279 - ProducerConfig values:
acks = all
batch.size = 16384
bootstrap.servers = [XXXXXXXXXXXX:XXXX, XXXXXXXXXXXX:XXXX, XXXXXXXXXXXX:XXXX, XXXXXXXXXXXX:XXXX]
buffer.memory = 33554432
client.id =
compression.type = lz4
connections.max.idle.ms = 540000
enable.idempotence = false
interceptor.classes = []
key.serializer = class org.apache.kafka.common.serialization.StringSerializer
linger.ms = 1
max.block.ms = 60000
max.in.flight.requests.per.connection = 5
max.request.size = 1048576
metadata.max.age.ms = 300000
metric.reporters = []
metrics.num.samples = 2
metrics.recording.level = INFO
metrics.sample.window.ms = 30000
partitioner.class = class org.apache.kafka.clients.producer.internals.DefaultPartitioner
receive.buffer.bytes = 32768
reconnect.backoff.max.ms = 1000
reconnect.backoff.ms = 50
request.timeout.ms = 30000
retries = 0
retry.backoff.ms = 100
sasl.jaas.config = null
sasl.kerberos.kinit.cmd = /usr/bin/kinit
sasl.kerberos.min.time.before.relogin = 60000
sasl.kerberos.service.name = kafka
sasl.kerberos.ticket.renew.jitter = 0.05
sasl.kerberos.ticket.renew.window.factor = 0.8
sasl.mechanism = GSSAPI
security.protocol = SASL_PLAINTEXT
send.buffer.bytes = 131072
ssl.cipher.suites = null
ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
ssl.endpoint.identification.algorithm = null
ssl.key.password = null
ssl.keymanager.algorithm = SunX509
ssl.keystore.location = null
ssl.keystore.password = null
ssl.keystore.type = JKS
ssl.protocol = TLS
ssl.provider = null
ssl.secure.random.implementation = null
ssl.trustmanager.algorithm = PKIX
ssl.truststore.location = null
ssl.truststore.password = null
ssl.truststore.type = JKS
transaction.timeout.ms = 60000
transactional.id = null
value.serializer = class org.apache.kafka.common.serialization.StringSerializer
2020-10-12 09:03:50 INFO KafkaProducer:1054 - [Producer clientId=producer-1] Closing the Kafka producer with timeoutMillis = 0 ms.
2020-10-12 09:03:50 ERROR CrmKafkaProducer:77 - org.apache.kafka.common.KafkaException: Failed to construct kafka producer
2020-10-12 09:03:50 ERROR MainKafkaProducer:32 - org.apache.kafka.common.KafkaException: Failed to construct kafka producer
2020-10-12 09:03:50 ERROR SchedulerMain:36 - org.apache.kafka.common.KafkaException: Failed to construct kafka producer
暂无答案!
目前还没有任何答案,快来回答吧!