Re: kafka-rest

775 views
Skip to first unread message

Ewen Cheslack-Postava

unread,
Apr 9, 2017, 3:50:17 PM4/9/17
to Confluent Platform
The cause of the exception you mentioned says what the problem is:

> Caused by: org.apache.kafka.common.config.ConfigException: No resolvable bootstrap urls given in bootstrap.servers

I see in your configuration you have

bootstrap.servers = PLAINTEXT://localhost:9092

But you can see that when the ProducerConfig is generated you end up with

> bootstrap.servers = []

It looks like in this case the bootstrap.servers are not being copied directly from the setting in your REST Proxy config for some reason -- this may actually be a regression due to changes made to support different security modes. If they are not being picked up from this setting, they would be loaded from Zookeeper. Can you verify you have a broker up and running properly -- if it is running, then it should be registered in ZK and that list should not be empty.

-Ewen


On Sat, Apr 8, 2017 at 7:10 AM, no1youknowz <no1yo...@gmail.com> wrote:
Starting server as per docs:  /usr/bin/kafka-rest-start /etc/kafka-rest/kafka-rest.properties

I'm getting: [2017-04-01 02:19:27,336] ERROR Server died unexpectedly:  (io.confluent.kafkarest.KafkaRestMain:59)
org.apache.kafka.common.KafkaException: Failed to construct kafka producer

Here is the full output:


I even see in the logs for the zookeeper:

[2017-04-01 02:20:41,871] INFO Accepted socket connection from /127.0.0.1:57416 (org.apache.zookeeper.server.NIOServerCnxnFactory)
[2017-04-01 02:20:41,871] INFO Client attempting to establish new session at /127.0.0.1:57416 (org.apache.zookeeper.server.ZooKeeperServer)
[2017-04-01 02:20:41,875] INFO Established session 0x15b282738f90002 with negotiated timeout 30000 for client /127.0.0.1:57416 (org.apache.zookeeper.server.ZooKeeperServer)
[2017-04-01 02:20:42,464] WARN caught end of stream exception (org.apache.zookeeper.server.NIOServerCnxn)
EndOfStreamException: Unable to read additional data from client sessionid 0x15b282738f90002, likely client has closed socket
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203)
at java.lang.Thread.run(Thread.java:745)
[2017-04-01 02:20:42,465] INFO Closed socket connection for client /127.0.0.1:57416 which had sessionid 0x15b282738f90002 (org.apache.zookeeper.server.NIOServerCnxn)

I'm running on CentOS 7.x and installed from 0.10.2.0.

Thanks

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/fb2b0986-7b52-4aa6-8e87-2fa3ff7066ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages