zzzzzz
ssh root@ip
scp -r apache-storm-1.2.4 root@ip:/root
在每台主机上执行
zkServer.sh start
zkServer.sh status
在主节点上启动nimbus, ui, logview,在从节点上启动supervisor, logviewer
# run nimbus(master)
nohup sh storm nimbus &
# run supervisor(slave)
nohup sh storm supervisor &
# run logviewer
nohup sh storm logviewer &
# run ui
nohup sh storm ui &
nohup ./hive --service hiveserver2 & beeline -u jdbc:hive2://master:10000 --verbose=true
在主节点执行
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
本地编译
mvn clean compile assembly:single
scp发送jar包
scp target/preprocess-1.0-SNAPSHOT-jar-with-dependencies.jar root@ip:/root/myjar
部署运行topology
storm jar xxx.jar org.example.KafkaJsonTopology
send.py
- 停止storm jps,kill lsof -i :8080,kill
- 停止zookeeper zkServer.sh stop
ps -aux | grep nimbus
ps -aux | grep supervisor
ps -aux | grep ui
ps -aux | grep logviewer
ps -aux | grep drpc
git branch testing # new branch
git log --oneline --decorate --graph --all # view
git checkout testing # switch to branch
git commit -a -m 'msg' # add + commit
git commit, git commit
git merge
手动编辑
git add
git commit
ssh -L 8080:127.0.0.1:8080 root@10.119.12.217
nimbus 6627
supervisor 6700-6703
zookeeper 2181, logviewer 8000
{
"modelId": "albert-base-v1",
"pipeline_tag": "fill-mask",
"author": null,
"likes": 1,
"downloads": 73054,
"library_name": "transformers"
}
INSERT INTO TABLE model1 VALUES('shitauweh', 'awiheu', 0, 0, ARRAY('datasetsStr','aowei','awuefi'), 'authqiwueifor','librwehfary_name');
INSERT INTO TABLE model1 VALUES('albert-base-v1', 'fill-mask', 'null_author', 'transformers', '1', '73054', ARRAY('bookcorpus', wikipedia'))