Storm is a distributed, open-source, real-time computing system that makes data flow processing simple and reliable, and therefore has a wide range of practical applications in big data.
Application. Here's how to install Storm on a Linux system. According to Storm's official website, installing storm Software is five steps:
- Install zookeeper.
- Install storm's dependent environment: Java and Python.
- Download and unzip the storm installation package.
- Modify the necessary storm configuration files.
- Start the Storm program.
First, storm as a distributed system, its operation requires the use of zookeeper to collaborate. So before installing storm, you need to install
Zookeeper. The installation of zookeeper is also very simple, see Installing Zookeeper on Linux.
Second, if the reference above has been installed zookeeper, then you must have installed Java, the general Linux system comes with Python,
So the second step can be skipped.
Third, to the storm official network to choose the storm version you want to install, because recently participated in a project has been using the Storm0.9.6 version
, so I'm also installing the Storm0.9.6 version here. Download it and unzip it directly.
The storm configuration file is under Storm's Conf/strom.yaml. It has a lot of default configuration options, detailed descriptions can be clicked here;
It's normal for us to just change a few of them.
1) Specify Zookeeper server
storm.zookeeper.servers:-"10.0.6.81". I only configured a zookeeper server in front of the 10.0.6.81, so
Only one item is added here.
2) Specify the Storm master node
nimbus.host: "10.0.6.81", It is to be explained that zookeeper and Storm can be installed on the same machine, they
The use of different ports, is different process, just do in the production environment is not conducive to security, a machine hung up all hung up.
3) Configure Storm Data Catalog
storm.local.dir: "/xxx/xxx", it should bestated that this directory should be guaranteed to have read and write permissions. In addition, each of the storm configuration files
A configuration colon : followed by a space, or storm is not recognized.
V. Start storm and run in Storm's bin/directory./storm Nimbus, it is recommended to run with the screen command because the Storm runtime
will block the shell, pressing CTRL C will kill the newly-started storm process. If there is no error on the screen, it means that storm is installed successfully.
Storm also provides a web to view storm operations, running in the storm's Bin directory./storm UI, then enter in the browser
http://10.0.6.81:9090 for access .
The default UI port for storm is 8080, but the 8080 port is easily occupied by Tomcat, so I put the end in the Storm config file Strom.yaml
< Span style= "color: #000000;" > port changed to 9090,ui.port:9090 ,
access, if the intranet, the same LAN can be accessed.
How to install Storm on Linux