# How to update Topic partitions from Confluent cloud

**URL:** <https://forum.confluent.io/t/how-to-update-topic-partitions-from-confluent-cloud/1560>\
**Category:** Confluent Cloud\
**Created:** [22 April 2021 06:21 UTC](https://forum.confluent.io/t/how-to-update-topic-partitions-from-confluent-cloud/1560 "2021-04-22T06:21:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mizeintegration](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mizeintegration](https://forum.confluent.io/u/mizeintegration)\
**Post date:** [22 April 2021 06:21 UTC](https://forum.confluent.io/t/how-to-update-topic-partitions-from-confluent-cloud/1560/1 "2021-04-22T06:21:09Z")

</div>

![Untitled](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/27855a35f163c2e4164f6be86c9eac928d1eb52b.png)

---

<div class="post-metadata">

**Author:** ![rmoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rmoff/32/3_2.png) [@rmoff](https://forum.confluent.io/u/rmoff)\
**Post date:** [22 April 2021 10:12 UTC](https://forum.confluent.io/t/how-to-update-topic-partitions-from-confluent-cloud/1560/2 "2021-04-22T10:12:31Z")

</div>

@mizeintegration Please can you clarify what your question is, or what the error or issue is that you’re encountering? thanks

---

<div class="post-metadata">

**Author:** ![mizeintegration](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mizeintegration](https://forum.confluent.io/u/mizeintegration)\
**Post date:** [22 April 2021 10:38 UTC](https://forum.confluent.io/t/how-to-update-topic-partitions-from-confluent-cloud/1560/3 "2021-04-22T10:38:05Z")

</div>

Thank you.  
Here my question is simple. I want to update the Topic partition from 2 to 6. How can I do this change from Cloud UI itself?

---

<div class="post-metadata">

**Author:** ![rick](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rick/32/49_2.png) [@rick](https://forum.confluent.io/u/rick)\
**Post date:** [23 April 2021 18:16 UTC](https://forum.confluent.io/t/how-to-update-topic-partitions-from-confluent-cloud/1560/4 "2021-04-23T18:16:23Z")

</div>

@mizeintegration As far as I know, you cannot increase the partition count in the Cloud UI. However, you can use the Apache Kafka `kafka-topics.sh` command to alter Confluent Cloud topics.

First you’ll want to create a command configuration file from the Cloud UI. Under the CLI and tools menu you can create a properties file with the proper security settings.

You’ll need an Apache Kafka distribution with access to the `kafka-topics.sh` command. The Kafka quickstart can help you get it installed: [Apache Kafka](https://kafka.apache.org/quickstart)

Once you have the config and properties file locally you can run the alter command like this:

```auto
kafka-topics.sh --bootstrap-server <your-bootstrap-url> --command-config <path-to-your-properties-file> --alter --topic <your-topic> --partitions <num-partitions-to-increase-to>

```

---

<div class="post-metadata">

**Author:** ![rmoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rmoff/32/3_2.png) [@rmoff](https://forum.confluent.io/u/rmoff)\
**Post date:** [26 April 2021 10:32 UTC](https://forum.confluent.io/t/how-to-update-topic-partitions-from-confluent-cloud/1560/5 "2021-04-26T10:32:49Z")

</div>

For what it’s worth, you can also use ksqlDB to do this

```sql
CREATE STREAM source WITH (KAFKA_TOPIC='source_topic', FORMAT='<format>');
CREATE STREAM more_partitions WITH (PARTITIONS=6) AS SELECT * FROM source;

```

It’s a similar concept to that illustrated here: [ksqlDB HOWTO: Reserialising data in Apache Kafka - YouTube](https://www.youtube.com/watch?v=sLAztA-rt74)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [3 May 2021 10:33 UTC](https://forum.confluent.io/t/how-to-update-topic-partitions-from-confluent-cloud/1560/6 "2021-05-03T10:33:12Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
