Apache Storm环境配置
发表于:2024-11-18 作者:千家信息网编辑
千家信息网最后更新 2024年11月18日,I. 准备apache-storm-0.9.3 zookeeper-3.4.6II. 结构一台server装nimbus和zookeeper,两台supervisor。III. 配置ZooKeeper
千家信息网最后更新 2024年11月18日Apache Storm环境配置
I. 准备
apache-storm-0.9.3 zookeeper-3.4.6
II. 结构
一台server装nimbus和zookeeper,两台supervisor。
III. 配置
ZooKeeper:
# vi conf/zoo.cfg
clientPort=10205server.0=nimbus:2888:3888
#vi /var/zookeeper/myid
<与zoo.cfg中server.后面的数字一致,如nimbus机器改为0>
Storm:
# vi conf/storm.yaml
storm.zookeeper.servers: - "nimbus" - "supervisor1" - "supervisor2" - "supervisor3"storm.zookeeper.port: 10205storm.local.dir: "/mnt/storm" #表示storm需要用到的本地目录,比如topology的jar文件保存,java.library.path: /usr/local/lib:/opt/local/lib:/usr/libnimbus.host: "nimbus"supervisor.slots.ports: #表示supervisor节点的槽数,即每个supervisor能开几个worker进程。 - 6700 - 6701 - 6702 - 6703
IV. 步骤
1.在nimbus上启动zookeeper。zk必须要先启动,否则nimbus启动会报错。
#./zkServer.sh start
JMX enabled by defaultUsing config: /root/storm/zookeeper-3.4.6/bin/../conf/zoo.cfgStarting zookeeper ... STARTED
# bin/zkCli.sh stat /测试服务是否正常启动
Connecting to localhost:21812015-05-28 05:32:11,600 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT2015-05-28 05:32:11,604 [myid:] - INFO [main:Environment@100] - Client environment:host.name=mats03.webex.com2015-05-28 05:32:11,605 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.7.0_452015-05-28 05:32:11,607 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation2015-05-28 05:32:11,607 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/jre2015-05-28 05:32:11,607 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/root/storm/zookeeper-3.4.6/bin/../build/classes:/root/storm/zookeeper-3.4.6/bin/../build/lib/*.jar:/root/storm/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/root/storm/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/root/storm/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/root/storm/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/root/storm/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/root/storm/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/root/storm/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/root/storm/zookeeper-3.4.6/bin/../conf::/home/oracle/OraHome1/jlib:/home/oracle/OraHome1/rdbms/jlib2015-05-28 05:32:11,607 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=:/home/oracle/OraHome1/lib:/opt/webex/mats/bin:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib2015-05-28 05:32:11,608 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp2015-05-28 05:32:11,608 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=2015-05-28 05:32:11,608 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux2015-05-28 05:32:11,608 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=amd642015-05-28 05:32:11,608 [myid:] - INFO [main:Environment@100] - Client environment:os.version=2.6.32-279.9.1.el6.x86_642015-05-28 05:32:11,608 [myid:] - INFO [main:Environment@100] - Client environment:user.name=root2015-05-28 05:32:11,608 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/root2015-05-28 05:32:11,609 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/root/storm/zookeeper-3.4.62015-05-28 05:32:11,610 [myid:] - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@75ab5e0b
2.启动主节点nimbus和ui
nohup bin/storm nimbus &nohup bin/storm ui &
3.启动从节点supervisor
nohup bin/storm supervisor &
4.查看界面:http://
V. Example
这是storm安装包里提供的example,路径apache-storm-0.9.3\examples\storm-starter\src\jvm\storm\starter,提交一个topology命名为wordcountexample。
# ./storm jar /home/slimttyagent/storm-starter-topologies-0.9.3.jar storm/starter/WordCountTopology wordcountexample
519 [main] INFO backtype.storm.StormSubmitter - Jar not uploaded to master yet. Submitting jar...525 [main] INFO backtype.storm.StormSubmitter - Uploading topology jar /home/slimttyagent/storm-starter-topologies-0.9.3.jar to assigned location: /var/storm/nimbus/inbox/stormjar-d8c7a8d9-3e76-444f-b86b-b0e5a45b99da.jarStart uploading file '/home/slimttyagent/storm-starter-topologies-0.9.3.jar' to '/var/storm/nimbus/inbox/stormjar-d8c7a8d9-3e76-444f-b86b-b0e5a45b99da.jar' (3248859 bytes)[==================================================] 3248859 / 3248859File '/home/slimttyagent/storm-starter-topologies-0.9.3.jar' uploaded to '/var/storm/nimbus/inbox/stormjar-d8c7a8d9-3e76-444f-b86b-b0e5a45b99da.jar' (3248859 bytes)557 [main] INFO backtype.storm.StormSubmitter - Successfully uploaded topology jar to assigned location: /var/storm/nimbus/inbox/stormjar-d8c7a8d9-3e76-444f-b86b-b0e5a45b99da.jar558 [main] INFO backtype.storm.StormSubmitter - Submitting topology wordcountexample in distributed mode with conf {"topology.workers":3,"topology.debug":true}737 [main] INFO backtype.storm.StormSubmitter - Finished submitting topology: wordcountexample
节点
配置
文件
步骤
界面
目录
结构
路径
这是
进程
I.
会报
能开
准备
服务
测试
环境
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
美国总统加强网络安全
想学网络技术去哪里学
四川工控软件开发哪家实惠
中华人民共和国网络安全法反思
杭州4年软件开发工资
dgx服务器是啥
h2数据库语法
网络安全系统都有什么
软件开发业务场景描述
职高游戏软件开发
软件开发去哪好翰诺科技好
股票分析类软件开发
安全linux服务器
服务器界面多开
服务器输入不受支持
网络安全工程师的项目经验
mysql数据库切换用户
江宁区一站式软件开发排名靠前
软件开发部门合理化建议
数据库原理聚集函数怎么做
网络技术岗位职责和任职要求
生成数据库字段导出
泰拉瑞亚手机版怎么查看自己的服务器ip
软件开发甲方一直加需求
山东省软件开发人员测算依据
sass 软件开发模式
上海综合软件开发活动方案
互联网科技行业的特点
水源地保护网络技术
c 数据库通讯录系统