Elasticsearch安装后x-pack插件后使用CRUL
来源:互联网 发布:php cookie自动登录 编辑:程序博客网 时间:2024/05/22 01:41
Elasticsearch-5.2.1安装x-pack插件后,无法正常按照之前的参数来进行CRUL操作,因为安装的x-pack的插件中新增了Shield的安全机制。
比如我们使用:curl -XPUT ‘localhost:9200/idx’ 会出现如下类似的错误信息
{ "error": "AuthenticationException[Missing authentication token]", "status": 401}
或
{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST request [/idx]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"missing authentication token for REST request [/idx]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}
解决方法: 在使用crul命令的时候加入两个参数:
–user username:password,格式如下:
curl –user elastic:changeme -XPUT ‘localhost:9200/idx’
其中 elastic是用户名(默认),changme是密码(默认)
参考地址:https://www.elastic.co/guide/en/shield/current/_using_elasticsearch_http_rest_clients_with_shield.html
0 0
- Elasticsearch安装后x-pack插件后使用CRUL
- elasticsearch 安装 x-pack 后重新生成密码的方法
- elasticsearch插件 x-pack.security组件的使用
- Elasticsearch Kibana安装x-pack
- ES安装X-pack后的默认账户与密码
- elasticsearch x-pack 破解
- elk插件x-pack安装以及破解
- 使用Eclipse3.4后,插件安装方式
- centos7中配置elasticsearch集群和离线安装x-pack
- centos7中配置elasticsearch集群和离线安装x-pack
- Elasticsearch/Kibana/X-pack/Logstash 6.0.0版本的安装
- elasticsearch之x-pack破解
- elasticsearch之x-pack破解
- 解决XCode安装插件后插件不能使用的问题
- [svc]elk5.x x-pack插件使用(elasticsearch5)
- ElasticSearch 5学习(1)——安装Elasticsearch、Kibana和X-Pack
- ElasticSearch 5学习——安装Elasticsearch、Kibana和X-Pack
- ElasticSearch 5学习(1)——安装Elasticsearch、Kibana和X-Pack
- linux
- linux find grep组合使用
- 土地问题(求出土地被分成多少面,有知识点)
- linux下的bluetooth编程之环境构筑
- Qt for Android调用android原生Toast控件
- Elasticsearch安装后x-pack插件后使用CRUL
- bzoj 2957 线段树
- 我的科研生活2017-2-21
- linux命令行与shell脚本大全_第五章_使用环境变量
- 怎么查询通话记录信息
- 【leetcode】Next Greater Element I
- SAPUI5 (21)
- springmvc 和 spring 整合的 web.xml 配置(包括监听器,乱码解决等)
- ubuntu下修改mysql密码