kafka 命令

启动:

./flume-ng agent --conf-file /opt/storm/Storm/apache-flume-1.6.0-bin/conf/flume-conf.properties --conf /opt/storm/Storm/apache-flume-1.6.0-bin/conf -n a1 -Dflume.root.logger=INFO

1.创建topic

   ./kafka-topics.sh --create --zookeeper *:2181,*:2181,*:2181 --replication-factor 1 --partitions 1 --topic uimgflow

2.查看topic

  ./kafka-topics.sh --describe --zookeeper *:2181,*:2181,*:2181 --topic test

3.控制台接收消息

  ./kafka-console-consumer.sh --zookeeper *:2181,*:2181,*:2181 --from-beginning --topic test

你可能感兴趣的:(kafka)