Strorm Learning 02--storm Installation __storm

Source: Internet
Author: User
first, the installation starts Zookeeper


Why does ZK use 3.4.5 because it supports snapshots of disks and periodic deletions of namenode, avoiding disk full

Configuration:

# The number of milliseconds of tick ticktime=2000 # The number of 
ticks that initial synchronization pha SE can take 
initlimit=10 # The number of 
ticks that can pass between sending a request and getting a Acknowledgem ent 
synclimit=5 
# The directory where the snapshot is stored. 
# do not use/tmp for storage,/tmp Here is just example sakes. 
Datadir=/zookeepertest/data 
autopurge.purgeinterval=1 
# The port at which the clients'll connect 
clientport=2181

server.1=test:2888:3888    
server.2=test1:2888:3888 
server.3=test2:2888:388
Datadi
ZK, all the data is written under DataDir autopurge.purgeinterval
Autopurge.purgeinterval=1 What does that mean, every hour, it cleans up the data in the DataDir, because ZK produces snapshot and Binlog, which is very fast and will fill up the disk in a few days, We clean up one hour at a time to effectively avoid this problem, clean up the rule is clean up when it will keep the latest 3 files, of course, this 3 is also configurable server.1=test:2888:3888
Number of Server.x x set in myID Storm Cluster

Second, install Storm

Download, unzip the configuration file for the 2.1 configuration Storm Storm.yaml

Cd/usr/local/storm/conf
VI Storm.yaml
Modify the following: Add cluster, set master node

distribute to each node

SCP III, start Storm 3.1, start Nimbus

Start Nimbus on the primary node

Cd/usr/local/storm
mkdir Logs
3.2 Starting UI
Cd/usr/local/storm
./bin/storm UI >> Logs/ui.out 2>&1 &
3.3 Start Logviewer

Boot on port 8000.

Cd/usr/local/storm
./bin/storm logviewer  >> logs/logviewer 2>&1 &
3.4, start Superviour

Start supervisor at each node

Cd/usr/local/storm
3.5 Verify Open Browser
http://test:8080
3.6 Submit Topology
Cd/usr/local/storm
./bin/storm jar Examples/storm-starter/storm-startertopologies-0.9.4.jar Storm.starter.WordCountTopology WordCount

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.