Github user OopsOutOfMemory commented on the pull request:
https://github.com/apache/spark/pull/3823#issuecomment-68256422
Hi, @WangTaoTheTonic : )
This make sense to me, like hadoop also have HADOOP_CONF_DIR.
But I prefer to `check` if the `SPARK_CONF_DIR` `directory` is exists
first, not only check the `configuration file`.
If there are many files under SPARK_CONF_DIR need to be added in
spark-submit in the future, you will need to check each file is exists or not.
you can do it like :
```shell
if [ ! -d "$SPARK_CONF_DIR" ]; then
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]