You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can do that :
./kafka-topics.sh --create --zookeeper 10.254.49.234:2181 --replication-factor 1 --partitions 1 --topic tttt
./kafka-topics.sh --list --zookeeper 10.254.49.234:2181
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE
default kafka-broker-rjgbk 1/1 Running 0 22m 172.30.85.9 172.16.160.53
default kafka-zoo-3xkq1 1/1 Running 0 22m 172.30.85.5 172.16.160.53
NAMESPACE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kafka 10.254.87.223 9092/TCP 22m
default kafka-zoo-svc 10.254.49.234 2181/TCP,2888/TCP,3888/TCP 22m
cat config/server.properties
advertised.host.name=172.30.85.9
advertised.port=9092
port=9092
zoo.svc.port.2181.tcp=tcp://10.254.49.234:2181
zoo.svc.port.2888.tcp=tcp://10.254.49.234:2888
zoo.svc.port.3888.tcp=tcp://10.254.49.234:3888
you can do that :
./kafka-topics.sh --create --zookeeper 10.254.49.234:2181 --replication-factor 1 --partitions 1 --topic tttt
./kafka-topics.sh --list --zookeeper 10.254.49.234:2181
./kafka-console-producer.sh --broker-list 172.30.85.9:9092 --topic tttt
./kafka-console-consumer.sh --bootstrap-server 172.30.85.9:9092 --zookeeper 10.254.49.234:2181 --topic tttt --from-beginning
The text was updated successfully, but these errors were encountered: