You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apache Spark is a fast and general-purpose cluster computing system.
9
-
It provides high-level APIs in Java, Scalaand Python,
9
+
It provides high-level APIs in Java, Scala, Python and R,
10
10
and an optimized engine that supports general execution graphs.
11
11
It also supports a rich set of higher-level tools including [Spark SQL](sql-programming-guide.html) for SQL and structured data processing, [MLlib](mllib-guide.html) for machine learning, [GraphX](graphx-programming-guide.html) for graph processing, and [Spark Streaming](streaming-programming-guide.html).
12
12
@@ -20,13 +20,13 @@ Spark runs on both Windows and UNIX-like systems (e.g. Linux, Mac OS). It's easy
20
20
locally on one machine --- all you need is to have `java` installed on your system `PATH`,
21
21
or the `JAVA_HOME` environment variable pointing to a Java installation.
22
22
23
-
Spark runs on Java 6+ and Python 2.6+. For the Scala API, Spark {{site.SPARK_VERSION}} uses
23
+
Spark runs on Java 6+, Python 2.6+ and R 3.1+. For the Scala API, Spark {{site.SPARK_VERSION}} uses
24
24
Scala {{site.SCALA_BINARY_VERSION}}. You will need to use a compatible Scala version
25
25
({{site.SCALA_BINARY_VERSION}}.x).
26
26
27
27
# Running the Examples and Shell
28
28
29
-
Spark comes with several sample programs. Scala, Javaand Python examples are in the
29
+
Spark comes with several sample programs. Scala, Java, Python and R examples are in the
30
30
`examples/src/main` directory. To run one of the Java or Scala sample programs, use
31
31
`bin/run-example <class> [params]` in the top-level Spark directory. (Behind the scenes, this
32
32
invokes the more general
@@ -54,6 +54,15 @@ Example applications are also provided in Python. For example,
Spark also provides a R API. To run Spark interactively in a R interpreter, use
58
+
`bin/sparkR`:
59
+
60
+
./bin/sparkR --master local[2]
61
+
62
+
Example applications are also provided in R. For example,
63
+
64
+
./bin/spark-submit examples/src/main/r/pi.R 10
65
+
57
66
# Launching on a Cluster
58
67
59
68
The Spark [cluster mode overview](cluster-overview.html) explains the key concepts in running on a cluster.
@@ -71,7 +80,7 @@ options for deployment:
71
80
72
81
*[Quick Start](quick-start.html): a quick introduction to the Spark API; start here!
73
82
*[Spark Programming Guide](programming-guide.html): detailed overview of Spark
74
-
in all supported languages (Scala, Java, Python)
83
+
in all supported languages (Scala, Java, Python, R)
75
84
* Modules built on Spark:
76
85
*[Spark Streaming](streaming-programming-guide.html): processing real-time data streams
77
86
*[Spark SQL and DataFrames](sql-programming-guide.html): support for structured data and relational queries
@@ -125,4 +134,5 @@ options for deployment:
125
134
available online for free.
126
135
*[Code Examples](http://spark.apache.org/examples.html): more are also available in the `examples` subfolder of Spark ([Scala]({{site.SPARK_GITHUB_URL}}/tree/master/examples/src/main/scala/org/apache/spark/examples),
0 commit comments