I have an app that connects to an elastic search node on another server via the Transport client using the JAVA API. The node has shield security enabled, so I use maven to fetch the shield jar. My app runs fine. However, now I'm trying to set up integration tests for the build process of my app. Thus instead of trying the Transport client, I try to run a local node to run my tests against. However, the local node complaints about the following issues.
This I'm wondering whether it's possible to just disable shield for integration tests. I tried the following, but it didn't work. Any help is appreciated.
nodeBuilder().local(true).settings(ImmutableSettings.builder()
.put("shield.enabled", false)).build()
What version of Elasticsearch and Shield are you using? shield.enabled
works for me; I just did the following in a simple maven project with ES 1.5.2 and Shield 1.2.0
final Node node = NodeBuilder.nodeBuilder()
.settings(ImmutableSettings.builder().put("shield.enabled", false))
.local(true).node();
Client client = node.client();
ClusterHealthResponse response = client.admin().cluster().prepareHealth().get();
System.out.println(response.toString());
No errors about licensing when doing this. If you still have some errors can you add them to your original post?