Skip to content

Commit a9f95e8

Browse files
committed
[SPARK-45934][DOCS] Fix Spark Standalone documentation table layout
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 #43814 from dongjoon-hyun/SPARK-45934. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit e8c2a59) Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
1 parent e38310c commit a9f95e8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/spark-standalone.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,15 @@ SPARK_MASTER_OPTS supports the following system properties:
254254
<td>0.6.2</td>
255255
</tr>
256256
<tr>
257-
<td><code>spark.worker.resource.{resourceName}.amount</code></td>
257+
<td><code>spark.worker.resource.{name}.amount</code></td>
258258
<td>(none)</td>
259259
<td>
260260
Amount of a particular resource to use on the worker.
261261
</td>
262262
<td>3.0.0</td>
263263
</tr>
264264
<tr>
265-
<td><code>spark.worker.resource.{resourceName}.discoveryScript</code></td>
265+
<td><code>spark.worker.resource.{name}.discoveryScript</code></td>
266266
<td>(none)</td>
267267
<td>
268268
Path to resource discovery script, which is used to find a particular resource while worker starting up.
@@ -275,8 +275,10 @@ SPARK_MASTER_OPTS supports the following system properties:
275275
<td>(none)</td>
276276
<td>
277277
Path to resources file which is used to find various resources while worker starting up.
278-
The content of resources file should be formatted like <code>
279-
[{"id":{"componentName": "spark.worker","resourceName":"gpu"},"addresses":["0","1","2"]}]</code>.
278+
The content of resources file should be formatted like
279+
<code>[{"id":{"componentName":</code>
280+
<code>"spark.worker", "resourceName":"gpu"},</code>
281+
<code>"addresses":["0","1","2"]}]</code>.
280282
If a particular resource is not found in the resources file, the discovery script would be used to
281283
find that resource. If the discovery script also does not find the resources, the worker will fail
282284
to start up.

0 commit comments

Comments
 (0)