This is an automated email from the ASF dual-hosted git repository.

zhengruifeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 78d2e84dfbbc [SPARK-61383][DOC] Use reserved example domains in 
documentation
78d2e84dfbbc is described below

commit 78d2e84dfbbc79bff0d1a9998394780ed76d3a7c
Author: Nicholas Chammas <[email protected]>
AuthorDate: Wed Nov 11 11:21:29 2026 +0800

    [SPARK-61383][DOC] Use reserved example domains in documentation
    
    ### What changes were proposed in this pull request?
    
    Replace all uses of non-reserved domain names in our docs with 
`example.com`.
    
    ### Why are the changes needed?
    
    The docs currently use a mix of example domain names:
    
    - `mydomain.com`
    - `myhost.com`
    - `myexample.com`
    - `host.com`
    - `nn1.com`, `nn2.com`, `nn3.com`
    
    None of these are reserved, and anybody can register them and use them for 
their own purposes. Our docs give these names reputational boost, and a user 
may open one of these domain names.
    
    Instead, we should use domain names that are [reserved specifically for use 
as examples][1]. This includes `example.com`.
    
    [1]: https://www.rfc-editor.org/info/rfc2606/#section-3
    
    ### Does this PR introduce _any_ user-facing change?
    
    Documentation only.
    
    ### How was this patch tested?
    
    Built and reviewed the docs locally.
    
    <img width="400" 
src="https://github.com/user-attachments/assets/526f96e1-1ba1-4e57-8cb1-6bbdc6c2c743";
 />
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: GitHub Copilot
    
    Closes #60308 from nchammas/example-com.
    
    Authored-by: Nicholas Chammas <[email protected]>
    Signed-off-by: Ruifeng Zheng <[email protected]>
    
    
    skip-checks: true
---
 docs/configuration.md                        |  6 +++---
 docs/running-on-yarn.md                      |  6 +++---
 docs/security.md                             |  4 ++--
 docs/spark-connect-setup.md                  | 12 ++++++------
 sql/connect/docs/client-connection-string.md | 16 ++++++++--------
 5 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/docs/configuration.md b/docs/configuration.md
index c45c823583c1..3801ce1223a5 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -1894,7 +1894,7 @@ Apart from these, the following properties are also 
available, and may be useful
     If the Spark UI should be served through another front-end reverse proxy, 
this is the URL
     for accessing the Spark master UI through that reverse proxy.
     This is useful when running proxy for authentication e.g. an OAuth proxy. 
The URL may contain
-    a path prefix, like <code>http://mydomain.com/path/to/spark/</code>, 
allowing you to serve the
+    a path prefix, like <code>http://example.com/path/to/spark/</code>, 
allowing you to serve the
     UI for multiple Spark clusters and other web applications through the same 
virtual host and
     port.
     Normally, this should be an absolute URL including scheme (http/https), 
host and port.
@@ -1906,8 +1906,8 @@ Apart from these, the following properties are also 
available, and may be useful
     <ul>
       <li>stripping a path prefix before forwarding the request,</li>
       <li>rewriting redirects which point directly to the Spark master,</li>
-      <li>redirecting access from 
<code>http://mydomain.com/path/to/spark</code> to
-      <code>http://mydomain.com/path/to/spark/</code> (trailing slash after 
path prefix); otherwise
+      <li>redirecting access from 
<code>http://example.com/path/to/spark</code> to
+      <code>http://example.com/path/to/spark/</code> (trailing slash after 
path prefix); otherwise
       relative links on the master page do not work correctly.</li>
     </ul>
     This setting affects all the workers and application UIs running in the 
cluster and must be set
diff --git a/docs/running-on-yarn.md b/docs/running-on-yarn.md
index 46541d0bae7d..7d3e83f6334c 100644
--- a/docs/running-on-yarn.md
+++ b/docs/running-on-yarn.md
@@ -298,7 +298,7 @@ To use a custom metrics.properties for the application 
master and executors, upd
   <td><code>spark.yarn.historyServer.address</code></td>
   <td>(none)</td>
   <td>
-    The address of the Spark history server, e.g. <code>host.com:18080</code>. 
The address should not contain a scheme (<code>http://</code>). Defaults to not 
being set since the history server is an optional service. This address is 
given to the YARN ResourceManager when the Spark application finishes to link 
the application from the ResourceManager UI to the Spark history server UI.
+    The address of the Spark history server, e.g. 
<code>example.com:18080</code>. The address should not contain a scheme 
(<code>http://</code>). Defaults to not being set since the history server is 
an optional service. This address is given to the YARN ResourceManager when the 
Spark application finishes to link the application from the ResourceManager UI 
to the Spark history server UI.
     For this property, YARN properties can be used as variables, and these are 
substituted by Spark at runtime. For example, if the Spark history server runs 
on the same node as the YARN ResourceManager, it can be set to 
<code>${hadoopconf-yarn.resourcemanager.hostname}:18080</code>.
   </td>
   <td>1.0.0</td>
@@ -834,8 +834,8 @@ staging directory of the Spark application.
   <td>(none)</td>
   <td>
     A comma-separated list of Hadoop filesystems for whose hosts will be 
excluded from delegation
-    token renewal at resource scheduler. For example, 
<code>spark.yarn.kerberos.renewal.excludeHadoopFileSystems=hdfs://nn1.com:8032,
-    hdfs://nn2.com:8032</code>. This is known to work under YARN for now, so 
YARN Resource Manager won't renew tokens for the application.
+    token renewal at resource scheduler. For example, 
<code>spark.yarn.kerberos.renewal.excludeHadoopFileSystems=hdfs://nn1.example.com:8032,
+    hdfs://nn2.example.com:8032</code>. This is known to work under YARN for 
now, so YARN Resource Manager won't renew tokens for the application.
     Note that as resource scheduler does not renew token, so any application 
running longer than the original token expiration that tries
     to use that token will likely fail.
   </td>
diff --git a/docs/security.md b/docs/security.md
index bbf2f76e91b0..d5901a6dfbad 100644
--- a/docs/security.md
+++ b/docs/security.md
@@ -1039,8 +1039,8 @@ The following options provides finer-grained control for 
this feature:
   <td>(none)</td>
   <td>
     A comma-separated list of secure Hadoop filesystems your Spark application 
is going to access. For
-    example, 
<code>spark.kerberos.access.hadoopFileSystems=hdfs://nn1.com:8032,hdfs://nn2.com:8032,
-    webhdfs://nn3.com:50070</code>. The Spark application must have access to 
the filesystems listed
+    example, 
<code>spark.kerberos.access.hadoopFileSystems=hdfs://nn1.example.com:8032,hdfs://nn2.example.com:8032,
+    webhdfs://nn3.example.com:50070</code>. The Spark application must have 
access to the filesystems listed
     and Kerberos must be properly configured to be able to access them (either 
in the same realm
     or in a trusted realm). Spark acquires security tokens for each of the 
filesystems so that
     the Spark application can access those remote Hadoop filesystems.
diff --git a/docs/spark-connect-setup.md b/docs/spark-connect-setup.md
index 01cff38b6cf9..171df72181fd 100644
--- a/docs/spark-connect-setup.md
+++ b/docs/spark-connect-setup.md
@@ -221,7 +221,7 @@ The SPARK_REMOTE environment variable can be set on the 
client machine to custom
 connection that is initialized at REPL startup.
 
 ```bash
-export SPARK_REMOTE="sc://myhost.com:443/;token=ABCDEFG"
+export SPARK_REMOTE="sc://example.com:443/;token=ABCDEFG"
 ./bin/spark-shell
 ```
 
@@ -234,14 +234,14 @@ The connection may also be programmatically created using 
_SparkSession#builder_
 <div data-lang="python"  markdown="1">
 ```python
 from pyspark.sql import SparkSession
-spark = 
SparkSession.builder.remote("sc://myhost.com:443/;token=ABCDEFG").getOrCreate()
+spark = 
SparkSession.builder.remote("sc://example.com:443/;token=ABCDEFG").getOrCreate()
 ```
 </div>
 
 <div data-lang="scala"  markdown="1">
 ```scala
 @ import org.apache.spark.sql.SparkSession
-@ val spark = 
SparkSession.builder.remote("sc://myhost.com:443/;token=ABCDEFG").getOrCreate()
+@ val spark = 
SparkSession.builder.remote("sc://example.com:443/;token=ABCDEFG").getOrCreate()
 ```
 </div>
 </div>
@@ -479,7 +479,7 @@ The example below uses the Python client, which exposes 
gRPC channel options dir
 from pyspark.sql.connect.session import SparkSession
 from pyspark.sql.connect.client import DefaultChannelBuilder
 
-cb = DefaultChannelBuilder("sc://myhost.com:443")
+cb = DefaultChannelBuilder("sc://example.com:443")
 cb.setChannelOption("grpc.default_authority", "sparkconnect")  # routing tag
 spark = SparkSession.builder.channelBuilder(cb).getOrCreate()
 ```
@@ -510,8 +510,8 @@ real server hostname (used for certificate verification and 
SNI) and `grpc.defau
 to the routing tag.
 
 ```python
-cb = DefaultChannelBuilder("sc://myhost.com:443/;use_ssl=true")
-cb.setChannelOption("grpc.ssl_target_name_override", "myhost.com")  # 
certificate verification / SNI
+cb = DefaultChannelBuilder("sc://example.com:443/;use_ssl=true")
+cb.setChannelOption("grpc.ssl_target_name_override", "example.com")  # 
certificate verification / SNI
 cb.setChannelOption("grpc.default_authority", "sparkconnect")       # routing 
tag
 spark = SparkSession.builder.channelBuilder(cb).getOrCreate()
 ```
diff --git a/sql/connect/docs/client-connection-string.md 
b/sql/connect/docs/client-connection-string.md
index 7d246434ddd3..793482c2e168 100644
--- a/sql/connect/docs/client-connection-string.md
+++ b/sql/connect/docs/client-connection-string.md
@@ -43,7 +43,7 @@ sc://host:port/;param1=value;param2=value
       address as well.
     </td>
     <td>
-      <pre>myexample.com</pre>
+      <pre>example.com</pre>
       <pre>127.0.0.1</pre>
     </td>
   </tr>
@@ -153,30 +153,30 @@ sc://host:port/;param1=value;param2=value
 Below we capture valid configuration examples, explaining how the connection 
string
 will be used when configuring the Spark Connect client.
 
-The below example connects to port **`15002`** on **myhost.com**.
+The below example connects to port **`15002`** on **example.com**.
 ```python
-server_url = "sc://myhost.com/"
+server_url = "sc://example.com/"
 ```
 
 The next example configures the connection to use a different port with SSL.
 
 ```python
-server_url = "sc://myhost.com:443/;use_ssl=true"
+server_url = "sc://example.com:443/;use_ssl=true"
 ```
 
 ```python
-server_url = "sc://myhost.com:443/;use_ssl=true;token=ABCDEFG"
+server_url = "sc://example.com:443/;use_ssl=true;token=ABCDEFG"
 ```
 
 The next example tunes the gRPC keepalive settings, e.g. to detect a dead 
connection faster
 than the 60s/20s default, or to disable it entirely.
 
 ```python
-server_url = 
"sc://myhost.com:443/;grpc_keepalive_time_ms=30000;grpc_keepalive_timeout_ms=10000"
+server_url = 
"sc://example.com:443/;grpc_keepalive_time_ms=30000;grpc_keepalive_timeout_ms=10000"
 ```
 
 ```python
-server_url = "sc://myhost.com:443/;grpc_keepalive_enabled=false"
+server_url = "sc://example.com:443/;grpc_keepalive_enabled=false"
 ```
 
 ### Invalid Examples
@@ -186,6 +186,6 @@ cannot be configured to remain compatible with the GRPC 
standard and HTTP. For
 example the following examples are invalid.
 
 ```python
-server_url = "sc://myhost.com:443/mypathprefix/;token=AAAAAAA"
+server_url = "sc://example.com:443/mypathprefix/;token=AAAAAAA"
 ```
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to