README.adoc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. == What you need? ==
  2. * Java 17 (or 21) SDK
  3. * Streams for Apache Kafka 2.7.0 (https://developers.redhat.com/products/streams-for-apache-kafka/download/)
  4. * Zookeeper and Broker Configuration (in this directory)
  5. * some sort of IDE
  6. == What to do with it? ==
  7. * Create a working directory for the demos.
  8. * Extract amq-streams.zip to that directory
  9. ** (rename `kafka_2.13-3.7.0.redhat-00007` to `kafka` for ease of use)
  10. * Place the config files into the same directory (next to `kafka`).
  11. After setup, your working directory should look like this:
  12. [subs="+quotes"]
  13. ----
  14. $ *ls -l*
  15. total 32
  16. -rw-r--r--@ 1 johndoe staff 926 10 Sep 14:31 broker0.properties
  17. -rw-r--r--@ 1 johndoe staff 926 10 Sep 14:31 broker1.properties
  18. -rw-r--r--@ 1 johndoe staff 926 10 Sep 14:31 broker2.properties
  19. drwxr-xr-x@ 9 johndoe staff 288 10 Sep 14:36 kafka/
  20. -rw-r--r--@ 1 johndoe staff 101 10 Sep 14:31 zookeeper.properties
  21. ----
  22. == How to start and stop the services? ==
  23. Start services (each in a separate window):
  24. * `./kafka/bin/zookeper-server-start.sh zookeeper.properties`
  25. * `./kafka/bin/kafka-server-start.sh broker0.properties`
  26. * `./kafka/bin/kafka-server-start.sh broker1.properties`
  27. * `./kafka/bin/kafka-server-start.sh broker2.properties`
  28. Stop the services in reverse order (broker2 first, etc.)
  29. == How to use the cluster? ==
  30. Use any of the following listeners as your bootstrap server:
  31. * `localhost:9092`
  32. * `localhost:9192`
  33. * `localhost:9292`
  34. You can also use all, or some, of them in a comma-separated list:
  35. `kafka.bootstrap.servers = localhost:9092,localhost:9192,localhost:9292`