Skip to content

Commit

Permalink
Version bump for 7.8.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pugnascotia committed Jun 18, 2020
1 parent bf3ee25 commit ed61ad5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Grab the latest nightly build from the [repository](http://oss.sonatype.org/cont
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop</artifactId>
<version>7.8.0-SNAPSHOT</version>
<version>7.8.1-SNAPSHOT</version>
</dependency>
```

Expand Down Expand Up @@ -243,10 +243,10 @@ val playlist = df.filter(df("category").equalTo("pikes").and(df("year").geq(2016
Import the `org.elasticsearch.spark._` package to gain `savetoEs` methods on your `RDD`s:

```scala
import org.elasticsearch.spark._
import org.elasticsearch.spark._

val conf = ...
val sc = new SparkContext(conf)
val sc = new SparkContext(conf)

val numbers = Map("one" -> 1, "two" -> 2, "three" -> 3)
val airports = Map("OTP" -> "Otopeni", "SFO" -> "San Fran")
Expand All @@ -271,11 +271,11 @@ In a Java environment, use the `org.elasticsearch.spark.rdd.java.api` package, i
To read data from ES, create a dedicated `RDD` and specify the query as an argument.

```java
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.JavaSparkContext;
import org.elasticsearch.spark.rdd.api.java.JavaEsSpark;

SparkConf conf = ...
JavaSparkContext jsc = new JavaSparkContext(conf);
JavaSparkContext jsc = new JavaSparkContext(conf);

JavaPairRDD<String, Map<String, Object>> esRDD = JavaEsSpark.esRDD(jsc, "radio/artists");
```
Expand All @@ -297,7 +297,7 @@ import org.elasticsearch.spark.rdd.api.java.JavaEsSpark;
SparkConf conf = ...
JavaSparkContext jsc = new JavaSparkContext(conf);

Map<String, ?> numbers = ImmutableMap.of("one", 1, "two", 2);
Map<String, ?> numbers = ImmutableMap.of("one", 1, "two", 2);
Map<String, ?> airports = ImmutableMap.of("OTP", "Otopeni", "SFO", "San Fran");

JavaRDD<Map<String, ?>> javaRDD = jsc.parallelize(ImmutableList.of(numbers, airports));
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/esh-version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
eshadoop = 7.8.0
elasticsearch = 7.8.0
build-tools = 7.8.0
eshadoop = 7.8.1
elasticsearch = 7.8.1
build-tools = 7.8.1

0 comments on commit ed61ad5

Please sign in to comment.