Installationedit
Elasticsearch on YARN binaries can be obtained either by downloading them from the elastic.co site as a ZIP (containing project jars, sources and documentation) or by using any Maven-compatible tool with the following dependency:
<dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch-yarn</artifactId> <version>5.1.1</version> </dependency>
The jar above contains Elasticsearch on YARN and does not require any other dependencies at runtime; in other words it can be used as is.
Development Buildsedit
Development (or nightly or snapshots) builds are published daily at sonatype-oss repository (see below). Make sure to use snapshot versioning:
<dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch-yarn</artifactId> <version>5.1.2.BUILD-SNAPSHOT</version></dependency>
but also enable the dedicated snapshots repository :