Skip to content

Commit

Permalink
kafka+storm 联调完成
Browse files Browse the repository at this point in the history
  • Loading branch information
supermy committed Apr 3, 2015
1 parent b2aef5b commit 2eb2185
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions common/mystorm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ Storm的主要特点如下:
> 1.2 按mytools/common/mykafka/的数据采集-运行示例1的步骤启动;
> 1.3 先创建topic:
> kafka-topics.sh --create --zookeeper 192.168.59.103:2181 --replication-factor 1 --partitions 1 --topic storm-sentence
> 1.3 生产数据:telnet 192.168.59.103 44447
> 1.3 生产数据:telnet 192.168.59.103 44450
>
> 2.启动Topology作为Kafka的comsumer( -c nimbus.thrift.port=49627)
> 2.1 git clone https://github.com/supermy/storm-kafka-0.8-plus-test.git/
> 2.2 mvn package
> 2.3 java -cp target/storm-kafka-0.8-plus-test-0.2.0-SNAPSHOT-jar-with-dependencies.jar storm.kafka.trident.SentenceAggregaonTopology 192.168.59.103:2181
>
> 2.3 运行示例
> java -cp storm-kafka-0.8-plus-test-0.2.0-SNAPSHOT-jar-with-dependencies.jar storm.kafka.KafkaSpoutTestTopology 192.168.59.103:2181
> java -cp target/storm-kafka-0.8-plus-test-0.2.0-SNAPSHOT-jar-with-dependencies.jar storm.kafka.trident.SentenceAggregationTopology 192.168.59.103:2181
> 3.观察Storm数据处理情况
>
> ## 日志输出到屏幕
2 changes: 1 addition & 1 deletion common/mystorm/start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fig up -d && fig ps
kafka-topics.sh --create --zookeeper 192.168.59.103:2181 --replication-factor 1 --partitions 1 --topic storm-sentence
fig logs flume1
java -cp storm-kafka-0.8-plus-test-0.2.0-SNAPSHOT-jar-with-dependencies.jar storm.kafka.KafkaSpoutTestTopology 192.168.59.103:2181
Binary file not shown.
Binary file removed common/mystorm/storm-starter-topologies-0.9.4.jar
Binary file not shown.

0 comments on commit 2eb2185

Please sign in to comment.