ElasticSearch管理员用户未经授权访问jdbc river插件

时间:2015-03-17 11:12:03

标签: plugins elasticsearch elasticsearch-jdbc-river elasticsearch-shield

在ElasticSearch中,我配置了jdbc river插件,它之前有效,配置后屏蔽并分配给admin用户,ElasticSearch是安全的,并且能够通过TransportClient访问,但是当我运行river plugin脚本时,我得到以下异常:

pool-3-thread-1] ERROR river.jdbc.RiverPipeline - action [org.xbib.elasticsearch.action.river.jdbc.state.get] is unauthorized for user [ddtuser]
    org.elasticsearch.shield.authz.AuthorizationException: action [org.xbib.elasticsearch.action.river.jdbc.state.get] is unauthorized for user [ddtuser]
    at org.elasticsearch.shield.authz.InternalAuthorizationService.denial(InternalAuthorizationService.java:247)
顺便说一下,我已经修改了JDBCFeeder.java,将shield.user传递给了设置,但没有运气!

Settings clientSettings = ImmutableSettings.settingsBuilder()
                    .put("cluster.name", settings.get("elasticsearch.cluster", "elasticsearch"))
                    .put("shield.user", "ddtuser:*mypassword*")

0 个答案:

没有答案