Now that we have installed Apache Spark, we can configure it to work with Elasticsearch and write some data in it.
Indexing data using Apache Spark
Getting ready
You need an up and running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 1, Getting Started.
You also need a working installation of Apache Spark.
How to do it...
To configure Apache Spark to communicate with Elasticsearch, we will perform the following steps:
- We need to download the ElasticSearch Spark JAR, as follows:
wget...