Skip to content
Apache Spark
Branch: master
Clone or download
gaborgsomogyi and HyukjinKwon [MINOR][DOC] ForeachBatch doc fix.
## What changes were proposed in this pull request?

ForeachBatch doc is wrongly formatted. This PR formats it.

## How was this patch tested?

```
cd docs
SKIP_API=1 jekyll build
```
Manual webpage check.

Closes #24698 from gaborgsomogyi/foreachbatchdoc.

Authored-by: Gabor Somogyi <gabor.g.somogyi@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
Latest commit 4e7908f May 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github [MINOR][DOCS] Tighten up some key links to the project and download p… May 21, 2019
R [MINOR][DOCS] Tighten up some key links to the project and download p… May 21, 2019
assembly [SPARK-26134][CORE] Upgrading Hadoop to 2.7.4 to fix java.version pro… Nov 22, 2018
bin [SPARK-27626][K8S] Fix `docker-image-tool.sh` to be robust in non-bas… May 3, 2019
build [MINOR][DOCS] Tighten up some key links to the project and download p… May 21, 2019
common [SPARK-27677][CORE] Serve local disk persisted blocks by the external… May 23, 2019
conf [SPARK-27796][MESOS] Remove obsolete spark-mesos Dockerfile example May 21, 2019
core [SPARK-27677][CORE] Serve local disk persisted blocks by the external… May 23, 2019
data [SPARK-22666][ML][SQL] Spark datasource for image format Sep 5, 2018
dev [SPARK-27794][R][DOCS] Use https URL for CRAN repo May 22, 2019
docs [MINOR][DOC] ForeachBatch doc fix. May 24, 2019
examples [MINOR][DOCS] Fix Spark hive example. May 21, 2019
external [SPARK-27794][R][DOCS] Use https URL for CRAN repo May 22, 2019
graphx [SPARK-27682][CORE][GRAPHX][MLLIB] Replace use of collections and met… May 15, 2019
hadoop-cloud [SPARK-27175][BUILD] Upgrade hadoop-3 to 3.2.0 Mar 17, 2019
launcher [SPARK-27610][YARN] Shade netty native libraries May 7, 2019
licenses-binary [SPARK-27358][UI] Update jquery to 1.12.x to pick up security fixes Apr 5, 2019
licenses [SPARK-27557][DOC] Add copy button to Python API docs for easier copy… May 1, 2019
mllib-local [SPARK-19591][ML][MLLIB] Add sample weights to decision trees Jan 25, 2019
mllib [SPARK-27774][CORE][MLLIB] Avoid hardcoded configs May 22, 2019
project [SPARK-26632][CORE] Separate Thread Configurations of Driver and Exec… May 10, 2019
python [SPARK-27711][CORE] Unset InputFileBlockHolder at the end of tasks May 23, 2019
repl [MINOR][REPL] Remove dead code of Spark Repl in Scala 2.11 May 13, 2019
resource-managers [SPARK-23153][K8S] Support client dependencies with a Hadoop Compatib… May 22, 2019
sbin [SPARK-27056][MESOS] Remove start-shuffle-service.sh Mar 9, 2019
sql [SPARK-27732][SQL] Add v2 CreateTable implementation. May 24, 2019
streaming [SPARK-27677][CORE] Serve local disk persisted blocks by the external… May 23, 2019
tools [SPARK-25956] Make Scala 2.12 as default Scala version in Spark 3.0 Nov 15, 2018
.gitattributes [SPARK-3870] EOL character enforcement Oct 31, 2014
.gitignore [MINOR][DOC] Documentation on JVM options for SBT Jan 23, 2019
CONTRIBUTING.md [MINOR][DOCS] Tighten up some key links to the project and download p… May 21, 2019
LICENSE [SPARK-27557][DOC] Add copy button to Python API docs for easier copy… May 1, 2019
LICENSE-binary [SPARK-27611][BUILD] Exclude jakarta.activation:jakarta.activation-ap… May 2, 2019
NOTICE [SPARK-23654][BUILD] remove jets3t as a dependency of spark Aug 16, 2018
NOTICE-binary [SPARK-27054][BUILD][SQL] Remove the Calcite dependency Mar 10, 2019
README.md [MINOR][DOCS] Tighten up some key links to the project and download p… May 21, 2019
appveyor.yml [SPARK-27794][R][DOCS] Use https URL for CRAN repo May 22, 2019
pom.xml [SPARK-26045][BUILD] Leave avro, avro-ipc dependendencies as compile … May 23, 2019
scalastyle-config.xml [SPARK-25986][BUILD] Add rules to ban throw Errors in application code Nov 14, 2018

README.md

Apache Spark

Spark is a unified analytics engine for large-scale data processing. It provides high-level APIs in Scala, Java, Python, and R, and an optimized engine that supports general computation graphs for data analysis. It also supports a rich set of higher-level tools including Spark SQL for SQL and DataFrames, MLlib for machine learning, GraphX for graph processing, and Structured Streaming for stream processing.

https://spark.apache.org/

Jenkins Build AppVeyor Build PySpark Coverage

Online Documentation

You can find the latest Spark documentation, including a programming guide, on the project web page. This README file only contains basic setup instructions.

Building Spark

Spark is built using Apache Maven. To build Spark and its example programs, run:

build/mvn -DskipTests clean package

(You do not need to do this if you downloaded a pre-built package.)

You can build Spark using more than one thread by using the -T option with Maven, see "Parallel builds in Maven 3". More detailed documentation is available from the project site, at "Building Spark".

For general development tips, including info on developing Spark using an IDE, see "Useful Developer Tools".

Interactive Scala Shell

The easiest way to start using Spark is through the Scala shell:

./bin/spark-shell

Try the following command, which should return 1,000,000,000:

scala> spark.range(1000 * 1000 * 1000).count()

Interactive Python Shell

Alternatively, if you prefer Python, you can use the Python shell:

./bin/pyspark

And run the following command, which should also return 1,000,000,000:

>>> spark.range(1000 * 1000 * 1000).count()

Example Programs

Spark also comes with several sample programs in the examples directory. To run one of them, use ./bin/run-example <class> [params]. For example:

./bin/run-example SparkPi

will run the Pi example locally.

You can set the MASTER environment variable when running examples to submit examples to a cluster. This can be a mesos:// or spark:// URL, "yarn" to run on YARN, and "local" to run locally with one thread, or "local[N]" to run locally with N threads. You can also use an abbreviated class name if the class is in the examples package. For instance:

MASTER=spark://host:7077 ./bin/run-example SparkPi

Many of the example programs print usage help if no params are given.

Running Tests

Testing first requires building Spark. Once Spark is built, tests can be run using:

./dev/run-tests

Please see the guidance on how to run tests for a module, or individual tests.

There is also a Kubernetes integration test, see resource-managers/kubernetes/integration-tests/README.md

A Note About Hadoop Versions

Spark uses the Hadoop core library to talk to HDFS and other Hadoop-supported storage systems. Because the protocols have changed in different versions of Hadoop, you must build Spark against the same version that your cluster runs.

Please refer to the build documentation at "Specifying the Hadoop Version and Enabling YARN" for detailed guidance on building for a particular distribution of Hadoop, including building for particular Hive and Hive Thriftserver distributions.

Configuration

Please refer to the Configuration Guide in the online documentation for an overview on how to configure Spark.

Contributing

Please review the Contribution to Spark guide for information on how to get started contributing to the project.

You can’t perform that action at this time.