{"id":21906283,"url":"https://github.com/alfex4936/kafka-studies","last_synced_at":"2025-09-13T00:40:25.922Z","repository":{"id":47228230,"uuid":"316690350","full_name":"Alfex4936/kafka-Studies","owner":"Alfex4936","description":"Apache Kafka 공부 (learning objectives)","archived":false,"fork":false,"pushed_at":"2021-09-08T14:20:36.000Z","size":6460,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T23:56:36.387Z","etag":null,"topics":["apache","avro","cloudkarafka","java","kafka","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alfex4936.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-28T08:34:13.000Z","updated_at":"2022-12-27T09:57:57.000Z","dependencies_parsed_at":"2022-08-31T12:52:28.519Z","dependency_job_id":null,"html_url":"https://github.com/Alfex4936/kafka-Studies","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Alfex4936/kafka-Studies","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfex4936%2Fkafka-Studies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfex4936%2Fkafka-Studies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfex4936%2Fkafka-Studies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfex4936%2Fkafka-Studies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alfex4936","download_url":"https://codeload.github.com/Alfex4936/kafka-Studies/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alfex4936%2Fkafka-Studies/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274902462,"owners_count":25371077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache","avro","cloudkarafka","java","kafka","python"],"created_at":"2024-11-28T16:43:33.059Z","updated_at":"2025-09-13T00:40:25.894Z","avatar_url":"https://github.com/Alfex4936.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cp\u003e\n    \u003cimg width=\"480\" src=\"https://www.andplus.com/hs-fs/hubfs/kafkalogo.jpg?\u0026name=kafkalogo.jpg\"\u003e\n\u003c/p\u003e\n\u003ch1\u003eApache Kafka 공부 (Java, Python, Go)\u003c/h1\u003e\n    \u003ch5\u003ev2.13-2.6.0\u003c/h5\u003e\n    \n\u003ca href=\"https://hits.seeyoufarm.com\"\u003e\u003cimg src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FAlfex4936%2Fkafka-Studies\u0026count_bg=%233DA1C8\u0026title_bg=%23555555\u0026icon=apachekafka.svg\u0026icon_color=%23E7E7E7\u0026title=%2B\u0026edge_flat=false\"/\u003e\u003c/a\u003e\n\n[Apache Kafka](https://kafka.apache.org/)\n\n\u003c/div\u003e\n\n## 목차\n\n\u003ctable\u003e\n    \u003ctr\u003e\u003ctd width=40% valign=top\u003e\n\n* Kafka (Python)\n    * [Simple Producer](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/ProducerDemo.py)\n    * [Producer with callback](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/ProducerDemoCallBack.py)\n    * [Producer with Slack API](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/SlackKafkaProducer.py)\n    * [Consumer with Slack API](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/SlackKafkaConsumer.py)\n    * [Ajou notices Parsing Producer with Slack API](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/AjouSlackProducer.py)\n    * [Ajou notices Parsing Producer with Slack API using MySQL](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/AjouSlackProducerMySQL.py)\n    * [Ajou notices Parsing Consumer with Slack API](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/AjouSlackConsumer.py)\n    * [FastAvro Producer example](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/avro/AjouSlackProducerAvro.py)\n    * [FastAvro Consumer example](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/avro/AjouSlackConsumerAvro.py)\n    * [Cloud Kafka Producer example](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/cloudkarafka/AjouSlackProducerCloud.py)\n    * [Cloud Kafka Consumer example](https://github.com/Alfex4936/kafka-Studies/blob/main/python/src/cloudkarafka/AjouSlackConsumerCloud.py)\n    \n* Kafka (Java)\n    * [Simple Producer](https://github.com/Alfex4936/kafka-Studies/blob/main/src/main/java/csw/kafka/study/lesson1/ProducerDemo.java)\n    * [Producer with callback](https://github.com/Alfex4936/kafka-Studies/blob/main/src/main/java/csw/kafka/study/lesson1/ProducerDemoCallBack.java)\n    * [Producer with key](https://github.com/Alfex4936/kafka-Studies/blob/main/src/main/java/csw/kafka/study/lesson1/ProducerDemoWithKey.java)\n    * [Simple Consumer](https://github.com/Alfex4936/kafka-Studies/blob/main/src/main/java/csw/kafka/study/lesson2/ConsumerDemo.java)\n    * [Consumer With a thread](https://github.com/Alfex4936/kafka-Studies/blob/main/src/main/java/csw/kafka/study/lesson2/ConsumerDemoThread.java)\n    * [Twitter tweets Producer](https://github.com/Alfex4936/kafka-Studies/blob/main/src/main/java/csw/kafka/study/twitter/TwitterProducerOptimized.java)\n    * [Twitter tweets filtering with Kafka Streams](https://github.com/Alfex4936/kafka-Studies/blob/main/kafka-streams-filter-tweets/src/main/java/csw/kafka/streams/StreamsFilterTweets.java)\n\n* Kafka (Go)\n    * [Simple Producer](https://github.com/Alfex4936/kafka-Studies/blob/main/go/src/basic_producer/BasicProducer.go)\n\u003c/td\u003e\u003c/tr\u003e\n\u003c/table\u003e\n\n## 설치\n[Kafka 다운로드](https://kafka.apache.org/downloads)\n\n*Make sure to Download \"Binary\"*\n\n## 실행\n\nzookeeper \u0026 kafka 서버 실행\n\n```console\n\nWIN10@DESKTOP:~$ zookeeper-server-start config/zookeeper.properties\n\nWIN10@DESKTOP:~$ kafka-server-start config/server.properties\n\n```\n\n## CLI 명령어\n\n1. 토픽 만들기 (파티션=3, 복제 계수=2)\n```console\nWIN10@DESKTOP:~$ kafka-topics --zookeeper localhost:2181 --topic first-topic --create --partitions 3 --replication-factor 2\n```\n\n2. 토픽 목록 보기\n```console\nWIN10@DESKTOP:~$ kafka-topics --zookeeper localhost:2181 --list\n\nfirst-topic\nsecond-topic\n```\n\n3. 토픽 설정 보기\n```console\nWIN10@DESKTOP:~$ kafka-topics --zookeeper localhost:2181 --topic first-topic --describe\n\nTopic: first-topic      PartitionCount: 3       ReplicationFactor: 1    Configs:\n        Topic: first-topic      Partition: 0    Leader: 0       Replicas: 0     Isr: 0\n        Topic: first-topic      Partition: 1    Leader: 0       Replicas: 0     Isr: 0\n        Topic: first-topic      Partition: 2    Leader: 0       Replicas: 0     Isr: 0\n```\n\n4. 토픽 컨슈머 (프로듀서 작동할 때)\n```console\nWIN10@DESKTOP:~$ kafka-console-consumer --bootstrap-server localhost:9092 --topic first-topic\n```\n\n5. 토픽 그룹 이름 설정 및 컨슈머\n```console\nWIN10@DESKTOP:~$ kafka-console-consumer --bootstrap-server localhost:9092 --topic first-topic --group group-one\n```\n\n6. 토픽 컨슈머 그룹 목록\n```console\nWIN10@DESKTOP:~$ kafka-consumer-groups --bootstrap-server localhost:9092 --list\n\ngroup-one\n```\n\n7. 토픽 오프셋 초기화\n```console\nWIN10@DESKTOP:~$ kafka-consumer-groups --bootstrap-server localhost:9092 --topic first-topic --group group-one --reset-offsets --to-earliest --execute\n\nGROUP                          TOPIC                          PARTITION  NEW-OFFSET\ngroup-one                      first-topic                    0          0\ngroup-one                      first-topic                    1          0\ngroup-one                      first-topic                    2          0\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfex4936%2Fkafka-studies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falfex4936%2Fkafka-studies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfex4936%2Fkafka-studies/lists"}