这篇文章主要为大家展示了“Apache Storm如何安装”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“Apache Storm如何安装”这篇文章吧。
1、 安装JDK,不再赘述
2、下载并解压storm
下载地址://storm.apache.org/downloads.html
3、修改Storm 配制
配置conf/storm.yaml
########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
-"127.0.0.1"
# - "server2"
storm.zookeeper.port: 2181
#
nimbus.host:"master"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
storm.local.dir:"/opt/storm/apache-storm-0.9.4/data"
#
#
# ##### These may optionally be filled in:
#
## List of custom serializations
# topology.kryo.register:
# - org.mycompany.MyType
# - org.mycompany.MyType2: org.mycompany.MyType2Serializer
#
## List of custom kryo decorators
# topology.kryo.decorators:
# - org.mycompany.MyDecorator
#
## Locations of the drpc servers
# drpc.servers:
# - "server1"
# - "server2"
## Metrics Consumers
# topology.metrics.consumer.register:
# - class: "backtype.storm.metric.LoggingMetricsConsumer"
# parallelism.hint: 1
# - class: "org.mycompany.MyMetricsConsumer"
# parallelism.hint: 1
# argument:
# - endpoint: "metrics-collector.mycompany.org"
4、启动
在master机器的supervision下运行命令
nohup./stormnimbus &
nohup./stormui &
nohup./stormlogviewer &
在所有子节点机器运行:
nohup./stormsupervisor &
nohup ./stormlogviewer &
以上是“Apache Storm如何安装”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。