You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ru...@apache.org on 2022/11/01 01:33:13 UTC

[spark-website] branch asf-site updated: Use docker image in the example of SQL/Scala/Java (#424)

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

ruifengz pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/spark-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 58384eb35 Use docker image in the example of SQL/Scala/Java (#424)
58384eb35 is described below

commit 58384eb357d0705223d741039d32e33529683f1f
Author: Ruifeng Zheng <ru...@apache.org>
AuthorDate: Tue Nov 1 09:33:08 2022 +0800

    Use docker image in the example of SQL/Scala/Java (#424)
    
    * init
    
    * del
    
    * address comments
    
    * Apply suggestions from code review
    
    Co-authored-by: Liang-Chi Hsieh <vi...@gmail.com>
    
    Co-authored-by: Liang-Chi Hsieh <vi...@gmail.com>
---
 index.md        | 6 +++---
 site/index.html | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/index.md b/index.md
index 1aceb4c30..8b2dcd244 100644
--- a/index.md
+++ b/index.md
@@ -155,7 +155,7 @@ filtered_df.summary().show()
             <div class="tab-pane fade" id="nav-sql" role="tabpanel" aria-labelledby="nav-sql-tab">
                 <div class="mb-2 title">Run now</div>
                 <div class="code">
-                    <p>$ SPARK-HOME/bin/spark-sql</p>
+                    <p>$ docker run -it --rm apache/spark /opt/spark/bin/spark-sql</p>
                     <p>spark-sql></p>
                 </div>
                 <div class="examples mt-5">
@@ -175,7 +175,7 @@ FROM json.`logs.json`
             <div class="tab-pane fade" id="nav-scala" role="tabpanel" aria-labelledby="nav-scala-tab">
                 <div class="mb-2 title">Run now</div>
                 <div class="code">
-                    <p>$ SPARK-HOME/bin/spark-shell</p>
+                    <p>$ docker run -it --rm apache/spark /opt/spark/bin/spark-shell</p>
                     <p>scala></p>
                 </div>
                 <div class="examples mt-5">
@@ -193,7 +193,7 @@ df.where("age > 21")
             <div class="tab-pane fade" id="nav-java" role="tabpanel" aria-labelledby="nav-java-tab">
                 <div class="mb-2 title">Run now</div>
                 <div class="code">
-                    <p>$ SPARK-HOME/bin/spark-shell</p>
+                    <p>$ docker run -it --rm apache/spark /opt/spark/bin/spark-shell</p>
                     <p>scala></p>
                 </div>
                 <div class="examples mt-5">
diff --git a/site/index.html b/site/index.html
index 4571fe6a6..7c9f69009 100644
--- a/site/index.html
+++ b/site/index.html
@@ -273,7 +273,7 @@
             <div class="tab-pane fade" id="nav-sql" role="tabpanel" aria-labelledby="nav-sql-tab">
                 <div class="mb-2 title">Run now</div>
                 <div class="code">
-                    <p>$ SPARK-HOME/bin/spark-sql</p>
+                    <p>$ docker run -it --rm apache/spark /opt/spark/bin/spark-sql</p>
                     <p>spark-sql&gt;</p>
                 </div>
                 <div class="examples mt-5">
@@ -293,7 +293,7 @@
             <div class="tab-pane fade" id="nav-scala" role="tabpanel" aria-labelledby="nav-scala-tab">
                 <div class="mb-2 title">Run now</div>
                 <div class="code">
-                    <p>$ SPARK-HOME/bin/spark-shell</p>
+                    <p>$ docker run -it --rm apache/spark /opt/spark/bin/spark-shell</p>
                     <p>scala&gt;</p>
                 </div>
                 <div class="examples mt-5">
@@ -310,7 +310,7 @@
             <div class="tab-pane fade" id="nav-java" role="tabpanel" aria-labelledby="nav-java-tab">
                 <div class="mb-2 title">Run now</div>
                 <div class="code">
-                    <p>$ SPARK-HOME/bin/spark-shell</p>
+                    <p>$ docker run -it --rm apache/spark /opt/spark/bin/spark-shell</p>
                     <p>scala&gt;</p>
                 </div>
                 <div class="examples mt-5">


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org