{"id":18996679,"url":"https://github.com/vonzhou/kafka","last_synced_at":"2026-06-20T03:31:54.878Z","repository":{"id":81368086,"uuid":"156500507","full_name":"vonzhou/kafka","owner":"vonzhou","description":"Kafka 0.10.1.0源码阅读笔记","archived":false,"fork":false,"pushed_at":"2018-11-15T13:38:48.000Z","size":11081,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T12:25:32.447Z","etag":null,"topics":["kafka","source-reading"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vonzhou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security.html","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-07T06:27:50.000Z","updated_at":"2019-01-27T12:28:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"424ab92e-5de5-4e6c-b601-ff429ec993ba","html_url":"https://github.com/vonzhou/kafka","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vonzhou/kafka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonzhou%2Fkafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonzhou%2Fkafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonzhou%2Fkafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonzhou%2Fkafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vonzhou","download_url":"https://codeload.github.com/vonzhou/kafka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonzhou%2Fkafka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34556494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["kafka","source-reading"],"created_at":"2024-11-08T17:36:26.909Z","updated_at":"2026-06-20T03:31:54.863Z","avatar_url":"https://github.com/vonzhou.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Apache Kafka\n=================\nSee our [web site](http://kafka.apache.org) for details on the project.\n\nYou need to have [Gradle](http://www.gradle.org/installation) and [Java](http://www.oracle.com/technetwork/java/javase/downloads/index.html) installed.\n\nKafka requires Gradle 2.0 or higher.\n\nJava 7 should be used for building in order to support both Java 7 and Java 8 at runtime.\n\n### First bootstrap and download the wrapper ###\n    cd kafka_source_dir\n    gradle\n\nNow everything else will work.\n\n### Building a jar and running it ###\n    ./gradlew jar\n\nFollow instructions in http://kafka.apache.org/documentation.html#quickstart\n\n### Building source jar ###\n    ./gradlew srcJar\n\n### Building aggregated javadoc ###\n    ./gradlew aggregatedJavadoc\n\n### Building javadoc and scaladoc ###\n    ./gradlew javadoc\n    ./gradlew javadocJar # builds a javadoc jar for each module\n    ./gradlew scaladoc\n    ./gradlew scaladocJar # builds a scaladoc jar for each module\n    ./gradlew docsJar # builds both (if applicable) javadoc and scaladoc jars for each module\n\n### Running unit tests ###\n    ./gradlew test\n\n### Forcing re-running unit tests w/o code change ###\n    ./gradlew cleanTest test\n\n### Running a particular unit test ###\n    ./gradlew -Dtest.single=RequestResponseSerializationTest core:test\n\n### Running a particular test method within a unit test ###\n    ./gradlew core:test --tests kafka.api.ProducerFailureHandlingTest.testCannotSendToInternalTopic\n    ./gradlew clients:test --tests org.apache.kafka.clients.MetadataTest.testMetadataUpdateWaitTime\n\n### Running a particular unit test with log4j output ###\nChange the log4j setting in either `clients/src/test/resources/log4j.properties` or `core/src/test/resources/log4j.properties`\n\n    ./gradlew -i -Dtest.single=RequestResponseSerializationTest core:test\n\n### Generating test coverage reports ###\n    ./gradlew reportCoverage\n\n### Building a binary release gzipped tar ball ###\n    ./gradlew clean\n    ./gradlew releaseTarGz\n\nThe above command will fail if you haven't set up the signing key. To bypass signing the artifact, you can run:\n\n    ./gradlew releaseTarGz -x signArchives\n\nThe release file can be found inside `./core/build/distributions/`.\n\n### Cleaning the build ###\n    ./gradlew clean\n\n### Running a task on a particular version of Scala (either 2.10.6 or 2.11.8) ###\n*Note that if building the jars with a version other than 2.10, you need to set the `SCALA_BINARY_VERSION` variable or change it in `bin/kafka-run-class.sh` to run the quick start.*\n\nYou can pass either the major version (eg 2.11) or the full version (eg 2.11.8):\n\n    ./gradlew -PscalaVersion=2.11 jar\n    ./gradlew -PscalaVersion=2.11 test\n    ./gradlew -PscalaVersion=2.11 releaseTarGz\n\n### Running a task for a specific project ###\nThis is for `core`, `examples` and `clients`\n\n    ./gradlew core:jar\n    ./gradlew core:test\n\n### Listing all gradle tasks ###\n    ./gradlew tasks\n\n### Building IDE project ####\n*Note that this is not strictly necessary (IntelliJ IDEA has good built-in support for Gradle projects, for example).*\n\n    ./gradlew eclipse\n    ./gradlew idea\n\n### Building the jar for all scala versions and for all projects ###\n    ./gradlew jarAll\n\n### Running unit tests for all scala versions and for all projects ###\n    ./gradlew testAll\n\n### Building a binary release gzipped tar ball for all scala versions ###\n    ./gradlew releaseTarGzAll\n\n### Publishing the jar for all version of Scala and for all projects to maven ###\n    ./gradlew uploadArchivesAll\n\nPlease note for this to work you should create/update `${GRADLE_USER_HOME}/gradle.properties` (typically, `~/.gradle/gradle.properties`) and assign the following variables\n\n    mavenUrl=\n    mavenUsername=\n    mavenPassword=\n    signing.keyId=\n    signing.password=\n    signing.secretKeyRingFile=\n\n### Installing the jars to the local Maven repository ###\n    ./gradlew installAll\n\n### Building the test jar ###\n    ./gradlew testJar\n\n### Determining how transitive dependencies are added ###\n    ./gradlew core:dependencies --configuration runtime\n\n### Determining if any dependencies could be updated ###\n    ./gradlew dependencyUpdates\n\n### Running checkstyle on the java code ###\n    ./gradlew checkstyleMain checkstyleTest\n\nThis will most commonly be useful for automated builds where the full resources of the host running the build and tests\nmay not be dedicated to Kafka's build.\n\n### Common build options ###\n\nThe following options should be set with a `-D` switch, for example `./gradlew -Dorg.gradle.project.maxParallelForms=1 test`.\n\n* `org.gradle.project.mavenUrl`: sets the URL of the maven deployment repository (`file://path/to/repo` can be used to point to a local repository).\n* `org.gradle.project.maxParallelForks`: limits the maximum number of processes for each task.\n* `org.gradle.project.showStandardStreams`: shows standard out and standard error of the test JVM(s) on the console.\n* `org.gradle.project.skipSigning`: skips signing of artifacts.\n* `org.gradle.project.testLoggingEvents`: unit test events to be logged, separated by comma. For example `./gradlew -Dorg.gradle.project.testLoggingEvents=started,passed,skipped,failed test`\n\n### Running in Vagrant ###\n\nSee [vagrant/README.md](vagrant/README.md).\n\n### Contribution ###\n\nApache Kafka is interested in building the community; we would welcome any thoughts or [patches](https://issues.apache.org/jira/browse/KAFKA). You can reach us [on the Apache mailing lists](http://kafka.apache.org/contact.html).\n\nTo contribute follow the instructions here:\n * http://kafka.apache.org/contributing.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvonzhou%2Fkafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvonzhou%2Fkafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvonzhou%2Fkafka/lists"}