Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 874A217FB6 for ; Wed, 1 Oct 2014 00:14:34 +0000 (UTC) Received: (qmail 70191 invoked by uid 500); 1 Oct 2014 00:14:34 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 70139 invoked by uid 500); 1 Oct 2014 00:14:34 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 70127 invoked by uid 99); 1 Oct 2014 00:14:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2014 00:14:34 +0000 Date: Wed, 1 Oct 2014 00:14:34 +0000 (UTC) From: "Joe Stein (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KAFKA-1658) Overriding #of partitions per topic, does not take effect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joe Stein resolved KAFKA-1658. ------------------------------ Resolution: Won't Fix Hi, please take a look at https://kafka.apache.org/documentation.html#basic_ops_add_topic for adding and modifying topics. To change the replication factor https://kafka.apache.org/documentation.html#basic_ops_increase_replication_factor > Overriding #of partitions per topic, does not take effect > --------------------------------------------------------- > > Key: KAFKA-1658 > URL: https://issues.apache.org/jira/browse/KAFKA-1658 > Project: Kafka > Issue Type: Bug > Affects Versions: 0.8.1.1 > Environment: Ubuntu > Reporter: aarti gupta > > Tried to change the # of partitions per topic, (for a non existent topic), by adding the following settings to the producer > properties.put("num.partitions","3"); > properties.put("topic.partition.count.map", "3"); > ProducerConfig producerConfig = new ProducerConfig(properties); > producer = new Producer(producerConfig); > Also set properties.put("auto.create.topics.enable", "false"); (tried without that first) > The default # of partitions as specified in the server.properties (i.e. 1) still come into effect. > I also wanted to change the replication factor, (for a non existent topic), > properties.put("default.replication.factor", "3"); on the producer config did not work > Is this expected behavior? The documentation suggests that we use the command line tool, but I want to control this dynamically. Any suggestions? -- This message was sent by Atlassian JIRA (v6.3.4#6332)