Spark project packaging [more pictures and less words]

1 Pre-preparation

在Maven中:clean => compile

insert image description here

2 packaging steps

File => Project Structure

insert image description here

Artifacts => + => JAR => Emptytif

改名 => 要打包的东西加入jar包 insert image description hereinsert image description here

Build => Build Artifacts

insert image description here

在弹出窗口中:Build

insert image description here
insert image description here

会在项目结构中生成out文件夹,其中有我们打好的jar包 insert image description here

3 Test run

spark-submit --class MRSRunner --master local E:\IDEAProject\Hypergraph\out\artifacts\hypergraph\hypergraph.jar ../../../output/hypergraph

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/twi_twi/article/details/128332002