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

Stack Overflow | windchime | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Error in setting up Oryx 2

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

    GitHub comment 17#195530179

    GitHub | 1 year ago | krishna81m
    kafka.admin.AdminOperationException: replication factor: 2 larger than available brokers: 1
  3. 0

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

    grokbase.com | 12 months ago
    kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Create topic Apache Kafka

    Stack Overflow | 11 months ago | lam nguyen
    kafka.admin.AdminOperationException: replication factor: 1 larger than available brokers: 0

  1. roioteromorales 1 times, last 12 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