Failed to load latest commit information.
src [elasticsearch] require path.home in embedded mode Jul 12, 2016
pom.xml [version] update master to 0.13.0-SNAPSHOT. Nov 18, 2016

Quick Start

This section describes how to run YCSB on Elasticsearch running locally.

1. Set Up YCSB

Clone the YCSB git repository and compile:

git clone git://
mvn clean package

2. Run YCSB

Now you are ready to run! First, load the data:

./bin/ycsb load elasticsearch -s -P workloads/workloada -p path.home=<path>

Then, run the workload:

./bin/ycsb run elasticsearch -s -P workloads/workloada -p path.home=<path>

Note that the <path> specified in each execution should be the same.

The Elasticsearch binding has two modes of operation, embedded mode and remote mode. In embedded mode, the client creates an embedded instance of Elasticsearch that uses the specified <path> to persist data between executions.

In remote mode, the client will hit a standalone instance of Elasticsearch. To use remote mode, add the flags -p es.remote=true and specify a hosts list via -p es.hosts.list=<hostname1:port1>,...,<hostnamen:portn>.

./bin/ycsb run elasticsearch -s -P workloads/workloada -p es.remote=true \
-p es.hosts.list=<hostname1:port1>,...,<hostnamen:portn>`

Note that es.hosts.list defaults to localhost:9300. For further configuration see below:

Defaults Configuration

The default setting for the Elasticsearch node that is created is as follows:
es.hosts.list=localhost:9300 (only applies if es.remote=true)

Custom Configuration

If you wish to customize the settings used to create the Elasticsearch node you can created a new property file that contains your desired Elasticsearch node settings and pass it in via the parameter to 'bin/ycsb' script. Note that the default properties will be kept if you don't explicitly overwrite them.

Assuming that we have a properties file named "" that contains custom Elasticsearch node configuration you can execute the following to pass it into the Elasticsearch client:

./bin/ycsb run elasticsearch -P workloads/workloada -P -s

If you wish to change the default index name you can set the following property:


If you wish to run against a remote cluster you can set the following property:


By default this will use localhost:9300 as a seed node to discover the cluster. You can also specify


(a comma-separated list of host/port pairs) to change this.