elasticsearch-2.3.5安装search-guard-2.3.5.15遇到的问题

原创 2016年08月31日 11:51:34

在没有启动elasticsearch时,执行如下操作会提示

elasticsearch-2.3.5# plugins/search-guard-2/tools/sgadmin.sh -cd plugins/search-guard-2/sgconfig/ -ks plugins/search-guard-2/sgconfig/node-0-keystore.jks -ts plugins/search-guard-2/sgconfig/truststore.jks  -nhnv
Will connect to localhost:9300
ERR: Seems there is no elasticsearch running on localhost:9300 - Will exit

此时启动elasticsearch的提示如下:

[2016-08-31 11:35:47,310][ERROR][com.floragunn.searchguard.auth.BackendRegistry] Not yet initialized
[2016-08-31 11:35:47,683][WARN ][com.floragunn.searchguard.action.configupdate.TransportConfigUpdateAction] [0] searchguard index not healthy yet, we try again ... (Reason: timeout)
[2016-08-31 11:35:49,315][ERROR][com.floragunn.searchguard.auth.BackendRegistry] Not yet initialized
[2016-08-31 11:35:51,320][ERROR][com.floragunn.searchguard.auth.BackendRegistry] Not yet initialized
[2016-08-31 11:35:53,324][ERROR][com.floragunn.searchguard.auth.BackendRegistry] Not yet initialized
[2016-08-31 11:35:55,329][ERROR][com.floragunn.searchguard.auth.BackendRegistry] Not yet initialized
[2016-08-31 11:35:57,334][ERROR][com.floragunn.searchguard.auth.BackendRegistry] Not yet initialized
[2016-08-31 11:35:59,004][INFO ][cluster.metadata         ] [0] [searchguard] creating index, cause [api], templates [], shards [1]/[0], mappings []
[2016-08-31 11:35:59,097][INFO ][cluster.routing.allocation] [0] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[searchguard][0]] ...]).
[2016-08-31 11:35:59,338][ERROR][com.floragunn.searchguard.auth.BackendRegistry] Not yet initialized
[2016-08-31 11:35:59,360][INFO ][cluster.metadata         ] [0] [searchguard] create_mapping [config]
[2016-08-31 11:35:59,598][INFO ][cluster.metadata         ] [0] [searchguard] create_mapping [roles]
[2016-08-31 11:35:59,695][INFO ][cluster.metadata         ] [0] [searchguard] create_mapping [rolesmapping]
[2016-08-31 11:35:59,762][INFO ][cluster.metadata         ] [0] [searchguard] create_mapping [internalusers]
[2016-08-31 11:35:59,827][INFO ][cluster.metadata         ] [0] [searchguard] create_mapping [actiongroups]
[2016-08-31 11:36:00,150][INFO ][com.floragunn.searchguard.action.configupdate.TransportConfigUpdateAction] [0] Node '0' initialized

然后再执行search-guard-2/tools/sgadmin.sh可以看到成功的提示如下:

elasticsearch-2.3.5# plugins/search-guard-2/tools/sgadmin.sh -cd plugins/search-guard-2/sgconfig/ -ks plugins/search-guard-2/sgconfig/node-0-keystore.jks -ts plugins/search-guard-2/sgconfig/truststore.jks  -nhnv

Will connect to localhost:9300 ... done
Contacting elasticsearch cluster 'elasticsearch' and wait for YELLOW clusterstate ...
Clustername: elasticsearch
Clusterstate: YELLOW
Number of nodes: 1
Number of data nodes: 1
searchguard index does not exists, attempt to create it ... done
Populate config from /work/elasticsearch-2.3.5/plugins/search-guard-2/sgconfig
Will update 'config' with plugins/search-guard-2/sgconfig/sg_config.yml
   SUCC: Configuration for 'config' created or updated
Will update 'roles' with plugins/search-guard-2/sgconfig/sg_roles.yml
   SUCC: Configuration for 'roles' created or updated
Will update 'rolesmapping' with plugins/search-guard-2/sgconfig/sg_roles_mapping.yml
   SUCC: Configuration for 'rolesmapping' created or updated
Will update 'internalusers' with plugins/search-guard-2/sgconfig/sg_internal_users.yml
   SUCC: Configuration for 'internalusers' created or updated
Will update 'actiongroups' with plugins/search-guard-2/sgconfig/sg_action_groups.yml
   SUCC: Configuration for 'actiongroups' created or updated

Done with success

之后修改kibana的配置文件

$ vi config/kibana.yml
server.port: 5601
server.host: 0.0.0.0
elasticsearch.url: "https://10.1.141.41:9200"
elasticsearch.preserveHost: true
elasticsearch.username: user  #用户名和密码来自elasticsearch-2.3.5/plugins/search-guard-2/sgconfig/sg_internal_users.yml
elasticsearch.password: password
elasticsearch.ssl.verify: false
启动kibana就成功了

相关文章推荐

ElasticSearch2.4.2安装search-guard插件

(1)环境; elasticsearch 2.4.2(2):github上分支没有2.4.x版本的分支,笔者一度找了好久才找到下面一个版本关系对应表 elasticsearch与search-gu...

Elasticsearch权限监控——search-guard介绍

1、概述 search-guard是Elasticsearch的一个安全权限plugin,特性包括: 权限控制粒度可以到indices,types,甚至可以到过滤field层次。同时也可以限制用户...
  • eff666
  • eff666
  • 2016年10月24日 22:20
  • 1183

elasticsearch+kibana实现权限控制-search-guard

1.版本 elasticsearch 5.2.0 kibana 5.2.0 2.es安装searchguard插件 进入ES_HOME目录,运行 bin/elasticsearch-plugin in...

elasticsearch-2.3.5

  • 2017年03月07日 10:12
  • 26.28MB
  • 下载

配置data guard broker时遇到的几个问题

配置data guard broker时遇到的几个问题   环境: oracle 11203 on rhel6.3 primary: RAC standby: instance     ...

Search-guard在ELK Stack日志分析系统中的应用

search-guard是elastcisearch的一款插件,提供加密,身份验证和授权,基于search guard SSL,另外提供可插入的身份验证/授权模块,search-guard是shiel...

kibana的search-guard配置

此文章解决ElasticSearch2.4.2(http://blog.csdn.net/lijibo503/article/details/69396860)安装search-guard插件中遗留的...

基于Android2.3.5系统:Java JDK ADT Android SDK for Eclipse环境安装

由于前一段时间,左脚足背做手术,因此,关于Android2.3.5学习系列的文章,很久没有博客中更新,今天将基于Eclipse for Android的基于Windows下的SDK开发环境的安装,主要...
  • wavemcu
  • wavemcu
  • 2013年01月03日 14:57
  • 4880

ActionBar中添加搜索框( search )及遇到的空指针问题

在这几天的开发学习中,看到一个需求,就是要在导航栏中添加搜索框,于是乎就各种查资料,学习以及使用. 导航栏有两种实现方式,一种是用ActionBar,另一种是用ToolBar.(我在这里是用的Act...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:elasticsearch-2.3.5安装search-guard-2.3.5.15遇到的问题
举报原因:
原因补充:

(最多只允许输入30个字)