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

书本实践分享2: 运行ComplexApplication应用 #27

Open
ycli12 opened this issue Feb 27, 2022 · 0 comments
Open

书本实践分享2: 运行ComplexApplication应用 #27

ycli12 opened this issue Feb 27, 2022 · 0 comments

Comments

@ycli12
Copy link

ycli12 commented Feb 27, 2022

• 到github下载ComplexApplication.scala
• 将ComplexApplication.scala放到一个工程中编译成Jar包
• 上传到虚拟机
• 设置卷映射,使得当前的Jar包能被spark-master的容器读取到
image
• 运行提交应用的命令
docker exec -it spark-master /spark/bin/spark-submit --class ComplexApplication /apps/ComplexApplication.jar
• 查看18080端口可以看到应用成功运行了
image
• 设置alias
alias run_complex=' docker exec -it spark-master /spark/bin/spark-submit --class ComplexApplication /apps/ComplexApplication.jar'

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

1 participant