Storm study notes

Install

  1. Download address: https://www.apache.org/dyn/closer.lua/storm/apache-storm-1.2.1/apache-storm-1.2.1.tar.gz
  2. Configure environment variables (I am user level here)
  3. Enter conf and modify storm.yaml
vim ~/.bash_profile
export STORM_HOME=/root/apache-storm-1.2.1
export PATH=$PATH:$STORM_HOME/bin
source ~/.bash_profile
echo $STORM_HOME

Inquire

jps
jps -m
jps -l

Start in background mode (bin directory)

nohup sh storm dev-zookeeper &
nohup sh storm nimbus &
nohup sh storm supervisor &
nohup sh storm ui &

run the jar package

storm jar topology-jar-path class ...
storm jar study-storm-1.0-SNAPSHOT.jar com.st.ClusterSumStormTopology

close task

storm kill topology-name [-w wait-time-secs]
storm kill ClusterSumStormTopology

List tasks and status

storm list

stop cluster

jps
kill -9 pid, pid ...

Reference blog

Official documentation, including configuration, various commands, etc.
[1] http://storm.apache.org/releases/1.1.2/index.html
[2] https://blog.csdn.net/qq_37095882/article/category /7055953

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325387748&siteId=291194637