I'm currently trying to run a stand-alone node along with a client (my
code using Java API) on the same machine.
I get this exception when I try to start up my code:
11/07/19 15:30:04 INFO discovery.zen: [Felicia Hardy] failed to send
join request to master
[[Fearmaster‚Äé][8lJ_ukYyQG-7WlFOOrW5Vg][inet[/192.168.1.139:9300]]],
reason [org.elasticsearch.transport.RemoteTransportException: [Felicia
Hardy][inet[/192.168.1.139:9300]][discovery/zen/join];
org.elasticsearch.ElasticSearchIllegalStateException: Node [[Felicia
Hardy][F1KXXIhpTDqRokly-7RA0w][inet[/192.168.1.139:9300]]{client=true,
data=false}] not master for join request from [[Felicia
Hardy][F1KXXIhpTDqRokly-7RA0w][inet[/192.168.1.139:9300]]{client=true,
data=false}]]
I'm launching the stand-alone server like so:
bin/elasticsearch -f -Des.config.file=config/elasticsearch.yml
YML file that I use with stand-alone server:
http://xstevens.pastebin.mozilla.org/1276461
And then for the client here's the code snippet which creates the
connection: http://xstevens.pastebin.mozilla.org/1276456
JSON config file that I use in my code:
http://xstevens.pastebin.mozilla.org/1276458
Notes on the code: configFile is definitely not null and gets loaded,
storeData=false.
Not sure what I'm doing wrong here.
Thanks in advance,
-Xavier