{"id":18773907,"url":"https://github.com/ejunjsh/java-code","last_synced_at":"2025-10-05T18:10:35.685Z","repository":{"id":109691038,"uuid":"79991993","full_name":"ejunjsh/java-code","owner":"ejunjsh","description":"all kinds of java code in different topics or fields","archived":false,"fork":false,"pushed_at":"2018-08-11T13:39:22.000Z","size":72,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-29T08:41:59.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ejunjsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-25T07:18:15.000Z","updated_at":"2018-08-11T13:39:23.000Z","dependencies_parsed_at":"2023-03-13T14:05:09.715Z","dependency_job_id":null,"html_url":"https://github.com/ejunjsh/java-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fjava-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fjava-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fjava-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fjava-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejunjsh","download_url":"https://codeload.github.com/ejunjsh/java-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239680985,"owners_count":19679509,"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","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":[],"created_at":"2024-11-07T19:36:17.037Z","updated_at":"2025-10-05T18:10:35.567Z","avatar_url":"https://github.com/ejunjsh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java-code\nall kinds of java code in different topics or fields\n\n# kafka\n\n## run and test a kafka cluster\nrun a kafka code, please install `docker` and `docker-compose`\n\n````\nsudo docker-compose run target\n````\n\nthen, the docker will give a bash back.run below command to start a producer\n\n````\nmvn install\nmvn exec:java -Dexec.mainClass=\"com.sky.code.kafka.CustomPartitionProducer\"\n````\n\nopen another terminal,and run\n\n````\nsudo docker-compose run target\n````\n\nin the returned bash, run below command to start a consumer.\n\n````\nmvn exec:java -Dexec.mainClass=\"com.sky.code.kafka.CustomPartitionConsumer\"\n````\n\nyou will see the both processes, one produce a message then another will consume it.\n\n\n## destroy a cluster\n\n````\nsudo docker-compose down\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fjava-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejunjsh%2Fjava-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fjava-code/lists"}