I code Spark's work in Scala and you need to send some argument via the command line in the JSON file format, for example, application name, wizard and some other variables.
./bin/spark-submit --name "My app" --master local[4] --conf spark.eventLog.enabled=false --conf "spark.executor.extraJavaOptions=-XX:+PrintGCDetails -XX:+PrintGCTimeStamps" myApp.jar
I need to send the application name, master and all arguments to a single JSON file, for example:
$SPARK_HOME/bin/spark-submit --properties-file property.conf
Is it possible? How? Can someone explain a simple example?
source
share