command line interface - Kafka CLI in DC/OS Mesosphere -
i have started playing around dc/os mesosphere. installed kafka service on cluster. had simple question:
to list topics, can still use command: kafka-topics --zookeeper zookeeper-host:2181 --list or have use dcos command: dcos kafka --name=kafka topic list
thanks!
you'd able run kafka-topics directly if like, you'd want provide zookeeper path matches name of kafka service instance (default kafka).
you can path running dcos kafka --name=kafka connection , looking @ zookeeper entry in returned data:
$ dcos kafka --name=kafka connection { "address": [ "10.0.0.58:9603", "10.0.0.56:9805", "10.0.0.55:9556" ], "zookeeper": "master.mesos:2181/dcos-service-kafka", "dns": [ "broker-0.kafka.mesos:9603", "broker-1.kafka.mesos:9805", "broker-2.kafka.mesos:9556" ], "vip": "broker.kafka.l4lb.thisdcos.directory:9092" } in example --zookeeper value passed kafka-topics should master.mesos:2181/dcos-service-kafka. assumes master.mesos host reachable wherever you're running kafka-topics command.
Comments
Post a Comment