kibana - 无法从 Elasticsearch 节点检索版本信息。缺少 REST 请求的身份验证凭据

问题描述 投票:0回答:3

我尝试在 windows10 上安装 kibana 8.1.1,问题是当它开始安装时,它会因类似错误而停止

[2022-04-16T01:16:59.744+00:00][ERROR][elasticsearch-service] Unable to retrieve version  information from Elasticsearch nodes. security_exception: [security_exception] Reason: missing  authentication credentials for REST request [/_nodes?  filter_path=nodes..version%2Cnodes..http.publish_address%2Cnodes.*.ip] 

我尝试了很多解决方案,例如,我确实更改了 elastisearch.yml 文件

xpack.security.enabled: false 

但它仍然不起作用,我在 kibana.yml 上也做了同样的事情 我也添加了以下几行

`xpack.security.enabled: true  
xpack.monitoring.enabled: true  
xpack.monitoring.ui.enabled: true  
xpack.security.encryptionKey: "XXX"`

还是什么都没有。

在之前我也删除了 kibana.yml 上的 #

elasticsearch.hosts: ["http://localhost:9200"]

仍然一无所获 这是 基巴纳.yml:

server.port: 5601   server.host: "localhost"   server.name: "your-hostname"   elasticsearch.hosts: ["http://localhost:9200"]

elasticsearch.yml:

`cluster.name: my-application  
network.host: 192.168.0.1  
node.name: node-1  
discovery.seed_hosts: ["host1", "host2"]  
cluster.initial_master_nodes: ["node-1", "node-2"]` 

我对我的英语感到非常抱歉,它不是我的第一语言,也不知道该做什么来完成学习项目,而且我还是一个初学者 谷歌也没有帮助
谢谢你帮助我

rest elasticsearch kibana
3个回答
25
投票

更详细的步骤如下,

仅当您对两个 yml 文件进行一些更改时才需要执行步骤 1。

  1. 在 elastic 和 Kibana yml 中注释所有内容并保存
  2. 启动 Elasticsearch
  3. 从目录elasticsearch-8.0.0中打开另一个命令提示符并运行以下命令。

注意:我们正在为用户“kibana_system”重置密码,而不是“elastic”。

.\elasticsearch-reset-password.bat -u kibana_system --auto

此命令将为您提供用户“kibana_system”的密码。复制密码并将其存储在某处。

  1. 通过设置以下值编辑 kibana-8.0.0 目录中的 kibana yml 文件。
elasticsearch.username: "kibana_system"
elasticsearch.password: "the kibana_system password generated above, not the elastic password"

然后保存yml文件。

  1. 启动kibana,等到看到一切正常并且没有错误。

  2. 在浏览器中打开http://localhost:5601/app/home#/。 输入用户名“elastic” 输入密码为“elastic 密码,不是 kibana 密码”


1
投票
elasticsearch.username: "kibana_system"
elasticsearch.password: <my-kibana_system-password>

0
投票

就我而言,我在 config/kibana.yml 中更改了以下配置

elasticsearch.hosts:“http://localhost:9200”

elasticsearch.用户名:kibana_system 弹性密码:

为了生成 kibana_system 密码,我使用了以下命令 bin lasticsearch-重置密码-u kibana_system

然后从 cmd 提示符重新启动 kibana

那么,它对我有用

© www.soinside.com 2019 - 2024. All rights reserved.