Home | About | Sematext search-lucene.com search-hadoop.com search-devops.com
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Kafka >> mail # user >> How to create the initial zookeeper chroot path for zk.connect?


+
Ryan Chan 2013-04-17, 16:30
+
Neha Narkhede 2013-04-17, 17:30
+
Ryan Chan 2013-04-18, 03:03
+
Neha Narkhede 2013-04-18, 21:32
Copy link to this message
-
Re: How to create the initial zookeeper chroot path for zk.connect?
Yes, using the latest Kafka 0.7.2, just tried to reproduce again

1. Install a single node Kafka, three nodes zookeeper instances

    kafka1
    zookeeper1
    zookeeper2
    zookeeper3

2. Using a simple Kafka config, able to start without error in the log

    brokerid=1
    log.dir=/data/kafka
    zk.connect=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181

3. Now, create a path in zookeeper1

    zkCli.sh -server zookeeper1:2181

        ls /
        [consumers, brokers, zookeeper]
        create /testkafka ''
        ls /
        [testkafka, consumers, brokers, zookeeper]

Quit & Done.

4. Verify from zookeeper2

    zkCli.sh -server zookeeper2:2181
        ls /
        [testkafka, consumers, brokers, zookeeper]

Seems ok

4. Update kafka config and restart
zk.connect=zookeeper1:2181/testkafka,zookeeper2:2181/testkafka,zookeeper3:2181/testkafka

Restart and have the error

[2013-04-19 05:35:14,846] FATAL Fatal error during KafkaServerStable
startup. Prepare to shutdown (kafka.server.KafkaServerStartable)
java.lang.IllegalArgumentException: Path length must be > 0
at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:48)
at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:35)
..
Any idea?
On Fri, Apr 19, 2013 at 5:32 AM, Neha Narkhede <[EMAIL PROTECTED]>wrote:
 
+
Jonathan Creasy 2013-04-19, 05:51
+
Neha Narkhede 2013-04-19, 16:08
+
Ryan Chan 2013-04-20, 03:55
+
Neha Narkhede 2013-04-20, 05:03
+
Ryan Chan 2013-04-20, 09:24
+
Neha Narkhede 2013-04-20, 16:03
+
Scott Clasen 2013-04-20, 18:30
+
Ryan Chan 2013-04-21, 08:34
+
Scott Clasen 2013-04-21, 15:11
+
Ryan Chan 2013-04-22, 13:46
+
Jason Rosenberg 2013-05-08, 23:31
+
Jason Rosenberg 2013-05-08, 23:38
+
Jun Rao 2013-05-09, 04:28
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB