Вопрос

My Elastic search instance has been booted up. I am able to access other uri's such as localhost:9200/_cluster/health and others.

But when I am accessing the elastic search through perl it is trying to access the uri localhost:9200/_cluster/nodes.

The error I am getting is No handler found for uri [/_cluster/nodes] and method [GET]

Это было полезно?

Решение

The _cluster/nodes endpoint has been removed in #4055, which is why your call returns an error. The change was released with elasticsearch 1.0.0.RC1. You can use the simplified _nodes endpoint instead now.

Другие советы

The error message you are getting:

No handler found for uri [/_cluster/nodes] and method [GET]

means that the url you are hitting is incorrect. Not exactly certain what you are trying to do, but I suspect you are trying to hit one of these two REST apis:

http://localhost:9200/_nodes/stats
http://localhost:9200/_nodes

This page in the Elasticsearch documentation list the cluster related REST api endpoints (includes the two above):

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster.html

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top