confluentinc / cp-all-in-one

docker-compose.yml files for cp-all-in-one , cp-all-in-one-community, cp-all-in-one-cloud, Apache Kafka Confluent Platform
958 stars 684 forks source link

replicationFactor error while adding a new topic #71

Open wilk opened 3 years ago

wilk commented 3 years ago

Description I downloaded and launched the cp-all-in-one docker-compose file and followed the guide to start using Confluent locally by creating a new topic However, I got the following error on the web page:

Screenshot 2021-05-25 at 16 19 58

And this is the log coming from docker-compose:

broker | [2021-05-25 14:19:45,748] INFO [Admin Manager on Broker 1]: Error processing create topic request CreatableTopic(name='pageviews', numPartitions=1, replicationFactor=3, assignments=[], configs=[CreateableTopicConfig(name='compression.type', value='producer'), CreateableTopicConfig(name='confluent.value.schema.validation', value='false'), CreateableTopicConfig(name='leader.replication.throttled.replicas', value=''), CreateableTopicConfig(name='confluent.key.subject.name.strategy', value='io.confluent.kafka.serializers.subject.TopicNameStrategy'), CreateableTopicConfig(name='message.downconversion.enable', value='true'), CreateableTopicConfig(name='min.insync.replicas', value='2'), CreateableTopicConfig(name='segment.jitter.ms', value='0'), CreateableTopicConfig(name='cleanup.policy', value='delete'), CreateableTopicConfig(name='flush.ms', value='9223372036854775807'), CreateableTopicConfig(name='confluent.tier.local.hotset.ms', value='86400000'), CreateableTopicConfig(name='follower.replication.throttled.replicas', value=''), CreateableTopicConfig(name='confluent.tier.local.hotset.bytes', value='-1'), CreateableTopicConfig(name='confluent.value.subject.name.strategy', value='io.confluent.kafka.serializers.subject.TopicNameStrategy'), CreateableTopicConfig(name='segment.bytes', value='1073741824'), CreateableTopicConfig(name='retention.ms', value='604800000'), CreateableTopicConfig(name='flush.messages', value='9223372036854775807'), CreateableTopicConfig(name='confluent.tier.enable', value='false'), CreateableTopicConfig(name='confluent.tier.segment.hotset.roll.min.bytes', value='104857600'), CreateableTopicConfig(name='message.format.version', value='2.7-IV2'), CreateableTopicConfig(name='confluent.segment.speculative.prefetch.enable', value='false'), CreateableTopicConfig(name='file.delete.delay.ms', value='60000'), CreateableTopicConfig(name='max.compaction.lag.ms', value='9223372036854775807'), CreateableTopicConfig(name='max.message.bytes', value='1048588'), CreateableTopicConfig(name='min.compaction.lag.ms', value='0'), CreateableTopicConfig(name='message.timestamp.type', value='CreateTime'), CreateableTopicConfig(name='preallocate', value='false'), CreateableTopicConfig(name='min.cleanable.dirty.ratio', value='0.5'), CreateableTopicConfig(name='index.interval.bytes', value='4096'), CreateableTopicConfig(name='unclean.leader.election.enable', value='false'), CreateableTopicConfig(name='retention.bytes', value='-1'), CreateableTopicConfig(name='delete.retention.ms', value='86400000'), CreateableTopicConfig(name='confluent.prefer.tier.fetch.ms', value='-1'), CreateableTopicConfig(name='segment.ms', value='604800000'), CreateableTopicConfig(name='confluent.key.schema.validation', value='false'), CreateableTopicConfig(name='message.timestamp.difference.max.ms', value='9223372036854775807'), CreateableTopicConfig(name='segment.index.bytes', value='10485760')], linkName=null, mirrorTopic=null) (kafka.server.AdminManager)

What can I do?

Troubleshooting N/A

Environment

OneCricketeer commented 3 years ago

As your image shows, on the right-side you have replication factor = 3.

You need to customize more settings than only the partition count and topic name (click the button)