shulieTech / Takin

Takin is an Java-based, open-source system designed to measure online environmental performance test for full-links, Especially for microservices. Through Takin, middlewares and applications can identify real online traffic and test traffic, ensure that they enter the right databases.
Apache License 2.0
1.32k stars 330 forks source link

surge启动未找到jar包 #98

Closed wu-zhishuai closed 2 years ago

wu-zhishuai commented 2 years ago

surge.out中提示缺少surge-deploy-1.0-jar-with-dependencies.jar image 回到容器data路径下查看发现:只有surge-deploy-pradar-storm-1.0.jar却没有surge-deploy-1.0-jar-with-dependencies.jar image

当启动命令换成surge-deploy-pradar-storm-1.0.jar时,进行 ps -ef | grep surge,结果如下: image

分别运行两个包 均有报错: image

请问启动surge到底以哪个jar为准?还是缺少了surge-deploy-1.0-jar-with-dependencies.jar这个包吗?

iengrave commented 2 years ago

你的启动命令不正确

iengrave commented 2 years ago

nohup java -Xms256m -Xmx256m -Xss1m -cp surge-deploy-pradar-storm-1.0.jar io.shulie.surge.data.deploy.pradar.bootstrap.PradarTopologyBootStrap -DSourceType=MYSQL -DWorkers=1 -DNet={\"你的容器IP\":\"你的容器宿主机IP\"} >surge.out 2>&1 &

iengrave commented 2 years ago

双引号前面加反斜杠 \

wu-zhishuai commented 2 years ago

双引号前面加反斜杠 \ 嗯嗯 这样执行就好了 感谢! nohup java -Xms256m -Xmx256m -Xss1m -cp surge-deploy-pradar-storm-1.0.jar io.shulie.surge.data.deploy.pradar.bootstrap.PradarTopologyBootStrap -DSourceType=MYSQL -DWorkers=1 -DNet={\"你的容器IP\":\"你的容器宿主机IP\"} >surge.out 2>&1 &

wu-zhishuai commented 2 years ago

nohup java -Xms256m -Xmx256m -Xss1m -cp surge-deploy-pradar-storm-1.0.jar io.shulie.surge.data.deploy.pradar.bootstrap.PradarTopologyBootStrap -DSourceType=MYSQL -DWorkers=1 -DNet={"你的容器IP":"你的容器宿主机IP"} >surge.out 2>&1 & 麻烦再次确认下:"你的容器宿主机IP"这里是指我takin容器所在主机ip还是应用所在服务器ip? image