아틴
Atin
아틴
전체 방문자
오늘
어제
  • 분류 전체보기 (460)
    • Devlopment (246)
      • 정리 글 (20)
      • MicroServices (0)
      • Reactive, Concurrenc.. (12)
      • Java (44)
      • Spring (20)
      • C,C++,Ruby,Python (52)
      • Mobile (39)
      • Web (35)
      • Tip & Info (14)
      • Unit Test (7)
    • Infra (44)
      • OS (21)
      • RDBMS (13)
      • NoSQL&Cache (5)
      • AWS (4)
    • Computer Science (11)
    • Etc (156)

블로그 메뉴

  • Home
  • Guestbook

공지사항

인기 글

태그

  • Dungeons & Dragons
  • 아이폰
  • C
  • Ruby on Rails
  • 정읍
  • 여행
  • mysql
  • Linux
  • jsp
  • 전라도
  • javascript
  • 안드로이드
  • Android
  • CSS
  • 해킨토시
  • Java
  • 자바
  • TRPG
  • Python
  • 던젼 앤 드래곤즈

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
아틴

Atin

Infra/NoSQL&Cache

[KAFKA] 콘솔 명령어 모음

2018. 10. 15. 20:31
반응형

로컬에서 카프카 사용시 자주 쓰는 콘솔 명령어 모음


서버 시작

./bin/zookeeper-server-start.sh -daemon config/zookeeper.properties ./bin/kafka-server-start.sh -daemon config/server.properties



토픽 조회

./bin/kafka-topics.sh --list --zookeeper localhost:2181



Producer

./bin/kafka-console-producer.sh --broker-list localhost:9092 --topic topicname



Consumer

./bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic topicname --from-beginning



Topic 생성

./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic topicname



kafka-console-consumer.sh 상세

https://gerardnico.com/dit/kafka/kafka-console-consumer



kafka-consumer-offset-reste 상세

https://www.letmecompile.com/kafka-consumer-offset-reset/



카프카 오프셋 리셋하고 다시 받기

kafka-consumer-groups.sh --bootstrap-server kafka-domain:port --group kafkalocaltestatin --topic topicname --reset-offsets --to-datetime 2018-12-12T00:00:00.000 --execute kafka-console-consumer.sh --bootstrap-server kafka-domain:port --topic topicname --consumer-property group.id=kafkalocaltestatin


반응형
저작자표시 비영리 변경금지 (새창열림)

'Infra > NoSQL&Cache' 카테고리의 다른 글

Redis 설치 및 커맨드 정리  (0) 2018.08.12
MongoDB 명령어  (0) 2014.03.09
JBoss - Infini Span  (0) 2013.11.20
분산 캐시 Memcached  (0) 2013.11.19
    'Infra/NoSQL&Cache' 카테고리의 다른 글
    • Redis 설치 및 커맨드 정리
    • MongoDB 명령어
    • JBoss - Infini Span
    • 분산 캐시 Memcached
    아틴
    아틴

    티스토리툴바