log [03:15:03.101] [error][status][plugin:watcher@6.3.1] Status changed from red to red - [data] Elasticsearch cluster did not respond with license information.
log [03:15:03.101] [error][status][plugin:index_management@6.3.1] Status changed from red to red - [data] Elasticsearch cluster did not respond with license information.
log [03:15:03.101] [error][status][plugin:graph@6.3.1] Status changed from red to red - [data] Elasticsearch cluster did not respond with license information.
这里似乎是没有elasticSearch 的许可
可以通过这个命令来看:
curl -XGET -u admin:passwd "http://192.168.146.128:9200/_license"
账户名:elastic
密码输入:changeme
结果:
{
"build" : {
"hash" : "eb782d0",
"date" : "2018-06-29T22:03:21.668624Z"
},
"license" : null,
"features" : {
"graph" : {
"description" : "Graph Data Exploration for the Elastic Stack",
"available" : true,
"enabled" : true
},
可以看到license是null,最可能的原因就是要连接的这个 elasticsearch 节点不能和master节点建立连接,可是我只启动了一个 elasticsearch 节点,按道理它就是 master 节点啊。我想起昨天启动了两个es节点,又打开了另一个节点重新运行,成功登录。、
参考:https://www.jianshu.com/p/513774293b86