Elasticsearch开启权限管理与Kerberos认证后操作命令的使用变更

集群用户或组件超级用户可访问Elasticsearch,其中:

 

Elasticsearch组件的操作命令会因为集群是否开启权限管理及Kerberos认证而有所不同:

 

Elasticsearch组件“查询数据”操作命令示例:

curl -XGET 'http://10.121.65.166:9200/test001/user/1?pretty' -H 'Content-Type:application/json'

curl -XGET -u username:* 'http://10.121.65.166:9200/test001/user/1?pretty' -H 'Content-Type:application/json'

curl -XGET --negotiate -u:  'http://10.121.65.166:9200/test001/user/1?pretty' -H 'Content-Type:application/json'