1,export对应的源文件。默认finish即可。
2,用解压工具包编辑manifest.mf文件。
其中
Main-Class: com.example.myapp.MyAppMain //执行main主类
Class-Path: mail.jar activation.jar //依赖的jar包,集群中要能找到。
编辑好之后放进去。
3,拷贝jar文件到cluster集群中。用如下命令提交
bin/spark-submit --class ALST --master spark://192.168.1.120:7077 --executor-memory 10G --total-executor-cores 10 /home/dell/wangwei/ALS.jar