为什么我的mesos主机无法通过slave的身份验证?

qvtsj1bj  于 2021-06-21  发布在  Mesos
关注(0)|答案(1)|浏览(416)

我已在我的计算机上创建了一个主服务器,其凭据文件在网络上具有公共ip,而不是localhost,如下所示:

./bin/mesos-master.sh --ip=192.168.0.3 --work_dir=/var/lib/mesos --credentials=file://master-cred.json

然后我在另一台机器上创建了一个从机,如下所示:

./bin/mesos-slave.sh --ip=192.168.0.19 --master=<master-ip>:5050 --credential=file://slave-cred.json

然后,主机输出一个传入的身份验证请求,但每次都被拒绝:

I0903 15:17:48.264104 165863424 master.cpp:4728] Authenticating slave(1)@192.168.0.19:5051
I0903 15:17:48.264602 166936576 authenticator.cpp:92] Creating new server SASL connection
I0903 15:17:48.269961 165326848 authenticator.cpp:197] Received SASL authentication start
I0903 15:17:48.270058 165326848 authenticator.cpp:319] Authentication requires more steps
I0903 15:17:48.272733 166400000 authenticator.cpp:225] Received SASL authentication step
W0903 15:17:48.272817 166400000 authenticator.cpp:325] Authentication failure: authentication failure
W0903 15:17:48.273136 166400000 master.cpp:4755] Failed to authenticate slave(1)@192.168.0.19:5051: Refused authentication

两个凭证文件都正确。
这是从机的输出:

I0903 15:17:48.232733  2377 slave.cpp:747] Authenticating with master master@192.168.0.3:5050
I0903 15:17:48.232951  2377 slave.cpp:752] Using default CRAM-MD5 authenticatee
I0903 15:17:48.235091  2376 authenticatee.cpp:91] Initializing client SASL
I0903 15:17:48.239701  2376 authenticatee.cpp:115] Creating new client SASL connection
I0903 15:17:48.239914  2377 slave.cpp:720] Detecting new master
I0903 15:17:48.241755  2377 slave.cpp:4193] Received oversubscribable resources  from the resource estimator
I0903 15:17:48.287488  2378 authenticatee.cpp:206] Received SASL authentication mechanisms: CRAM-MD5
I0903 15:17:48.287619  2378 authenticatee.cpp:232] Attempting to authenticate with mechanism 'CRAM-MD5'
I0903 15:17:48.290863  2378 authenticatee.cpp:252] Received SASL authentication step
Master master@192.168.0.3:5050 refused authentication

但是,当我从与主服务器相同的机器上运行从属服务器时,它工作正常。有什么想法吗?

ddarikpa

ddarikpa1#

它实际上是由我如何在虚拟机从机上设置网络的问题引起的。

相关问题