Support Questions

Find answers, ask questions, and share your expertise
Celebrating as our community reaches 100,000 members! Thank you!

Kafka commitid : Unknown


When i am trying to sending  data to topic. using this command 

kafka-console-producer --broker-list hostname:9092 --topic topic name 


Getting this lines as a  output of command 

18/04/02 01:09:49 INFO utils.AppInfoParser: Kafka version : 0.10.2-kafka-2.2.0
18/04/02 01:09:49 INFO utils.AppInfoParser: Kafka commitId : unknown



CDH version 5.13 package 



 Any help would be much appreciated ? 



The commitId here references the source commit ID from which the Kafka jar
was built. It does not reference any Kafka usage related terms such as
'commit offsets' or other terms.

The reason it appears as "unknown" is tied to the way we build it (outside
of a repository). The field being unknown does not affect the Kafka
client's functionality in any manner.

Are you facing an issue with your Kafka clients? Is there another error or
behaviour you observe that is breaking your app?

I am not able to send the data into topic using this command
kafka-console-producer --broker-list hostname:9092 --topic topic name

Is that command i am using is worng one or missing something in it ?
Please let me know

Also, How do i make sure my kafka client is working properly.



[cloudera@quickstart bin]$ kafka-console-producer --broker-list hostname:909                                                                             2 --topic planedate
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/lib/kafka/libs/slf4j-log4j12-1.7.21.jar!/                                                                             org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/lib/kafka/libs/slf4j-log4j12-1.7.5.jar!/o                                                                             rg/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
18/04/02 02:09:46 INFO producer.ProducerConfig: ProducerConfig values:
        acks = 1
        batch.size = 16384
        block.on.buffer.full = false
        bootstrap.servers = []
        buffer.memory = 33554432 = console-producer
        compression.type = none = 540000
        interceptor.classes = null
        key.serializer = class org.apache.kafka.common.serialization.ByteArraySe                                                                             rializer = 1000 = 60000 = 5
        max.request.size = 1048576 = 60000 = 300000
        metric.reporters = []
        metrics.num.samples = 2 = 30000
        partitioner.class = class org.apache.kafka.clients.producer.internals.De                                                                             faultPartitioner
        receive.buffer.bytes = 32768 = 50 = 1500
        retries = 3 = 100
        sasl.jaas.config = null
        sasl.kerberos.kinit.cmd = /usr/bin/kinit
        sasl.kerberos.min.time.before.relogin = 60000 = null
        sasl.kerberos.ticket.renew.jitter = 0.05
        sasl.kerberos.ticket.renew.window.factor = 0.8
        sasl.mechanism = GSSAPI
        security.protocol = PLAINTEXT
        send.buffer.bytes = 102400
        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 = null
        ssl.trustmanager.algorithm = PKIX
        ssl.truststore.location = null
        ssl.truststore.password = null
        ssl.truststore.type = JKS = 30000
        value.serializer = class org.apache.kafka.common.serialization.ByteArray                                                                             Serializer

18/04/02 02:09:46 INFO utils.AppInfoParser: Kafka version : 0.10.2-kafka-2.2.0
18/04/02 02:09:46 INFO utils.AppInfoParser: Kafka commitId : unknown


This is complete messeges I am getting when trying to send the messages like Hi howdy

New Contributor



I'm facing the same error and when i try to send text via producer, the following error appears:


[cloudera@quickstart ~]$ kafka-console-producer --broker-list localhost:9092 --topic test2


18/05/09 02:21:28 WARN clients.NetworkClient: Connection to node -1 could not be established. Broker may not be available.


my question is how to let zookeeper know about the broker id because it seems that zookeeper is not detecting the broker.

Expert Contributor

Hi @Murad


Check in zookeeper cli the broker id under /<kafkaroot>/brokers/ids/


You need not do anything to let zookeeper knoe about the kafka brokers. The above should give the brokers connected to zookeeper (the ids has to be same as the ids in kafka configurations)

Expert Contributor

Hi @Neo


You are already producing messages! you can check the message in the .log file of your topic partitions.