Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 91E4C200D3E for ; Thu, 16 Nov 2017 12:38:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 90659160BE5; Thu, 16 Nov 2017 11:38:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D4873160BE6 for ; Thu, 16 Nov 2017 12:38:06 +0100 (CET) Received: (qmail 22995 invoked by uid 500); 16 Nov 2017 11:38:05 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 22971 invoked by uid 99); 16 Nov 2017 11:38:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2017 11:38:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4E3CD1A03A4 for ; Thu, 16 Nov 2017 11:38:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 5heM9O_Gl0oh for ; Thu, 16 Nov 2017 11:38:02 +0000 (UTC) Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0E13A5FBEA for ; Thu, 16 Nov 2017 11:38:02 +0000 (UTC) Received: by mail-qt0-f175.google.com with SMTP id r39so25461472qtr.13 for ; Thu, 16 Nov 2017 03:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=SX/dXlLN7CtbrJxM+/o1t4A+OEEuW0Y7oeOSQ5Mlpkk=; b=aoeFRuXsALlNbmoiLF/RwwalqR18s7BuEZoFXqon5ig9p+rGMUJNZH1QgRrPg8M3Mp fqc/Aa8y8QHGu35pRpO/RCBNs50S2EfX6N3qUwJ/Tt0HAzTDPP2tg9Vq7HnQyOOplI+4 f0CiwBbY1ATff83pwBbYhynrE6TpZ6nBNEvO48RvHQew854ulaC2839kd6Y+MhAj0q2H 0/z32FkqmGJylmFbGoMsYwYUPOrUPxn+rtNBw9cFnAEtjIwHE/cFv22PTyocdR7SfO8E bI2+744QhAZAv2/l+mPJ7eXm2H0WMr1nmPQrmK0QwgSjlMVzF0LIQmx+qKrlHhnK3owc i5kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=SX/dXlLN7CtbrJxM+/o1t4A+OEEuW0Y7oeOSQ5Mlpkk=; b=CUifZTAJObhFwTNEzm3lE1dE20Gb1zZF7yhP2Rc9Y4A0Cba9ei4dR9VMie58Exjqe+ naaTOyIFeZIlyu+hyMLaZ0cNned8IfB8TgmndFxklqhAqg7tkUvpgDamwJpa6dvwn0ap wfuPV2K52QYZZ2bUMNqFJ9yicziIme5J3gKs/8P0mH1Eb6eVD8gAkwo0EW5/Z417lJqt mvIkmvONJRWmeMe7dLSRUwpbCaOSiICCDzk9GmL072b5VBApBpbFfCXUoBMGU6GEyLBz bGeffYVUubibU9JorzwXk8Bk1+h4BQx1K5CsTrxIwI7Mym3uVgVh4vyJd9T5hV7L+GrA aLRA== X-Gm-Message-State: AJaThX66Ncg/oNiEun+uAPtDbLXOGQUwuiG7Bv9qmstU1Dv/sjWwMITz j65vKGKmQ9rrflILL24Hzt16yBKzblPPj7V1ugzHCQ== X-Google-Smtp-Source: AGs4zMZzPcwaqPzV/B0A8WV0cpKF2i05MxMQgHtkcnt0qbuP3aUcD+BZJ+bsBzN6IBr3mf1PzCUaZ/YxohFdIA1Yhjc= X-Received: by 10.233.239.70 with SMTP id d67mr1862989qkg.308.1510832281484; Thu, 16 Nov 2017 03:38:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.99.23 with HTTP; Thu, 16 Nov 2017 03:38:00 -0800 (PST) From: Abhimanyu Nagrath Date: Thu, 16 Nov 2017 17:08:00 +0530 Message-ID: Subject: kafka.admin.TopicCommand Failing To: users@kafka.apache.org, user@zookeeper.apache.org Content-Type: multipart/alternative; boundary="94eb2c03e5867403ab055e180d70" archived-at: Thu, 16 Nov 2017 11:38:07 -0000 --94eb2c03e5867403ab055e180d70 Content-Type: text/plain; charset="UTF-8" Hi, I am using a single node Kafka V 0.10.2 (16 GB RAM, 8 cores) and a single node zookeeper V 3.4.9 (4 GB RAM, 1 core ). I am having 64 consumer groups and 500 topics each having 250 partitions. I am able to execute the commands which require only Kafka broker and its running fine ex. > ./kafka-consumer-groups.sh --bootstrap-server localhost:9092 > --describe --group But when I execute the admin command like create topic, alter topic For example > ./kafka-topics.sh --create --zookeeper :2181 > --replication-factor 1 --partitions 1 --topic Following exception is being displayed: > Error while executing topic command : replication factor: 1 larger > than available brokers: 0 [2017-11-16 11:22:13,592] ERROR > org.apache.kafka.common.errors.InvalidReplicationFactorException: > replication factor: 1 larger than available brokers: 0 > (kafka.admin.TopicCommand$) I checked my broker is up. In server.log following warnings are there [2017-11-16 11:14:26,959] WARN Client session timed out, have not heard from server in 15843ms for sessionid 0x15aa7f586e1c061 (org.apache.zookeeper.ClientCnxn) [2017-11-16 11:14:28,795] WARN Unable to reconnect to ZooKeeper service, session 0x15aa7f586e1c061 has expired (org.apache.zookeeper.ClientCnxn) [2017-11-16 11:21:46,055] WARN Unable to reconnect to ZooKeeper service, session 0x15aa7f586e1c067 has expired (org.apache.zookeeper.ClientCnxn) Below mentioned is my Kafka server configuration : broker.id=1 delete.topic.enable=true num.network.threads=3 num.io.threads=8 socket.send.buffer.bytes=102400 socket.receive.buffer.bytes=102400 socket.request.max.bytes=104857600 log.dirs=/kafka/data/logs num.partitions=1 log.segment.bytes=1073741824 log.retention.check.interval.ms=300000 zookeeper.connect=:2181 zookeeper.connection.timeout.ms=6000 Zookeeper Configuration is : # The number of milliseconds of each tick tickTime=2000 # The number of ticks that the initial # synchronization phase can take initLimit=10 # The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=5 # the directory where the snapshot is stored. # do not use /tmp for storage, /tmp here is just # example sakes. dataDir=/zookeeper/data # the port at which the clients will connect clientPort=2181 # the maximum number of client connections. # increase this if you need to handle more clients #maxClientCnxns=60 autopurge.snapRetainCount=20 # Purge task interval in hours # Set to "0" to disable auto purge feature autopurge.purgeInterval=48 I am not able to figure out which configuration to tune. What I am missing .Any help will be appreciated. Regards, Abhimanyu --94eb2c03e5867403ab055e180d70--