Elasticsearch 抛出异常:NoNodeAvailableException发生:无可用节点 [英] Elasticsearch throwing the exception: NoNodeAvailableException occured : No node available

查看:18
本文介绍了Elasticsearch 抛出异常:NoNodeAvailableException发生:无可用节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我决定在一个简单的待办事项列表应用程序上尝试第一次使用 elasticsearch.我关注了这个视频 要使用该模块并在模块本身中不做任何修改,我所做的就是创建应用程序并在控制器中添加类 search.java.

I'm decided to try my first use for elasticsearch on a simple to-do list application. I followed this video to use the module and modified nothing in the module itself all what i did was creating the application and adding the class search.java in the controllers.

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:
        }

推荐答案

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

I had the same problem, what I did was:

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

1.Check if the nodes have the correct port open with:

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

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

2.Check that everything is ok with telnet =):

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

3.确保您拥有正确版本的elasticsearch!

3.Make sure you have the correct version of elasticsearch!

在我使用的 elasticsearch 插件中,使用了 elasticsearch 0.19.10.当我在我的服务器上安装 elasticsearch 时,我不小心使用了 0.20.1,这导致了:NoNodeAvailableException发生:无可用节点异常.

In the elasticsearch plugin that I'm using elastisearch 0.19.10 is used. When I installed elasticsearch on my server I accidentally used 0.20.1 which caused the: NoNodeAvailableException occured : No node available exception.

希望这有帮助!

这篇关于Elasticsearch 抛出异常:NoNodeAvailableException发生:无可用节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆