CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
47a1c095eb69 01e5bee1e059 "/usr/local/bin/dock…" 30 minutes ago Up 6 seconds 0.0.0.0:9201->9200/tcp, 0.0.0.0:9301->9300/tcp ES02
38eaa950bcea 5acf0e8da90b "/docker-entrypoint.…" About an hour ago Up About an hour 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp ES01
ERROR 7604 --- [ main] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{tDt8CjGjQOWscJeN44vXXA}{192.168.154.129}{192.168.154.129:9300}]
the firewall is already shut down, port 9200 is successfully mapped, but something is wrong with port 9300.
And, why can't I use 6.x version's elasticsearch on my system? It always stop in few seconds after started. Is it normal?
Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.
Or use markdown style like:
```
CODE
```
This is the icon to use if you are not using markdown format:
There's a live preview panel for exactly this reasons.
Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.
Why did you say that your cluster stopped ? How do you know? If so what are elasticsearch logs ?
BTW as you are using Docker, you need to define in the TransportClient the same cluster name that the Docker image is using or set cluster name to elasticsearch.
Sorry about my post.
My cluster is not stop when I use 5.x version, it only happens with 6.x version or 7.0.0.
I can index data using JestClient through port 9200:
@Autowired
JestClient jestClient;
But if I use ElasticsearchRepository, the error is appeared.
public interface BookRepository extends ElasticsearchRepository<Book,Integer>
I think maybe something was wrong with port 9300.
ERROR 6472 --- [ main] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{cJwWjxSQS9y8buLJebxoxg}{192.168.154.129}{192.168.154.129:9300}]
I don't understand. If you are using JEST, then you are using the HTTP Rest port (9200).
Why do you want to use the binary Transport port (9300) with Jest then?
I have no idea. I was just confused by the Jest reference which is using 9200 REST port.
I'm not a spring data elasticsearch user as I prefer to build my own DAO. Like here:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.