Error while executing topic command : Replication factor: 2 larger than available brokers: 0.

[[email protected] /mnt/software/maxwell-1.19.4]#kafka-topics.sh --zookeeper hdp1,hdp2,hdp3:2181 --create --topic maxwell --partitions 6 --replication-factor 2
Error while executing topic command : Replication factor: 2 larger than available brokers: 0.
[2019-01-18 04:18:09,809] ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 2 larger than available brokers: 0.
(kafka.admin.TopicCommand$)

创建kafka的topic显示,存活的brokers为0

原因:

     没有在kafka目录下创建zookeeper ,指定myid

解决:

   cd kafka_2.11-1.1.0

  mkdir zookeeper
  cd zookeeper
  touch myid
  echo 0 > myid
重新启动kafka就ok

原文地址:https://www.cnblogs.com/QuestionsZhang/p/10288880.html

时间: 2024-10-01 11:40:30

Error while executing topic command : Replication factor: 2 larger than available brokers: 0.的相关文章

【kafka】kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0

https://blog.csdn.net/bigtree_3721/article/details/78442912 I am trying to create topics in Kafka by following the guide on Apache Kafka website through command line. While running the command:bin/kafka-topics.sh --create --zookeeper localhost:2181 -

nagios   IO监控 Error executing iostat command

本来io监控是好好的,昨天因为要装postfix,就卸载以前sendmail,yum remove sendmail.今天来打开nagios一开,io的监控成灰色的了.报错如下:IOSTAT UNKNOWN - Error executing iostat command 郁闷了别的都好好的.于我就去该机器下面手动执行一下. cd /usr/local/nagios/libexec/ [[email protected] libexec]# ./check_iostat Can't exec "

SAP R3 安装出错 FJS-00012 Error when executing script.

安装环境:Windows server 2003 中文企业版32位. 数据库:Oracle 9i. Running the command "C:\oracle\ora92/bin/lsnrctl 'start' 'LISTENER'" finished with returncode 3. Output: ERROR 2030-01-16 19:06:56 CJS-00095  Return code 3 of executable C:\oracle\ora92/bin/lsnrc

mysql导入时出现"ERROR at line : Unknown command '\''."的解决办法

使用mysqldump -uroot -p123456 databases > /home/databases.sql 进行备份 在使用mysql -uroot -p123456 databases  < /home/databases.sql 进行mysql恢复的时候,出现如下报错. ERROR at line 79: Unknown command '\0'. 上述错误,是因为导出时字符集的问题,解决方法如下:--default-character-set=utf8 在导入时加上mysql

Error: Could not stat() command file &#39;/usr/local/nagios/var/rw/nagios.cmd&#39;!

Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! 解决方法: setenforce 0 Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!,码迷,mamicode.com Error: Could not stat() command file '/usr/local/nagios/var/rw/

【ERROR】bash: vim: command not found的解决办法

今天在学习鸟哥的菜的时候,发现自己linux不可以启用vim命令,错误为:bash: vim: command not found. 机器环境:VMWare8+RED HAT Enterprise5 解决方法: 发现问题的根源在于没有安装好vim 输入 rpm -qa|grep vim 命令, 如果 vim 已经正确安装,会返回下面的三行代码: 1 [[email protected] ~]# rpm -qa |grep vim 2 vim-minimal-7.0.109-6.el5 3 vim

ERROR: While executing gem ... (Encoding::UndefinedConversionError) U+7CFB to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437,当你执行gem 命令时,提示如上信息解决方案如下。

when you  use  gem install package ,the result:ERROR: While executing gem ... (Encoding::UndefinedConversionError) U+7CFB to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437 解决方法: 去本地路径下修改编码,这么提示是因为编码不一致导致的. 修改registry 文件中的编码: 修改后就没有问题了.

cocoapods 安装报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

cocoapods 安装报错 ERROR:  While executing gem ... (Errno::EPERM)     Operation not permitted - /usr/bin/xcodeproj 执行下面语句安装即可: sudo gem install -n /usr/local/bin cocoapods

ERROR 1142 (42000): SELECT command denied to user &#39;&#39;@&#39;localhost&#39; for table &#39;user&#39;

ERROR: Access denied for user 'root'@'localhost' (using password: NO)    发现:    mysql -u [email protected] -p 成功    mysql -u root -p 失败    mysql> SELECT user, host FROM mysql.user;    ERROR 1142 (42000): SELECT command denied to user ''@'localhost' f