I am running ES on my local dev machine with the following elasticsearch.yml:
cluster.name: myCluster path.data: /usr/local/var/elasticsearch path.logs: /usr/local/var/log/elasticsearch/ script.inline: on
I am trying to connect to the cluster using a Node(Client):
NodeBuilder.nodeBuilder() .settings(Settings.builder() .put("cluster.name", "myCluster") .put("node.name", "myNode") .put("path.home", "some/dir") .put("discovery.zen.ping.unicast.hosts", "localhost") .build()) .client(true) .node();
However this results in master not found. This worked prior to ES 2.0, for 2.0 I added the
path.home to settings.
I've worked around the issue for now by switching to the transport client, but would prefer to connect via Node(Client).