kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [kafka] branch trunk updated: MINOR: Additional detail in description for zookeeper.connect (#5358)
Date Thu, 12 Jul 2018 18:44:20 GMT
This is an automated email from the ASF dual-hosted git repository.

jgus pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new b687660  MINOR: Additional detail in description for zookeeper.connect (#5358)
b687660 is described below

commit b68766017f11afd7e541fa84378d5e616cf1e81a
Author: Mickael Maison <mimaison@users.noreply.github.com>
AuthorDate: Thu Jul 12 20:44:12 2018 +0200

    MINOR: Additional detail in description for zookeeper.connect (#5358)
    
    This setting allows specifying a chroot so we documented it.
    
    Co-authored-by: Mickael Maison <mickael.maison@gmail.com>
    Co-authored-by: Katherine Farmer <kfarme3@uk.ibm.com>
    
    Reviewers: Manikumar Reddy O <manikumar.reddy@gmail.com>, Jason Gustafson <jason@confluent.io>
---
 core/src/main/scala/kafka/server/KafkaConfig.scala | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/core/src/main/scala/kafka/server/KafkaConfig.scala b/core/src/main/scala/kafka/server/KafkaConfig.scala
index aeccc34..7f9ccf6 100755
--- a/core/src/main/scala/kafka/server/KafkaConfig.scala
+++ b/core/src/main/scala/kafka/server/KafkaConfig.scala
@@ -463,7 +463,11 @@ object KafkaConfig {
 
   /* Documentation */
   /** ********* Zookeeper Configuration ***********/
-  val ZkConnectDoc = "Zookeeper host string"
+  val ZkConnectDoc = "Specifies the ZooKeeper connection string in the form <code>hostname:port</code>
where host and port are the " +
+  "host and port of a ZooKeeper server. To allow connecting through other ZooKeeper nodes
when that ZooKeeper machine is " +
+  "down you can also specify multiple hosts in the form <code>hostname1:port1,hostname2:port2,hostname3:port3</code>.\n"
+
+  "The server can also have a ZooKeeper chroot path as part of its ZooKeeper connection string
which puts its data under some path in the global ZooKeeper namespace. " +
+  "For example to give a chroot path of <code>/chroot/path</code> you would give
the connection string as <code>hostname1:port1,hostname2:port2,hostname3:port3/chroot/path</code>."
   val ZkSessionTimeoutMsDoc = "Zookeeper session timeout"
   val ZkConnectionTimeoutMsDoc = "The max time that the client waits to establish a connection
to zookeeper. If not set, the value in " + ZkSessionTimeoutMsProp + " is used"
   val ZkSyncTimeMsDoc = "How far a ZK follower can be behind a ZK leader"


Mime
View raw message