首页 > 代码库 > flume、kafka、storm常用命令

flume、kafka、storm常用命令

出自:http://my.oschina.net/jinp/blog/350293

一些常用命令:

storm相关:

storm nimbus >/dev/null 2>&1 &storm supervisor >/dev/null 2>&1 &storm ui >/dev/null 2>&1 &关闭stormps -ef|grep apache-storm-0.9.2-incubating|grep -v grep|awk ‘{print $2}‘|xargs kill -9
 

kafka相关:

启动kafka./kafka-server-start.sh ../config/server.properties生产消息./kafka-console-producer.sh --broker-list 127.0.0.1:9092 --topic kafkaTopic消费消息./kafka-console-consumer.sh --zookeeper 127.0.0.1:2181 --topic kafkaTopic --from-beginning创建topic(副本数和分区数)./kafka-topics.sh --topic kafkaTopic --create --zookeeper 127.0.0.1:2181 --replication-factor 1 --partition 6修改topic./kafka-topics.sh -topic kafkaTopic -alter -zookeeper 127.0.0.1:2181 --partition 6查看单个topic详细./kafka-topics.sh -topic kafkaTopic -describe -zookeeper 127.0.0.1:2181查看所有topicbin/kafka-topics.sh --list --zookeeper 127.0.0.1:2181

 

flume相关:

启动flume./flume-ng agent --conf ../conf --conf-file ../conf/flume-conf.properties --name producer查flume进程ps -ef | grep flume

 

复制去Google翻译翻译结果
启动水槽
./flume-ng代理--conf../conf--conf文件../conf/flume-conf.properties--name生产商
水槽进程
PS-ef|grep的水槽

flume、kafka、storm常用命令