0

Elasticsearch 在我的集群中有三个节点,我正在使用插件 elasticsearch-carrot2,并且elastic是 elasticsearch 的超级用户。

我发送的请求如下:

curl -XPOST --user elastic:****  -H "Content-Type: application/json" 
    'http://ip:port/index/type/_search_with_clusters?pretty=true' -d '
 {
    "search_request": {
        "_source" : [
            "title",
            "body"
                   ],
        "query" : {
        "match" : {
          "title" : "something"
        }
    },
    "size": 100
          },
     "query_hint": "something",
       "field_mapping": {
          "title"  : ["_source.title", "_source.body"]
       }
 }'

不幸的是,我收到以下错误:

{
    "error" : {
        "root_cause" : [
            {
                "type" : "security_exception",
                "reason" : "action [clustering/cluster] is unauthorized 
                            for user [elastic]"
            }
                       ],
    "type" : "security_exception",
    "reason" : "action [clustering/cluster] is unauthorized for user 
                [elastic]"
               },
    "status" : 403
}
4

1 回答 1

0

问题来自该插件不适用于 XPack 安全性的事实。

更多信息可以在这个问题中看到:https ://github.com/carrot2/elasticsearch-carrot2/issues/69

于 2018-04-28T04:01:37.593 回答