Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

surge启动未找到jar包 #98

Closed
wu-zhishuai opened this issue Dec 16, 2021 · 5 comments
Closed

surge启动未找到jar包 #98

wu-zhishuai opened this issue Dec 16, 2021 · 5 comments

Comments

@wu-zhishuai
Copy link

wu-zhishuai commented Dec 16, 2021

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
Copy link
Collaborator

你的启动命令不正确

@iengrave
Copy link
Collaborator

iengrave commented Dec 16, 2021

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
Copy link
Collaborator

双引号前面加反斜杠 \

@wu-zhishuai
Copy link
Author

双引号前面加反斜杠
嗯嗯 这样执行就好了 感谢!
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
Copy link
Author

wu-zhishuai commented Dec 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants