Replication factor: 1 larger than available brokers: 0

Replication factor: 1 larger than available brokers: 0

Hi,

I am trying to create kafka topic with following command:

bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

Its throwing following error:

deepak@deepak-VirtualBox:~/kafka_2.12-1.0.0$ bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
Error while executing topic command : Replication factor: 1 larger than available brokers: 0.
[2017-12-09 14:25:42,460] ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 1 larger than available brokers: 0.
 (kafka.admin.TopicCommand$)

How to solve this?

Thanks

View Answers

December 9, 2017 at 4:24 AM

Hi,

This error comes when Kafka is not stated.

Run it with following command:

bin/kafka-server-start.sh config/server.properties

Once this is started you should be able to create topics and use Kafka.

Thanks









Related Tutorials/Questions & Answers:
Replication factor: 1 larger than available brokers: 0
Replication factor: 1 larger than available brokers: 0  Hi, I am...: 1 larger than available brokers: 0. [2017-12-09 14:25:42,460] ERROR... larger than available brokers: 0. (kafka.admin.TopicCommand$) How to solve
Database replication
Database replication  Hi, What is Database replication? How I can replicate a database? Thanks   Hi, The Database replication.... Following ways database replications are done: a) Snapshot replication b) Merging
Advertisements
What is Replication and Database Mirroring?
What is Replication and Database Mirroring?  What is Replication and Database Mirroring
What is database replication?
What is database replication?  What is database replication?   Hi, Database replication is the creation and maintenance of multiple copies of the same database. In most implementations of database replication, one
ModuleNotFoundError: No module named 'mysql-replication'
ModuleNotFoundError: No module named 'mysql-replication'  Hi, My... named 'mysql-replication' How to remove the ModuleNotFoundError: No module named 'mysql-replication' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'psql-replication'
ModuleNotFoundError: No module named 'psql-replication'  Hi, My... named 'psql-replication' How to remove the ModuleNotFoundError: No module named 'psql-replication' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'replication-monitor'
ModuleNotFoundError: No module named 'replication-monitor'  Hi, My... named 'replication-monitor' How to remove the ModuleNotFoundError: No module named 'replication-monitor' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-data-replication'
ModuleNotFoundError: No module named 'django-data-replication'  Hi...: No module named 'django-data-replication' How to remove the ModuleNotFoundError: No module named 'django-data-replication' error? Thanks   
ModuleNotFoundError: No module named 'django-data-replication'
ModuleNotFoundError: No module named 'django-data-replication'  Hi...: No module named 'django-data-replication' How to remove the ModuleNotFoundError: No module named 'django-data-replication' error? Thanks   
Version of com.amazonaws>dynamodb-cross-region-replication dependency
List of Version of com.amazonaws>dynamodb-cross-region-replication dependency
Maven dependency for com.amazonaws - dynamodb-cross-region-replication version 1.2.0 is released. Learn to use dynamodb-cross-region-replication version 1.2.0 in Maven based Java projects
- dynamodb-cross-region-replication in your Maven/Gradle project. Step 1: Create...-cross-region-replication released The developers of   com.amazonaws - dynamodb-cross-region-replication project have released the latest version
Maven dependency for com.amazonaws - dynamodb-cross-region-replication version 1.1.0 is released. Learn to use dynamodb-cross-region-replication version 1.1.0 in Maven based Java projects
- dynamodb-cross-region-replication in your Maven/Gradle project. Step 1: Create...-cross-region-replication released The developers of   com.amazonaws - dynamodb-cross-region-replication project have released the latest version
Maven dependency for com.amazonaws - dynamodb-cross-region-replication version 1.2.1 is released. Learn to use dynamodb-cross-region-replication version 1.2.1 in Maven based Java projects
- dynamodb-cross-region-replication in your Maven/Gradle project. Step 1: Create...-cross-region-replication released The developers of   com.amazonaws - dynamodb-cross-region-replication project have released the latest version
Maven Dependency dynamodb-cross-region-replication >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> dynamodb-cross-region-replication version1.1.0 in your project
Maven Dependency dynamodb-cross-region-replication >> 1.2.0
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> dynamodb-cross-region-replication version1.2.0 in your project
Maven Dependency dynamodb-cross-region-replication >> 1.2.1
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> dynamodb-cross-region-replication version1.2.1 in your project
Maven Repository/Dependency: com.amazonaws | dynamodb-cross-region-replication
-cross-region-replication. Latest version of com.amazonaws:dynamodb-cross-region-replication dependencies. # Version Release Date 1 1.2.0 22 Apr 2017
Are containers faster than VMs
Are containers faster than VMs  Hi, I am trying to compare Containers with the VMs and looking for more information on this. On the performance side which is Good? Are containers faster than VMs? Thanks
Is DataCamp better than coursera?
Is DataCamp better than coursera?  Hi, I am beginner in Data Science...: Is DataCamp better than coursera? Try to provide me good examples or tutorials links so that I can learn the topic "Is DataCamp better than coursera?"
Is DataCamp better than codecademy?
Is DataCamp better than codecademy?  Hi, I am beginner in Data...: Is DataCamp better than codecademy? Try to provide me good examples or tutorials links so that I can learn the topic "Is DataCamp better than codecademy
Is R better than Python?
Is R better than Python?  Hi, I am beginner in Data Science... than Python? Try to provide me good examples or tutorials links so that I can learn the topic "Is R better than Python?". Also tell me which
Is R faster than Matlab?
Is R faster than Matlab?  Hi, I am beginner in Data Science... than Matlab? Try to provide me good examples or tutorials links so that I can learn the topic "Is R faster than Matlab?". Also tell me which
Is Google bigger than Microsoft?
Is Google bigger than Microsoft?  Hi, I am beginner in Data Science...: Is Google bigger than Microsoft? Try to provide me good examples or tutorials links so that I can learn the topic "Is Google bigger than Microsoft?"
Is Alexa smarter than Google?
Is Alexa smarter than Google?  Hi, I am beginner in Data Science... smarter than Google? Try to provide me good examples or tutorials links so that I can learn the topic "Is Alexa smarter than Google?". Also tell me
Is AI smarter than human?
Is AI smarter than human?  Hi, I am beginner in Data Science... than human? Try to provide me good examples or tutorials links so that I can learn the topic "Is AI smarter than human?". Also tell me which
Why is R better than SPSS?
Why is R better than SPSS?  Hi, I am beginner in Data Science... better than SPSS? Try to provide me good examples or tutorials links so that I can learn the topic "Why is R better than SPSS?". Also tell me which
Is data science better than MBA?
Is data science better than MBA?  Hi, I am beginner in Data Science...: Is data science better than MBA? Try to provide me good examples or tutorials links so that I can learn the topic "Is data science better than MBA?"
Is Python more powerful than C++?
Is Python more powerful than C++?  Hi, I am beginner in Data Science...: Is Python more powerful than C++? Try to provide me good examples or tutorials links so that I can learn the topic "Is Python more powerful than C++?"
What makes Spark faster than MapReduce?
What makes Spark faster than MapReduce?  Hi, What makes Spark faster than MapReduce? Thanks
More than one Faces Configuration file
More than one Faces Configuration file  Is it possible to have more than one Faces Configuration file
What makes Spark faster than MapReduce?
What makes Spark faster than MapReduce?  Hi, What makes Spark faster than MapReduce? Thanks
Hibernate Criteria Greater Than
Hibernate Criteria Greater Than The Hibernate Criteria Greater Than is used the fetch the value from the database which is Greater than the given value. gt... = criteria.list(); An Example of greater than is given below please consider
more than one struts-config.xml file
more than one struts-config.xml file  Can we have more than one struts-config.xml file for a single Struts application
Apply more than one xsl for single XML
Apply more than one xsl for single XML  How to apply more than one xsl for same xml file
How to Display Font Other than english
How to Display Font Other than english  How to display font other than english without using any files installed
Can a Class extend more than one Class?
Can a Class extend more than one Class?   Hi, Can a Class extend more than one Class? thanks
ModuleNotFoundError: No module named 'Better-Than-You-Found-It'
ModuleNotFoundError: No module named 'Better-Than-You-Found-It'  Hi...: No module named 'Better-Than-You-Found-It' How to remove the ModuleNotFoundError: No module named 'Better-Than-You-Found-It' error? Thanks  
ModuleNotFoundError: No module named 'faster-than-walk'
ModuleNotFoundError: No module named 'faster-than-walk'  Hi, My... named 'faster-than-walk' How to remove the ModuleNotFoundError: No module named 'faster-than-walk' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'faster-than-csv'
ModuleNotFoundError: No module named 'faster-than-csv'  Hi, My... named 'faster-than-csv' How to remove the ModuleNotFoundError: No module named 'faster-than-csv' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'faster-than-walk'
ModuleNotFoundError: No module named 'faster-than-walk'  Hi, My... named 'faster-than-walk' How to remove the ModuleNotFoundError: No module named 'faster-than-walk' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'Better-Than-You-Found-It'
ModuleNotFoundError: No module named 'Better-Than-You-Found-It'  Hi...: No module named 'Better-Than-You-Found-It' How to remove the ModuleNotFoundError: No module named 'Better-Than-You-Found-It' error? Thanks  
ModuleNotFoundError: No module named 'faster-than-requests'
ModuleNotFoundError: No module named 'faster-than-requests'  Hi...: No module named 'faster-than-requests' How to remove the ModuleNotFoundError: No module named 'faster-than-requests' error? Thanks   Hi
mysql port number other than 3306
mysql port number other than 3306  Hi, Can I change MySQL port number? What can be mysql port number other than 3306? Thanks
Is Data Science harder than software engineering?
Is Data Science harder than software engineering?  Hi, I am beginner... to learn: Is Data Science harder than software engineering? Try to provide me... Science harder than software engineering?". Also tell me which is the good
Is data science better than data analytics?
Is data science better than data analytics?  Hi, I am beginner... to learn: Is data science better than data analytics? Try to provide me good... better than data analytics?". Also tell me which is the good training courses
Is data science better than computer science?
Is data science better than computer science?  Hi, I am beginner... to learn: Is data science better than computer science? Try to provide me good... better than computer science?". Also tell me which is the good training
More than 1 preparedStatement object - Java Beginners
More than 1 preparedStatement object  Hey but I want to use more than... java... Thanks  Hi Friend, You can use more than one prepared... =?"); pst1.setString(1, "Delhi"); pst1.setString(2
What is the main advantage of using the hibernate than using the SQL
What is the main advantage of using the hibernate than using the SQL  Hi, What is the main advantage of using the hibernate than using the SQL. thanks
Why is processing a sorted array faster than an unsorted array?
Why is processing a sorted array faster than an unsorted array?  Why is processing a sorted array faster than an unsorted array
How to write more than 65536 rows in single excel file but more than 1 sheets?
How to write more than 65536 rows in single excel file but more than 1 sheets... but more than 1 sheets.. now i can write only less than 65536 rows.. but in my office db having more than 1 crore data.. pls help me... here is my code.. public class

Ads