Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. bin/zookeeper-server-start.sh config/zookeeper.properties
  2. bin/kafka-server-start.sh config/server.properties
  3.  
  4. bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic DBinfotopic
  5. bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic purchasestopic
  6. bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic salestopic
  7.  
  8. bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic revenuetopic
  9. bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic expensestopic
  10. bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic profittopic
  11. bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic total-topic
  12.  
  13. DATA BASE:
  14. bin/connect-standalone.sh config/connect-standalone.properties config/connect-jdbc-source-kafka.properties config/connect-jdbc-sink-kafka.properties
  15.  
  16. CONSUMER:
  17. bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic revenuetopic --from-beginning
  18. bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic expensestopic --from-beginning
  19. bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic profittopic --from-beginning
  20.  
  21. SEE TOPICS:
  22. bin/kafka-topics.sh --list --bootstrap-server localhost:9092
  23.  
  24. DELETE:
  25. bin/kafka-topics.sh --zookeeper localhost:9092 --delete --topic test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement