Client.transport.sniff true NoNodeAvailableException

Hi
I install the plugin x-pack , use java api connect cluster.
when I set client.transport.sniff true in client, then return NoNodeAvailableException.
but I remove this param,it's ok

like this
Settings settings = Settings.builder()
.put("cluster.name", cluster)
.put("client.transport.sniff", true)
.put("xpack.security.user", "transport_client_user:transport_client_user")
.build();

why?
es version is 5.4.0

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.