summaryrefslogtreecommitdiff
path: root/site/index.html
diff options
context:
space:
mode:
authorSean R. Owen <srowen@apache.org>2015-03-02 22:06:52 +0000
committerSean R. Owen <srowen@apache.org>2015-03-02 22:06:52 +0000
commitfb97e0ec8a74c26b98a3627668443b1263f9ee14 (patch)
tree5d14f23979ef628b849fa7680d183476e8b805b3 /site/index.html
parent1ebfe3555cc40800978b77ca79375ec253c96864 (diff)
downloadspark-website-fb97e0ec8a74c26b98a3627668443b1263f9ee14.tar.gz
spark-website-fb97e0ec8a74c26b98a3627668443b1263f9ee14.tar.bz2
spark-website-fb97e0ec8a74c26b98a3627668443b1263f9ee14.zip
SPARK-4992 Improve var naming in Python example; change other var names to match
Diffstat (limited to 'site/index.html')
-rw-r--r--site/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/site/index.html b/site/index.html
index 8af128452..c3360efd5 100644
--- a/site/index.html
+++ b/site/index.html
@@ -212,9 +212,9 @@
<div class="col-md-5 col-sm-5 col-padded-top col-center">
<div style="text-align: left; display: inline-block;">
<div class="code">
- file = spark.textFile(<span class="string">"hdfs://..."</span>)<br />
+ text_file = spark.textFile(<span class="string">"hdfs://..."</span>)<br />
&nbsp;<br />
- file.<span class="sparkop">flatMap</span>(<span class="closure">lambda line: line.split()</span>)<br />
+ text_file.<span class="sparkop">flatMap</span>(<span class="closure">lambda line: line.split()</span>)<br />
&nbsp;&nbsp;&nbsp;&nbsp;.<span class="sparkop">map</span>(<span class="closure">lambda word: (word, 1)</span>)<br />
&nbsp;&nbsp;&nbsp;&nbsp;.<span class="sparkop">reduceByKey</span>(<span class="closure">lambda a, b: a+b</span>)
</div>
@@ -222,9 +222,9 @@
</div>
<!--
<div class="code" style="margin-top: 20px; text-align: left; display: inline-block;">
- file = spark.textFile(<span class="string">"hdfs://..."</span>)<br/>
+ text_file = spark.textFile(<span class="string">"hdfs://..."</span>)<br/>
&nbsp;<br/>
- file.<span class="sparkop">filter</span>(<span class="closure">lambda line: "ERROR" in line</span>)<br/>
+ text_file.<span class="sparkop">filter</span>(<span class="closure">lambda line: "ERROR" in line</span>)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;.<span class="sparkop">count</span>()
</div>
-->