title: Create Index - Elastic Search - Java API
body: <p>I am trying to create an index using Elastic Search Java API.</p>
  
  <p>My code is similar to this:</p>
  
  <pre><code>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();
  </code></pre>
  
  <p>But every time, I execute that I get this error: <a href="http://screencast.com/t/MfnTccwho" rel="nofollow">http://screencast.com/t/MfnTccwho</a></p>
  
  <p>What am I doing wrong?</p>