I am trying to create an index using Elastic Search Java API.
My code is similar to this:
String indexName = "clients";
Node node = new NodeBuilder().clusterName(this.clusterName).client(true).node();
Client client = node.client();
client.admin().indices().prepareCreate(indexName).execute().actionGet(); // It fails here
if (client != null) client.close();
if (node != null) node.close();
But every time, I execute that I get this error: http://screencast.com/t/MfnTccwho
What am I doing wrong?