From 88d590dd1e06cea91260f1b03f074cc37fa3fe5b Mon Sep 17 00:00:00 2001 From: Jinyoung Jang Date: Fri, 27 Sep 2019 13:27:26 +0900 Subject: [PATCH] Update README.md --- README.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index ce73325..5d75bb5 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,34 @@ ## 카프카 설치 1. 다운로드 -https://kafka.apache.org/downloads - -2. 주키퍼 실행 -bin/windows/zookeeper-server-start.bat config/zookeeper.properties - -3. 카프카 실행 -bin/windows/kafka-server-start.bat config/server.properties +https://kafka.apache.org/downloads ==> 최근 버전의 Scala 2.12 버전으로 다운로드 ## eventTopic 이라는 Topic 에 메세지 통신 -1. publish +1. 이벤트 발행하기 ---- window bin/windows/kafka-console-producer.bat --broker-list http://35.200.47.242:31090 --topic eventTopic ---- mac -/usr/local/bin/kafka-console-producer --broker-list http://35.200.47.242:31090 --topic eventTopic +bin/kafka-console-producer --broker-list http://35.200.47.242:31090 --topic eventTopic -2. consume +1. 이벤트 수신하기 ---- window -bin/window/kafka-console-consumer.bat --bootstrap-server http://35.200.47.242:31090 --topic eventTopic --from-beginning +bin/windows/kafka-console-consumer.bat --bootstrap-server http://35.200.47.242:31090 --topic eventTopic --from-beginning ---- mac -/usr/local/bin/kafka-console-consumer --bootstrap-server http://35.200.47.242:31090 --topic eventTopic --from-beginning +bin/kafka-console-consumer.sh --bootstrap-server http://35.200.47.242:31090 --topic eventTopic --from-beginning + + +## 카프카 서버의 실행 (필요한 경우만) +1. (새창)주키퍼 실행 +bin/windows/zookeeper-server-start.bat config/zookeeper.properties +1. (새창)카프카 실행 +bin/windows/kafka-server-start.bat config/server.properties + ## 이벤트 발송 시나리오