hey, @aarondav , thank you so much for your comments, I fixed the indention and the OPTION issue (I changed the name to SPARK_SHELL_OPTS to avoid mess up with the user-defined variables )

For the memory control of spark_shell driver, do we have an existing method to control "local" driver memory usage? I think we can specify that for in-cluster driver, but for local driver, how to do that as we have no worker process to monitor the machine~