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

test ok ! #8

Open
aimahou opened this issue Aug 14, 2017 · 0 comments
Open

test ok ! #8

aimahou opened this issue Aug 14, 2017 · 0 comments

Comments

@aimahou
Copy link

aimahou commented Aug 14, 2017

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

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