Several user-level KeeperExceptions when following the Confluent Platform 3.0.1 Quickstart

5,178 views
Skip to first unread message

Denis Kalinin

unread,
Oct 8, 2016, 12:01:43 PM10/8/16
to Confluent Platform
Hi!

I'm following the quickstart tutorial for Confluent Platform 3.0.1 (I'm on Ubuntu and use a standalone install from a zip file if that matters). It works fine, but every time Kafka connects to Zookeeper I see the following in Zookeeper's logs:

[2016-10-08 18:52:23,727] INFO Got user-level KeeperException when processing sessionid:0x157a4fe62af0000 type:delete cxid:0x32 zxid:0x82 txntype:-1 reqpath:n/a Error Path:/admin/preferred_replica_election Error:KeeperErrorCode = NoNode for /admin/preferred_replica_election (org.apache.zookeeper.server.PrepRequestProcessor)
[2016-10-08 18:52:23,843] INFO Got user-level KeeperException when processing sessionid:0x157a4fe62af0000 type:create cxid:0x39 zxid:0x83 txntype:-1 reqpath:n/a Error Path:/brokers Error:KeeperErrorCode = NodeExists for /brokers (org.apache.zookeeper.server.PrepRequestProcessor)
[2016-10-08 18:52:23,845] INFO Got user-level KeeperException when processing sessionid:0x157a4fe62af0000 type:create cxid:0x3a zxid:0x84 txntype:-1 reqpath:n/a Error Path:/brokers/ids Error:KeeperErrorCode = NodeExists for /brokers/ids (org.apache.zookeeper.server.PrepRequestProcessor) 

I haven't changed anything in the config files, and apparently, these errors don't prevent Kafka from receiving messages, so the rest of the tutorial works fine. 

But still, what could be the source of these errors?

I tried restarting everything and clearing zookeeper and kafka stuff from /tmp, but it doesn't help.

Gwen Shapira

unread,
Oct 8, 2016, 1:06:02 PM10/8/16
to confluent...@googlegroups.com
Those are not errors, you can see the log level is INFO. It is simply
logging that Kafka tried to create a node that already exists. Totally
normal behavior for Kafka and nothing to worry about.

Gwen
> --
> 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-platf...@googlegroups.com.
> To post to this group, send email to confluent...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/confluent-platform/7c7589ac-2627-4489-b650-0483bbcc0ca5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Gwen Shapira
Product Manager | Confluent
650.450.2760 | @gwenshap
Follow us: Twitter | blog

Denis Kalinin

unread,
Oct 9, 2016, 4:00:59 PM10/9/16
to Confluent Platform
Ahh, it's good to know these are not real errors.

On a related note, I think I found some discrepancy in the tutorial. For version 3.0.1, it says (about starting Zookeper and Kafka):

You will need write access to /var/lib for this step and the next

In reality, though, both Zookeper and Kafka are configured to put their stuff in /tmp, not /var/lib.

Thanks!

Gwen Shapira

unread,
Oct 9, 2016, 10:41:55 PM10/9/16
to confluent...@googlegroups.com
Thanks for the feedback. This really depends on which packaging you are using :)

Apache Kafka uses /tmp by default because we assume it will be used by
developers, testing environments and production. We want it to run
with no issues out of the box for everyone and /tmp fits the bill.

Confluent's distribution, which includes Apache Kafka, is configured
more toward production systems (especially the deb/rpm/docker
packaging). So we are using /var/lib and /var/log for storage.
Unfortunately, this caused some people to run into unexpected issues
with the quickstart, so we decided to call it out.

Apologies if you found it confusing. It is difficult (especially for
engineers) to make tutorials that work for everyone...

Gwen
> --
> 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-platf...@googlegroups.com.
> To post to this group, send email to confluent...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/confluent-platform/da6f614f-73ae-4164-a378-91b42570eb2a%40googlegroups.com.

Anum Zargar

unread,
Nov 8, 2016, 12:10:55 AM11/8/16
to Confluent Platform

Hi All need your help :-
how to fetch data from consumer

i have installed

kafka on one server

and php ,libradkafka and rdkafka on other server.


this is my code of php server

<?php
$rk = new RdKafka\Producer();
$rk->setLogLevel(LOG_DEBUG);
$rk->addBrokers("206.191.151.208");
// $rk->addBrokers("127.0.0.1");

$topic = $rk->newTopic("too");
$arr = array("name"=>"too","age"=>20);
$input = json_encode($arr,true);
$topic->produce(RD_KAFKA_PARTITION_UA, 0, $input);
//r ($i = 0; $i < 10; $i++) {
// $topic->produce(RD_KAFKA_PARTITION_UA, 0, "Mob $i");
//}
?>

how will fetch the output from server kafka using consumer

this is simple

just started
Reply all
Reply to author
Forward
0 new messages