I'm guessing you're running a command such as:
CREATE TABLE FOO (<some column defs>)
WITH (
partitions=<some-value>, <-- explicitly setting partition count
kafka_topic='test-data',
value_format='<something>'
);
Specifically, are you explicitly setting the partition
count in the WITH
clause?
Neither the PARTITIONS
nor the REPLICAS
properties need to be set in the WITH
clause when creating a TABLE
or STREAM
over an existing topic. These only need to be set when you wish ksqlDB to create a new topic for your data. If they are set, they must match any existing topic.
These doc pages provide more information on this subject:
https://docs.ksqldb.io/en/latest/developer-guide/create-a-stream/
https://docs.ksqldb.io/en/latest/developer-guide/create-a-table/
If this explanation does not cover your error, then please provide more information. E.g. ksql version, statements used, details of existing topics in Kafka etc.