How do I pass program-argument to main function in running spark-submit with a JAR?

后端 未结 4 847
悲哀的现实
悲哀的现实 2020-12-29 05:28

I know this is a trivial question, but I could not find the answer on the internet.

I am trying to run a Java class with the main function with program

4条回答
  •  执念已碎
    2020-12-29 06:19

    I found the correct command from this tutorial.

    The command should be of the form:

    bin/spark-submit --class full.package.name.ClassName analytics-package.jar someargument someArgument
    

提交回复
热议问题