Elasticsearch - NoNodeAvailableException

后端 未结 3 454
迷失自我
迷失自我 2020-12-19 02:17

I get the following error when trying to connect to Elasticsearch 2 using the Java API for ES 2. This is the code:

Settings settings = Settings.settingsBuild         


        
3条回答
  •  一个人的身影
    2020-12-19 02:50

    @AndreiStefan gave the solution to my problem thanks to the post he linked. The solution was as straightforward as:

    network.bind_host: 0
    

    Thank you guys.

提交回复
热议问题