kafka storm 命令

11 篇文章 0 订阅

 

 

kafka命令:

bin/kafka-server-start.sh config/server.properties &

bin/kafka-server-stop.sh config/server.properties &

 

 

bin/kafka-topics.sh --list --zookeeper host34:2181,host36:2181,host37:2181,host38:2181 

bin/kafka-topics.sh --create --zookeeper host34:2181,host36:2181,host37:2181,host38:2181 --topic dirkzhang

 

bin/kafka-topics.sh --describe --zookeeper host34:2181,host36:2181,host37:2181,host38:2181 --topic dirkzhang

bin/kafka-console-producer.sh --broker-list host34:9092,host36:9092 --topic dirkzhang

 

bin/kafka-console-consumer.sh --zookeeper host34:2181,host36:2181,host37:2181,host38:2181 --topic dirkzhang --from-beginning

 

 

 

storm命令:

 

 

bin/storm nimbus &

bin/storm supervisor &

 

bin/storm ui &

 

 /data/storm-0.9.3/bin/storm jar /data/hadoop/dirkzhang/EmarOlap-0.0.1-SNAPSHOT.jar com.emar.common.storm.examples.StormSimpleExample host34

 bin/storm kill 

 

  

 /data/storm-0.9.3/bin/storm jar StormProject-0.0.1-SNAPSHOT-jar-with-dependencies.jar com.emar.common.storm.examples.StormSimpleExample host34

 

 /data/storm-0.9.3/bin/storm jar StormProject-0.0.1-SNAPSHOT-jar-with-dependencies.jar com.emar.common.storm.examples.StormKafkaLog host34

 ----

 

 

 zookeeper host18:2181,host20:2181,host44:2181,host237:2181,host238:2181/kafka-zk

 kafka测试集群 118.26.148.18:9092,118.26.148.20:9092,118.26.148.237:9092,118.26.148.238:9092

 

 rtb_bidreq  rtb_biddetail

 

./bin/kafka-topics.sh --list --zookeeper host18:2181,host20:2181,host44:2181,host237:2181,host238:2181/kafka-zk

 

./bin/kafka-console-consumer.sh --zookeeper host18:2181,host20:2181,host44:2181,host237:2181,host238:2181/kafka-zk --topic tpch --from-beginning 

 

 

 

bin/kafka-topics.sh --create --zookeeper host18:2181,host20:2181,host44:2181,host237:2181,host238:2181/kafka-zk --topic dz

 bin/kafka-topics.sh --create --zookeeper host18:2181,host20:2181,host44:2181,host237:2181,host238:2181/kafka-zk --replication-factor 2 --partitions 8  --topic dirkz

 

 consumer:

  bin/kafka-console-consumer.sh  --zookeeper host18:2181,host20:2181,host44:2181,host237:2181,host238:2181/kafka-zk --topic dirkz --from-beginning

  

  product:

  bin/kafka-console-producer.sh --broker-list 118.26.148.18:9092,118.26.148.20:9092,118.26.148.237:9092,118.26.148.238:9092 --topic dirkz

  

  

  

  bin/kafka-console-consumer.sh  --zookeeper host18:2181,host20:2181,host44:2181,host237:2181,host238:2181/kafka-zk --topic rtb_bidreq --from-beginning 

  

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值