我正在尝试使用Elastic Search Java API创建索引。创建索引 - 弹性搜索 - Java API
我的代码是与此类似:
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();
但每一次,我执行我得到这个错误:http://screencast.com/t/MfnTccwho
我在做什么错?
请张贴错误到正确的问题,而不是一个一个的图片链接。 – skaffman