91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Apache Storm環境配置

發布時間:2020-07-24 15:11:14 來源:網絡 閱讀:1614 作者:wu5yanan 欄目:大數據

I. 準備

apache-storm-0.9.3 zookeeper-3.4.6


II. 結構

一臺server裝nimbus和zookeeper,兩臺supervisor。


III. 配置

ZooKeeper:

# vi conf/zoo.cfg

clientPort=10205
server.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: 10205
storm.local.dir: "/mnt/storm" #
表示storm需要用到的本地目錄,
比如topology的jar文件保存,
java.library.path: /usr/local/lib:/opt/local/lib:/usr/lib
nimbus.host: "nimbus"
supervisor.slots.ports:  #
表示supervisor節點的槽數,即每個supervisor能開幾個worker進程。
    - 6700
    - 6701
    - 6702
    - 6703


IV. 步驟

1.在nimbus上啟動zookeeper。zk必須要先啟動,否則nimbus啟動會報錯。

#./zkServer.sh start
JMX enabled by default
Using config: /root/storm/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
# bin/zkCli.sh stat /測試服務是否正常啟動
Connecting to localhost:2181
2015-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 GMT
2015-05-28 05:32:11,604 [myid:] - INFO  [main:Environment@100] - Client environment:host.name=mats03.webex.com
2015-05-28 05:32:11,605 [myid:] - INFO  [main:Environment@100] - Client environment:java.version=1.7.0_45
2015-05-28 05:32:11,607 [myid:] - INFO  [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2015-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/jre
2015-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/jlib
2015-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/lib
2015-05-28 05:32:11,608 [myid:] - INFO  [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2015-05-28 05:32:11,608 [myid:] - INFO  [main:Environment@100] - Client environment:java.compiler=<NA>
2015-05-28 05:32:11,608 [myid:] - INFO  [main:Environment@100] - Client environment:os.name=Linux
2015-05-28 05:32:11,608 [myid:] - INFO  [main:Environment@100] - Client environment:os.arch=amd64
2015-05-28 05:32:11,608 [myid:] - INFO  [main:Environment@100] - Client environment:os.version=2.6.32-279.9.1.el6.x86_64
2015-05-28 05:32:11,608 [myid:] - INFO  [main:Environment@100] - Client environment:user.name=root
2015-05-28 05:32:11,608 [myid:] - INFO  [main:Environment@100] - Client environment:user.home=/root
2015-05-28 05:32:11,609 [myid:] - INFO  [main:Environment@100] - Client environment:user.dir=/root/storm/zookeeper-3.4.6
2015-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://<nimbusIP>:18080/index.html

Apache Storm環境配置


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.jar
Start 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 / 3248859
File '/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.jar
558  [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

Apache Storm環境配置

Apache Storm環境配置


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

沙河市| 武城县| 临武县| 于田县| 凤城市| 秀山| 长沙市| 利辛县| 信宜市| 七台河市| 怀宁县| 永定县| 云浮市| 顺义区| 郓城县| 昌都县| 冀州市| 开封县| 冷水江市| 文化| 买车| 昆山市| 高安市| 资兴市| 宜黄县| 上杭县| 东阳市| 灯塔市| 车致| 龙陵县| 增城市| 淳安县| 松阳县| 溧水县| 彭阳县| 冕宁县| 定南县| 河津市| 北川| 景德镇市| 博乐市|