赞
踩
nohup ./kafka-server-start.sh ../config/server.properties &&>/dev/null 2>&1 & 或者不指定日志输出位置和设置 ./kafka-server-start.sh ../config/server.properties &
./kafka-topics.sh --zookeeper 172.18.111.106:2181 --list
./kafka-topics.sh --delete --zookeeper 172.18.111.106:2181 --topic audit_db_audit_data_topic
./kafka-consumer-groups.sh --bootstrap-server 172.18.111.106:9092 --describe --group kafka_result_id
./kafka-consumer-groups.sh --bootstrap-server 172.18.111.106:9092 --describe --all-groups
./kafka-console-consumer.sh --bootstrap-server 172.18.111.106:9092 --topic task_result_topic --from-beginning
./kafka-console-producer.sh --broker-list 127.0.0.1:9092 --topic kfcs
./kafka-topics.sh --bootstrap-server 172.18.111.106:9092 --describe --topic xxxx
./kafka-topics.sh --zookeeper localhost:2181 --create --topic test --partitions 1 --replication-factor 1
进入kafka安装目录,然后执行以下命令
find ./libs/ -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*'
2.10为Scala版本,0.10.0.2.5.3.0为kafka版本
查看所有topic /usr/hdp/2.5.3.0-37/kafka/bin/kafka-topics.sh --zookeeper 2.zookeeper1 --list 查看topic /usr/hdp/2.5.3.0-37/kafka/bin/kafka-topics.sh --zookeeper 2.zookeeper1 --describe --topic xxxx 查看消费者组 /usr/hdp/2.5.3.0-37/kafka/bin/kafka-consumer-groups.sh --zookeeper 2.zookeeper1 --list 查看消费者情况 /usr/hdp/2.5.3.0-37/kafka/bin/kafka-consumer-groups.sh --zookeeper 2.zookeeper1 --describe --group kafka_result_id 从某一时间开始消费某一topic /usr/hdp/2.5.3.0-37/kafka/bin/kafka-console-consumer.sh --zookeeper 2.zookeeper1 --topic com_dbapp_odps_topic --reset-offsets --to-datetime 2023-05-18T00:00:00.000 -execute 从最开始开始消费某一topic /usr/hdp/2.5.3.0-37/kafka/bin/kafka-console-consumer.sh --zookeeper 2.zookeeper1 --topic task_result_topic --from-beginning
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。