1. Installation environment requirements
you need to install Storm’s dependencies on Nimbus and the worker machines. These are:
- Java 7+ (Apache Storm 1.x is tested through travis ci against both java 7 and java 8 JDKs)
- Python 2.6.6 (Python 3.x should work too, but is not tested as part of our CI enviornment)
Storm runs on Java 7+ and Python 2.6.6 +, so it needs to be pre-installed. Since the two software have dependencies in multiple frameworks, the installation steps are sorted separately as follows:
-
JDK installation in Linux
-
Python installation in Linux
2. Download and unpack it
Download and unpack, official download address: storm.apache.org/downloads.h…
#The tar ZXVF - apache - storm - 1.2.2. Tar. Gz
Copy the code
3. Configure environment variables
# vim /etc/profile
Copy the code
Add environment variables:
Export STORM_HOME = / usr/app/apache - storm - 1.2.2 export PATH = $STORM_HOME/bin: $PATHCopy the code
Make configured environment variables take effect:
# source /etc/profile
Copy the code
4. Start related processes
Because multiple processes need to be started, the background process is used to start the process. Go to ${STORM_HOME}/bin and run the following commands:
#Start the zookeeper
nohup sh storm dev-zookeeper &
#Example Start nimbus on the primary node
nohup sh storm nimbus &
#Start the supervisor of the secondary node
nohup sh storm supervisor &
#Start UI UI
nohup sh storm ui &
#Start log viewing service LogViewer
nohup sh storm logviewer &
Copy the code
5. Check whether the startup is successful
Verification Method 1: JPS Viewing processes:
[root@hadoop001 app]# jps
1074 nimbus
1283 Supervisor
620 dev_zookeeper
1485 core
9630 logviewer
Copy the code
Authentication Mode 2: Access port 8080 and view the Web-UI.