Skip to content

Commit

Permalink
[SPARK-45934][DOCS] Fix Spark Standalone documentation table layout
Browse files Browse the repository at this point in the history
This PR fixes `Spark Standalone` documentation table layout.

**BEFORE**
- https://spark.apache.org/docs/3.5.0/spark-standalone.html

**AFTER**
- Spark Standalone
<img width="965" alt="Screenshot 2023-11-15 at 2 40 59 AM" src="https://github.com/apache/spark/assets/9700541/281ca898-f252-47c2-8cf3-0504bcdcbfb3">

No.

Manual review.

No.

Closes apache#43814 from dongjoon-hyun/SPARK-45934.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit e8c2a59)
Signed-off-by: Dongjoon Hyun <[email protected]>
  • Loading branch information
dongjoon-hyun committed Nov 15, 2023
1 parent e38310c commit a9f95e8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/spark-standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,15 @@ SPARK_MASTER_OPTS supports the following system properties:
<td>0.6.2</td>
</tr>
<tr>
<td><code>spark.worker.resource.{resourceName}.amount</code></td>
<td><code>spark.worker.resource.{name}.amount</code></td>
<td>(none)</td>
<td>
Amount of a particular resource to use on the worker.
</td>
<td>3.0.0</td>
</tr>
<tr>
<td><code>spark.worker.resource.{resourceName}.discoveryScript</code></td>
<td><code>spark.worker.resource.{name}.discoveryScript</code></td>
<td>(none)</td>
<td>
Path to resource discovery script, which is used to find a particular resource while worker starting up.
Expand All @@ -275,8 +275,10 @@ SPARK_MASTER_OPTS supports the following system properties:
<td>(none)</td>
<td>
Path to resources file which is used to find various resources while worker starting up.
The content of resources file should be formatted like <code>
[{"id":{"componentName": "spark.worker","resourceName":"gpu"},"addresses":["0","1","2"]}]</code>.
The content of resources file should be formatted like
<code>[{"id":{"componentName":</code>
<code>"spark.worker", "resourceName":"gpu"},</code>
<code>"addresses":["0","1","2"]}]</code>.
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.
Expand Down

0 comments on commit a9f95e8

Please sign in to comment.