# kafka-0.10.2 **Repository Path**: spafka/kafka-0.10.2 ## Basic Information - **Project Name**: kafka-0.10.2 - **Description**: kafka-0.10.2 code review - **Primary Language**: HTML - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### First bootstrap and download the wrapper ### cd kafka_source_dir gradle build -x test The start script for Kafka does not use the G1 collector, instead defaulting to using parallel new and concurrent mark and sweep garbage collection. The change is easy to make via environment variables. Using the start command from earlier in the chapter, modify it as follows: export KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+DisableExplicitGC -Djava.awt.headless=true" ## [启动 kafka集群](https://github.com/spafka/kafka-0.10.2/blob/master/mdz/start-kafka-server.md) ## create nohup bin/kafka-topics.sh --create --zookeeper localhost:2181 --topic test --replication-factor 1 --partitions 1 & ## productor and consumer bin/kafka-console-consumer --bootstrap-server localhost:9092 --topic test --from-beginning bin/kafka-console-producer.sh --broker-list localhost:9093 --topic test ## [Producer](https://github.com/spafka/kafka-0.10.2/blob/master/mdz/producer.md) ## [Consumer](https://github.com/spafka/kafka-0.10.2/blob/master/mdz/consumer.md) ## [Broker](https://github.com/spafka/kafka-0.10.2/blob/master/mdz/broker.md)