kafka介绍
https://www.orchome.com/kafka/index
https://www.jianshu.com/p/d3e963ff8b70
https://segmentfault.com/a/1190000017180201
Kafka数据监控、统计:
./kafka-topics.sh --zookeeper 172.22.34.239:2181 --list
./kafka-consumer-groups.sh --zookeeper 172.22.34.239:2181 --list
./kafka-topics.sh --zookeeper 172.22.34.239:2181 --describe --topic topic_gps_trace
./kafka-console-consumer.sh --zookeeper 172.16.11.156:2181 --topic SECURITY_INFO
./kafka-console-consumer.sh --zookeeper 172.22.34.239:2181 --topic topic_gps_trace --from-beginning
./kafka-console-consumer.sh --zookeeper 172.22.34.239:2181 --topic topic_gps_trace | grep "106000060"
./kafka-console-consumer.sh --zookeeper 172.22.34.239:2181 --topic topic_gps_trace >trace_1vu.log
./kafka-console-consumer.sh --zookeeper 172.22.34.239:2181 --topic topic_gps_status >status_1vu.log
./kafka-console-consumer.sh --zookeeper 172.22.33.225:2181 --topic topic_gps_trace | grep "106000060"
./kafka-console-consumer.sh --zookeeper 172.22.33.225:2181 --topic topic_gps_status | grep "106000060"
./kafka-console-consumer.sh --bootstrap-server 172.16.11.xxx:2181,172.16.11.xxx:2181,172.16.11.xxx:2181 --topic SECURITY_INFO