diff --git a/docs/spark-standalone.md b/docs/spark-standalone.md index bc13693e2805..c96839c6e951 100644 --- a/docs/spark-standalone.md +++ b/docs/spark-standalone.md @@ -299,7 +299,7 @@ SPARK_MASTER_OPTS supports the following system properties: 0.8.0 - spark.worker.resource.{resourceName}.amount + spark.worker.resource.{name}.amount (none) Amount of a particular resource to use on the worker. @@ -307,7 +307,7 @@ SPARK_MASTER_OPTS supports the following system properties: 3.0.0 - spark.worker.resource.{resourceName}.discoveryScript + spark.worker.resource.{name}.discoveryScript (none) Path to resource discovery script, which is used to find a particular resource while worker starting up. @@ -320,8 +320,10 @@ SPARK_MASTER_OPTS supports the following system properties: (none) Path to resources file which is used to find various resources while worker starting up. - The content of resources file should be formatted like - [{"id":{"componentName": "spark.worker","resourceName":"gpu"},"addresses":["0","1","2"]}]. + The content of resources file should be formatted like + [{"id":{"componentName": + "spark.worker", "resourceName":"gpu"}, + "addresses":["0","1","2"]}]. If a particular resource is not found in the resources file, the discovery script would be used to find that resource. If the discovery script also does not find the resources, the worker will fail to start up.