Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap-servers argument ignored #27

Closed
gquintana opened this issue May 11, 2021 · 1 comment
Closed

bootstrap-servers argument ignored #27

gquintana opened this issue May 11, 2021 · 1 comment

Comments

@gquintana
Copy link
Contributor

gquintana commented May 11, 2021

No matter how I set bootstrap-servers, the settings is ignored:

--bootstrap-servers myhost.mycompany.fr:9094
--bootstrap-servers=myhost.mycompany.fr:9094

The admin client tries to connect to localhost:

Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
2021-05-11 16:07:56,698 INFO  [main] org.apache.kafka.clients.admin.AdminClientConfig - AdminClientConfig values:
        bootstrap.servers = [localhost:9092]

The README.md (line 57) says (singular):

--bootstrap-server localhost:9092

The CLI help says (plural and equal sign):

--bootstrap-servers=<bootstrapServer>
                  A list of host/port pairs to use for establishing the initial

The trick was that --bootstrap-servers argument is ignored when placed before topics create command.

@gquintana
Copy link
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant