How to submit the jar package to the cluster for execution? How to upload files in the computer's local path to the server

How to submit the jar package to the cluster for execution?

spark-submit --class package name + class name /home/****/myScala.jar> rizhi.txt

Among them: spark-submit is the command
-class package name + class name, the package name is jj.tag.test, the class name is DataFrameOperation
>rizhi.txt is to put the log in the rizhi.txt file
Insert picture description here

* How to upload the file of the computer's local path to the server?

hadoop dfs -put /home/**** hdfs://****
where /home/**** is the local path hdfs://**** is the server path

Guess you like

Origin blog.csdn.net/limiaoiao/article/details/106523495