ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: replication factor: 3 larger
2017-11-07 16:24
525 查看
Two solutions:
1. Mention zookeeper chroot directory while creating topic as follows (in my case chroot is /kafka)
kafka-topics --zookeeper <zookeeper-host>:2181/kafka --create --topic first --partitions 1 --replication-factor 1
2. change zookeeper chroot to / using CM
cluster>kafka>configuration: zookeeper.chroot
1. Mention zookeeper chroot directory while creating topic as follows (in my case chroot is /kafka)
kafka-topics --zookeeper <zookeeper-host>:2181/kafka --create --topic first --partitions 1 --replication-factor 1
2. change zookeeper chroot to / using CM
cluster>kafka>configuration: zookeeper.chroot
相关文章推荐
- Kafka java client 连接异常(org.apache.kafka.common.errors.TimeoutException: Failed to update metadata )
- Kafka巨坑:org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
- solr error logs org.apache.solr.common.SolrException: ERROR: [doc=17] unknown field alias
- org.apache.solr.common.SolrException: Error opening new searcher
- Kafka Creating Topic Error: replication factor larger than available brokers
- mybatis报org.apache.ibatis.reflection.ReflectionException: Error instantiating null with invalid type
- org.apache.solr.common.SolrException: ERROR: multiple values encountered for non multiValued copy
- org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL for /f
- MyBatis Error:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)(IDEA)
- 求解决 org.apache.solr.common.SolrException: Internal Server Error
- org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException:
- ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: All directories in dfs.data.dir are invalid
- org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool问题解决方案
- [ERROR:]tomcat org.apache.catalina.LifecycleException: Failed to start component ……
- org.apache.ibatis.reflection.ReflectionException: Error instantiating class
- Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/ma ven/cli/Maven
- hive中删除表的错误Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException
- Exception in thread "main" java.util.ServiceConfigurationError: org.apache.juli.logging.Log: Provid
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- 出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)的解决方法