gpt4 book ai didi

playframework - Elasticsearch 抛出异常 : NoNodeAvailableException occured : No node available

转载 作者:行者123 更新时间:2023-11-29 02:51:22 25 4
gpt4 key购买 nike

我决定在一个简单的待办事项列表应用程序中尝试首次使用 elasticsearch。我关注了this video要使用该模块并且不对模块本身进行任何修改,我所做的就是创建应用程序并在 Controller 中添加类 search.java。

Execution exception
NoNodeAvailableException occured : No node available

In {module:elasticsearch-0.4}/app/controllers/elasticsearch/ElasticSearchController.java (around line 367)

363:
// FIXME Currently we ignore the orderBy and order fields
364:
query.from((page - 1) * getPageSize()).size(getPageSize());
365:
query.hydrate(true);
366:

367:
return query.fetch();
368:
}

最佳答案

我遇到了同样的问题,我做的是:

1.检查节点是否打开了正确的端口:

telnet [ip address] 9300
Trying [ip address]
Connected to mynode1 ([ip address]).
Escape character is '^]'.
telnet> quit
Connection closed.

2.使用 telnet 检查是否一切正常 =):

$ telnet [ip address] 9400
Trying [ip address]...
telnet: Unable to connect to remote host: Connection refused

3.确保你有正确版本的elasticsearch!

elasticsearch plugin我使用的是 elastisearch 0.19.10。当我在我的服务器上安装 elasticsearch 时,我不小心使用了 0.20.1,这导致了:NoNodeAvailableException 发生:没有可用的节点异常。

希望这对您有所帮助!

关于playframework - Elasticsearch 抛出异常 : NoNodeAvailableException occured : No node available,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10218156/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com