kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:117)

Stack Overflow | windchime | 4 months ago
  1. 0

    Error in setting up Oryx 2

    Stack Overflow | 4 months ago | windchime
    kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:117)
  2. 0

    Error creating Kafka Topics- Replication factor larger than available brokers

    Stack Overflow | 1 year ago | CodeGeek-ND
    kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0
  3. 0

    GitHub comment 17#195530179

    GitHub | 9 months ago | krishna81m
    kafka.admin.AdminOperationException: replication factor: 2 larger than available brokers: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [Kafka-users] replication factor: 1 larger than available brokers: 0 issue - Grokbase

    grokbase.com | 8 months ago
    kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0
  6. 0

    *STR* # Deploy ambari # Add Kafka via Add Services *AR*. Kafka Service check fails {code} 2015-03-10 15:31:24,760 - Error while executing command 'service_check': Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1.2.2/package/scripts/service_check.py", line 42, in service_check call_and_match_output(command, format("({create_topic_cmd_created_output})|({create_topic_cmd_exists_output})"), "Failed to check that topic exists") File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/decorator.py", line 54, in wrapper return function(*args, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/validate.py", line 36, in call_and_match_output raise Fail(err_message) Fail: Failed to check that topic exists stdout: /var/lib/ambari-agent/data/output-178.txt 2015-03-10 15:30:51,384 - Running kafka create topic command: source /etc/kafka/conf/kafka-env.sh ; /usr/hdp/current/kafka-broker//bin/kafka-topics.sh --zookeeper c6401.ambari.apache.org:2181,c6402.ambari.apache.org:2181 --create --topic ambari_kafka_service_check --partitions 1 --replication-factor 1 Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:30:53,052 - Will retry 9 time(s), caught exception: Failed to check that topic exists. Sleeping for 2 sec(s) Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:30:56,581 - Will retry 8 time(s), caught exception: Failed to check that topic exists. Sleeping for 2 sec(s) Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:31:00,120 - Will retry 7 time(s), caught exception: Failed to check that topic exists. Sleeping for 2 sec(s) Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:31:03,504 - Will retry 6 time(s), caught exception: Failed to check that topic exists. Sleeping for 2 sec(s) Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:31:06,948 - Will retry 5 time(s), caught exception: Failed to check that topic exists. Sleeping for 2 sec(s) Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:31:10,383 - Will retry 4 time(s), caught exception: Failed to check that topic exists. Sleeping for 2 sec(s) Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:31:13,883 - Will retry 3 time(s), caught exception: Failed to check that topic exists. Sleeping for 2 sec(s) Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:31:17,361 - Will retry 2 time(s), caught exception: Failed to check that topic exists. Sleeping for 2 sec(s) Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:31:21,362 - Will retry 1 time(s), caught exception: Failed to check that topic exists. Sleeping for 2 sec(s) Error while executing topic command replication factor: 1 larger than available brokers: 0 kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70) at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:155) at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:86) at kafka.admin.TopicCommand$.main(TopicCommand.scala:50) at kafka.admin.TopicCommand.main(TopicCommand.scala) 2015-03-10 15:31:24,760 - Error while executing command 'service_check': Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1.2.2/package/scripts/service_check.py", line 42, in service_check call_and_match_output(command, format("({create_topic_cmd_created_output})|({create_topic_cmd_exists_output})"), "Failed to check that topic exists") File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/decorator.py", line 54, in wrapper return function(*args, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/validate.py", line 36, in call_and_match_output raise Fail(err_message) Fail: Failed to check that topic exists {code}

    Apache's JIRA Issue Tracker | 2 years ago | Siddharth Wagle
    kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0

  1. roioteromorales 1 times, last 8 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. kafka.admin.AdminOperationException

    replication factor: 1 larger than available brokers: 0 at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:117)

    at kafka.admin.AdminUtils$.createTopic()
  2. Apache Kafka
    TopicCommand.main
    1. kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:403)
    2. kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:110)
    3. kafka.admin.TopicCommand$.main(TopicCommand.scala:61)
    4. kafka.admin.TopicCommand.main(TopicCommand.scala)
    4 frames