gpt4 book ai didi

mysql - 使用正确凭据挂起 Ambari 管理员登录,使用无效凭据引发正确错误

转载 作者:行者123 更新时间:2023-12-04 19:31:20 25 4
gpt4 key购买 nike

我在 Centos 7 服务器上设置了 Ambari 2.7.0,并使用 Mysql 5.7.29 作为后端。
所有服务都运行良好,但是当我尝试使用 admin:admin 登录时证书似乎挂起并在 ambari-server.log 中显示以下日志文件:

2020-03-18 06:55:28,031  INFO [MessageBroker-1] WebSocketMessageBrokerStats:113 - WebSocketSession[0 current WS(0)-HttpStream(0)-HttpPoll(0), 0 total, 0 closed abnormally (0 connect failure, 0 send limit, 0 transport error)], stompSubProtocol[processed CONNECT(0)-CONNECTED(0)-DISCONNECT(0)], stompBrokerRelay[null], inboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], outboundChannelpool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], sockJsScheduler[pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 0]

2020-03-18 06:55:28,678 INFO [MessageBroker-1] WebSocketMessageBrokerStats:113 - WebSocketSession[0 current WS(0)-HttpStream(0)-HttpPoll(0), 0 total, 0 closed abnormally (0 connect failure, 0 send limit, 0 transport error)], stompSubProtocol[processed CONNECT(0)-CONNECTED(0)-DISCONNECT(0)], stompBrokerRelay[null], inboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], outboundChannelpool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], sockJsScheduler[pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 0]

有趣的是,当我为 admin 输入无效用户或错误密码时用户,它会抛出正确的错误 Invalid credentials但是在输入正确的凭据时,上面提到的挂起和日志记录在 ambari-server.log 中文件。

以前我曾经在 MySQL 日志文件中看到以下日志:
[Note] Aborted connection 4 to db: '' user: '' host: '' (Got an error reading communication packets)

根据一些问题的建议,我增加了 max_connections到 400 和 max_allowed_packet 656MB 服务器上接近 2% 的可用 RAM .

增加上述配置后,我没有看到任何 Error reading communication packets在 MySQL 日志文件中,但我似乎没有让 Ambari 登录工作。

当我将 Ambari-Server 的日志记录级别设置为 debug并输入它给出日志的随机用户:
2020-03-18 11:24:16,116 DEBUG [ambari-client-thread-47] FilterChainProxy:325 - /api/v1/users/esrdf?fields=*,privileges/PrivilegeInfo/cluster_name,privileges/PrivilegeInfo/permission_name&_=1599955834198 at position 1 of 13 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'

但是当我输入正确的凭据 admin:admin ,我什至没有看到任何 API 在日志中被调用。这可能是什么原因?

我尝试使用 API 调用对此进行调试,例如: /api/v1/clusters .
当我从服务器本身进行 API 调用时,它会给出正确的响应,但是当 API 是从本地发出时,它会给出 Recv failure: Connection was reset
有人可以指出我哪里可能出错了吗?

帮助赞赏!

最佳答案

发现问题。这是阻止登录的 VPN 连接问题,可以访问 Ambari UI 但无法登录。
当连接到同一网络上的机器时,登录工作。

关于mysql - 使用正确凭据挂起 Ambari 管理员登录,使用无效凭据引发正确错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60743259/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com