You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by "Navneet Gupta (Tech - BLR)" <na...@flipkart.com> on 2015/04/07 15:44:32 UTC

Increasing replication factor of existing topics

Hi,

I got a method to increase replication factor of topics here
<https://kafka.apache.org/081/ops.html>

However,  I was wondering if it's possible to do it by altering some nodes
in zookeeper.

Thoughts/suggestions welcome.


-- 
Thanks & Regards,
Navneet Gupta

Re: Increasing replication factor of existing topics

Posted by Todd Palino <tp...@gmail.com>.
The partition reassignment is started by writing a zookeeper node in the
admin tree. While it's possible to kick off the partition reassignment by
writing the zookeeper node that controls it directly, you have to be very
careful about doing this, making sure that the format is perfect and you
perform all the same checks that the command line tool does. If you're
asking if you can just change the /brokers/topics/* znodes directly, the
answer is no.

-Todd

On Tue, Apr 7, 2015 at 6:44 AM, Navneet Gupta (Tech - BLR) <
navneet.gupta@flipkart.com> wrote:

> Hi,
>
> I got a method to increase replication factor of topics here
> <https://kafka.apache.org/081/ops.html>
>
> However,  I was wondering if it's possible to do it by altering some nodes
> in zookeeper.
>
> Thoughts/suggestions welcome.
>
>
> --
> Thanks & Regards,
> Navneet Gupta
>

Re: Increasing replication factor of existing topics

Posted by Harsha <ka...@harsha.io>.
Hi Navneet,
          Any reason that you are looking to modify the zk nodes directly to increase the topic partition. If you are looking for an api to do this there is AdminUtils.addPartitions . 

-- 
Harsha


On April 7, 2015 at 6:45:40 AM, Navneet Gupta (Tech - BLR) (navneet.gupta@flipkart.com) wrote:

Hi,  

I got a method to increase replication factor of topics here  
<https://kafka.apache.org/081/ops.html>  

However, I was wondering if it's possible to do it by altering some nodes  
in zookeeper.  

Thoughts/suggestions welcome.  


--  
Thanks & Regards,  
Navneet Gupta