Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/2444#discussion_r17799143
--- Diff: sbin/slaves.sh ---
@@ -67,20 +69,26 @@ fi
if [ "$HOSTLIST" = "" ]; then
if [ "$SPARK_SLAVES" = "" ]; then
- export HOSTLIST="${SPARK_CONF_DIR}/slaves"
+ if [ -f "${SPARK_CONF_DIR}/slaves" ]; then
+ HOSTLIST=`cat "${SPARK_CONF_DIR}/slaves"`
+ else
+ HOSTLIST=localhost
--- End diff --
We should change the docs in `spark-standalone.md` to explain two new
features:
1. You can set SSH_FOREGROUND if you cannot use paswordless SSH (currently,
it says this is required).
2. If there is no `slaves` file in existence, it will launch a single slave
at `localhost` by default.
---
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]