Steps for building storm centralization in linux and building linuxstorm centralization
1 Environment
Centos7, apache-storm-1.1.1, jdk1.8, python 2.7.5, zookeeper-3.4.11 Cluster
2 steps:
2.1 Download and decompress apache-storm-1.1.1.tar.gz to linux
tar vxzf apache-storm-1.1.1.tar.gz
2.2 Configuration
2.2.1 switch to the storm configuration directory
cd apache-storm-1.1.1/conf/
2.2.2 modify the following configurations in storm. yaml
storm.zookeeper.servers: - "192.168.80.128" - "192.168.80.131" - "192.168.80.132"storm.local.dir: "/home/laoguan/storm"nimbus.seeds: ["192.168.80.128", "192.168.80.131", "192.168.80.132"]supervisor.slots.ports: - 6700 - 6701 - 6702 - 6703torm.health.check.dir: "healthchecks"storm.health.check.timeout.ms: 5000
(Note: There must be spaces. Otherwise, an error will be reported. You are advised to paste the ip address and change it to your zk cluster .)
Configuration item |
Configuration instructions |
Storm. zookeeper. servers |
ZooKeeper Server LIST |
Storm. local. dir |
Local file system directory used by storm (must exist and the storm process can be read and written) |
Nimbus. seeds |
The address of the master node. Multiple addresses can be configured. |
Supervisor. slots. ports |
List of ports that can run workers on the supervisor. each worker occupies one port, and each port runs only one worker. this configuration allows you to adjust the number of workers running on each machine. (adjust the number of slots per server) |
Torm. health. check. dir |
Node health check directory |
Storm. health. check. timeout. ms |
Timeout settings |
2.2.3 to start storm, switch to the bin directory of storm first.
./storm nimbus./storm ui./storm logviewer