When submitting jobs to the Spark cluster how can I increase the memory for the Job

When running the Job you can use parameters like below for the job conf:

--conf spark.driver.memory=8g --conf spark.executor.memory=16g