Skip to content

Commit eee8ee6

Browse files
committed
[SPARK-33397][DOC] Fix generating md to html for available-patterns-for-shs-custom-executor-log-url
1 parent 84dc374 commit eee8ee6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/running-on-yarn.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -584,48 +584,48 @@ To use a custom metrics.properties for the application master and executors, upd
584584
<table class="table">
585585
<tr><th>Pattern</th><th>Meaning</th></tr>
586586
<tr>
587-
<td>{{HTTP_SCHEME}}</td>
588-
<td>`http://` or `https://` according to YARN HTTP policy. (Configured via `yarn.http.policy`)</td>
587+
<td>&#123;&#123;HTTP_SCHEME&#125;&#125;</td>
588+
<td><code>http://</code> or <code>https://</code> according to YARN HTTP policy. (Configured via <code>yarn.http.policy</code>)</td>
589589
</tr>
590590
<tr>
591-
<td>{{NM_HOST}}</td>
591+
<td>&#123;&#123;NM_HOST&#125;&#125;</td>
592592
<td>The "host" of node where container was run.</td>
593593
</tr>
594594
<tr>
595-
<td>{{NM_PORT}}</td>
595+
<td>&#123;&#123;NM_PORT&#125;&#125;</td>
596596
<td>The "port" of node manager where container was run.</td>
597597
</tr>
598598
<tr>
599-
<td>{{NM_HTTP_PORT}}</td>
599+
<td>&#123;&#123;NM_HTTP_PORT&#125;&#125;</td>
600600
<td>The "port" of node manager's http server where container was run.</td>
601601
</tr>
602602
<tr>
603-
<td>{{NM_HTTP_ADDRESS}}</td>
603+
<td>&#123;&#123;NM_HTTP_ADDRESS&#125;&#125;</td>
604604
<td>Http URI of the node on which the container is allocated.</td>
605605
</tr>
606606
<tr>
607-
<td>{{CLUSTER_ID}}</td>
608-
<td>The cluster ID of Resource Manager. (Configured via `yarn.resourcemanager.cluster-id`)</td>
607+
<td>&#123;&#123;CLUSTER_ID&#125;&#125;</td>
608+
<td>The cluster ID of Resource Manager. (Configured via <code>yarn.resourcemanager.cluster-id</code>)</td>
609609
</tr>
610610
<tr>
611-
<td>{{CONTAINER_ID}}</td>
611+
<td>&#123;&#123;CONTAINER_ID&#125;&#125;</td>
612612
<td>The ID of container.</td>
613613
</tr>
614614
<tr>
615-
<td>{{USER}}</td>
616-
<td>'SPARK_USER' on system environment.</td>
615+
<td>&#123;&#123;USER&#125;&#125;</td>
616+
<td><code>SPARK_USER</code> on system environment.</td>
617617
</tr>
618618
<tr>
619-
<td>{{FILE_NAME}}</td>
620-
<td>`stdout`, `stderr`.</td>
619+
<td>&#123;&#123;FILE_NAME&#125;&#125;</td>
620+
<td><code>stdout</code>, <code>stderr</code>.</td>
621621
</tr>
622622
</table>
623623

624624
For example, suppose you would like to point log url link to Job History Server directly instead of let NodeManager http server redirects it, you can configure `spark.history.custom.executor.log.url` as below:
625625

626-
`{{HTTP_SCHEME}}<JHS_HOST>:<JHS_PORT>/jobhistory/logs/{{NM_HOST}}:{{NM_PORT}}/{{CONTAINER_ID}}/{{CONTAINER_ID}}/{{USER}}/{{FILE_NAME}}?start=-4096`
626+
<code>&#123;&#123;HTTP_SCHEME&#125;&#125;<JHS_HOST>:<JHS_PORT>/jobhistory/logs/&#123;&#123;NM_HOST&#125;&#125;:&#123;&#123;NM_PORT&#125;&#125;/&#123;&#123;CONTAINER_ID&#125;&#125;/&#123;&#123;CONTAINER_ID&#125;&#125;/&#123;&#123;USER&#125;&#125;/&#123;&#123;FILE_NAME&#125;&#125;?start=-4096</code>
627627

628-
NOTE: you need to replace `<JHS_POST>` and `<JHS_PORT>` with actual value.
628+
NOTE: you need to replace `<JHS_POST>` and `<JHS_PORT>` with actual value.
629629

630630
# Resource Allocation and Configuration Overview
631631

0 commit comments

Comments
 (0)