Github user WangTaoTheTonic commented on a diff in the pull request:
https://github.com/apache/spark/pull/5205#discussion_r27211048
--- Diff: docs/spark-standalone.md ---
@@ -24,7 +24,7 @@ the master's web UI, which is
[http://localhost:8080](http://localhost:8080) by
Similarly, you can start one or more workers and connect them to the
master via:
- ./bin/spark-class org.apache.spark.deploy.worker.Worker spark://IP:PORT
+ ./sbin/start-slave.sh <worker#> <master-spark-URL>
--- End diff --
if we run `./sbin/start-slave.sh <worker#> <master-spark-URL>`, the data
flow would be:
* in start-slave.sh
"$sbin"/spark-daemon.sh start org.apache.spark.deploy.worker.Worker
<worker#> <master-spark-URL>
* in spark-daemon.sh
----->
option=start command=org.apache.spark.deploy.worker.Worker
instance=<worker#>
run_command class <master-spark-URL>
----->
nohup nice -n "$SPARK_NICENESS" "$SPARK_PREFIX"/bin/spark-class
org.apache.spark.deploy.worker.Worker <master-spark-URL> >> "$log" 2>&1 <
/dev/null &
So we can tell except once more `load-spark-env.sh`(also is done in
`spark-class`) and log/backgroud handle process, these two ways are same
actually.
---
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]