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

Connect to Remote kafka cluster #22

Closed
dandamudi1414 opened this issue Sep 18, 2020 · 4 comments
Closed

Connect to Remote kafka cluster #22

dandamudi1414 opened this issue Sep 18, 2020 · 4 comments
Labels
bug Something isn't working question Further information is requested

Comments

@dandamudi1414
Copy link

Hi

Can I connect to a remote Kafka cluster ( not local) using this?

@dandamudi1414 dandamudi1414 added the bug Something isn't working label Sep 18, 2020
@devshawn devshawn added the question Further information is requested label Sep 18, 2020
@devshawn
Copy link
Owner

Hi @dandamudi1414, it can connect to any cluster as long as you have access to it (network-wise and authentication wise) through configuration.

Here is an example connecting to a Confluent Cloud cluster.

An example kafka properties file:

bootstrap.servers=pkc-xxx.us-east-1.aws.confluent.cloud:9092
ssl.endpoint.identification.algorithm=https
sasl.mechanism=PLAIN
request.timeout.ms=20000
retry.backoff.ms=500
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="xxx" password="xxx";
security.protocol=SASL_SSL

Example kafka-shell config (~/.kafka-shell/config.yaml):

version: 1
enable:
  history: true
  save_on_exit: false
  auto_complete: true
  auto_suggest: true
  inline_help: true
  fuzzy_search: true
cluster: remote
clusters:
  remote:
    bootstrap_servers: pkc-xxx.us-east-1.aws.confluent.cloud:9092
    consumer_settings:
      config: /Users/devshawn/remote.properties
    producer_settings:
      config: /Users/devshawn/remote.properties
    admin_client_settings:
      config: /Users/devshawn/remote.properties

@dandamudi1414
Copy link
Author

dandamudi1414 commented Sep 19, 2020

Thanks @devshawn for the reply i will check and get back to you .. !

** I am trying this in Windows 10 hope no issues

@devshawn
Copy link
Owner

Hi @dandamudi1414, this tool is built upon the actual Apache Kafka command-line tools. You must install those tools, such as kafka-topics, to use it. Check out the Kafka documentation on how to install those tools :)

@dandamudi1414
Copy link
Author

Sure Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants