ES

1.:

NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{hThBDKG0TyKb6xkuqd1RSQ}{127.0.0.1}{127.0.0.1:9300}]
]
将配置文件中的network.host改成本机ip,如果是
TransportClient client = new PreBuiltTransportClient(Settings.EMPTY) .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("127.0.0.1"), 9300));
方式连接的,将其中的Settings.EMPTY改成
Settings settings = Settings.builder().put("cluster.name","ES0").build();

你可能感兴趣的:(java,ES,ES)