安裝小結

第一個問題 :Java API:NoNodeAvailableException: No node available


I assume that you are setting the ES server on a remote host? In that case you will need to bind the publish address to the host's public IP address.

In your ES host edit /etc/elasticsearch/elasticsearch.yml

and add its public IP after network.publish_host:
Set the address other nodes will use to communicate with this node. If not set, it is automatically derived. It must point to an actual IP address.

network.publish_host: 192.168.0.1

And in your code connect to this host on port 9300. Note that you need the IP and not the domain name (at least according to my experience on Amazon EC2)
ElasticSearch Java API:NoNodeAvailableException: No node available


后臺啟動elasticSearch
./elasticsearch start

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容