// 创建topic
./kafka-topics.sh --bootstrap-server localhost:9092 --create --topic atguigu1 --partitions 2 --replication-factor 2
// 查看topic
./kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic atguigu1
// 查看index文件
./kafka-dump-log.sh --files /Users/guodong/Desktop/tools/kafka2.8/kafka_2.12-2.8.0_1/kafka-logs/atguigu1-1/00000000000000000000.index
// 查看log文件
./kafka-dump-log.sh --files /Users/guodong/Desktop/tools/kafka2.8/kafka_2.12-2.8.0_1/kafka-logs/atguigu1-1/00000000000000000000.log