ich x-Pack in mein Elasticsearch installiert haben: curl --user u:p 'localhost:9200/_xpack'
:Elasticsearch wth X-Pack: Java API
{
"build" : {
"hash" : "e016ba5",
"date" : "2017-01-24T20:17:08.168Z"
},
"license" : {
"uid" : "a5a93479-cdd1-44c0-8669-78a3ae1cbfeb",
"type" : "trial",
"mode" : "trial",
"status" : "active",
"expiry_date_in_millis" : 1491567639615
},
"features" : {
"graph" : {
"description" : "Graph Data Exploration for the Elastic Stack",
"available" : true,
"enabled" : false
},
"monitoring" : {
"description" : "Monitoring for the Elastic Stack",
"available" : true,
"enabled" : false
},
"security" : {
"description" : "Security for the Elastic Stack",
"available" : true,
"enabled" : true
},
"watcher" : {
"description" : "Alerting, Notification and Automation for the Elastic Stack",
"available" : true,
"enabled" : false
}
},
"tagline" : "You know, for X"
}
Dies ist mein Code, um meine Kunden zu bauen:
Settings settings = Settings.builder()
.put(ElasticsearchApplicationResources.ELASTICSEARCH_PROPERTY_CLUSTER_NAME, this.configurationResources.getElasticsearchCluserName())
.put("xpack.security.user", "elastic:changeme")
.build();
List<InetSocketTransportAddress> addresses = ...;
try {
this.elasticsearchClient = new PreBuiltTransportClient(settings)
.addTransportAddresses(addresses.toArray(new InetSocketTransportAddress[addresses.size()]));
}catch (Exception e)
{
System.out.print(e);
}
Aktuell , Bekomme ich diese Nachricht:
java.lang.IllegalArgumentException: unbekannte Einstellung [xpack.security.user] Bitte überprüfen Sie, ob alle erforderlichen Plugins inst alled, oder überprüfen Sie die breaking changes Dokumentation für entfernte Einstellungen
Irgendwelche Ideen?