启动nimbus
docker run -it -v $(pwd)/storm.yaml:/conf/storm.yaml --restart always --name nimbus storm:1.1.1 storm nimbus
docker中的话 映射下 6627端口 -p 6627:6627
启动 ui
docker run -d -p 8865:8865 -it -v $(pwd)/storm.yaml:/conf/storm.yaml --restart always --name ui --link nimbus:nimbus storm:1.1.1 storm ui
启动supervisor
(docker)启动前要配置下host
docker run -d --restart always -it -v $(pwd)/storm.yaml:/conf/storm.yaml -v /etc/localtime:/etc/localtime --name supervisor --link nimbus:nimbus storm:1.1.1 storm supervisor
提交TOPO
docker run -d --link nimbus:nimbus -it --rm -v $(pwd)/smartstore-operation-storm-1.0-SNAPSHOT-jar-with-dependencies.jar:/topology.jar storm:1.1.1 storm jar /topology.jar com.lenovo.digital.AreaAnalyseTopology topology
查看TOPO
进入容器查看 storm list
docker run -d -p 8000:8000 —restart always -it -v $(pwd)/storm.yaml:/conf/storm.yaml —name logviewer1 —link supervisor01:supervisor —link nimbus:nimbus storm:1.1.1 storm logviewer
查看所有容器
docker container ls -a
终止容器
docker container stop xxxx
删除所有终止的容器
docker container prune
删除指定终止的容器
docker container rm
启动已经终止的容器
docker container start
进入容器
docker exec -i 69d1 bash