为什么我会得到“断开框架”?

qpgpyjmq  于 2021-06-26  发布在  Mesos
关注(0)|答案(2)|浏览(461)

我已经安装和配置了mesos和marathon。每当我尝试安排一个应用程序时,它都会保持“等待”状态,这似乎表明marathon正在等待mesos的报价。
当我检查mesos中的日志时,我看到以下内容:

I0425 20:22:10.313910  4279 master.cpp:2231] Received SUBSCRIBE call for framework 'chronos-2.4.0' at scheduler-07d9654e-5c40-4172-a25d-97c565b5765d@127.0.1.1:50892
I0425 20:22:10.313987  4279 master.cpp:2302] Subscribing framework chronos-2.4.0 with checkpointing enabled and capabilities [  ]
I0425 20:22:10.313994  4279 master.cpp:2312] Framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0001 (chronos-2.4.0) at scheduler-07d9654e-5c40-4172-a25d-97c565b5765d@127.0.1.1:50892 already subscribed, resending acknowledgement
W0425 20:22:10.314007  4279 master.hpp:1764] Master attempted to send message to disconnected framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0001 (chronos-2.4.0) at scheduler-07d9654e-5c40-4172-a25d-97c565b5765d@127.0.1.1:50892
E0425 20:22:10.314193  4287 process.cpp:1958] Failed to shutdown socket with fd 39: Transport endpoint is not connected
I0425 20:22:11.226884  4284 master.cpp:2231] Received SUBSCRIBE call for framework 'marathon' at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928
I0425 20:22:11.226959  4284 master.cpp:2302] Subscribing framework marathon with checkpointing enabled and capabilities [  ]
I0425 20:22:11.226969  4284 master.cpp:2312] Framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0000 (marathon) at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928 already subscribed, resending acknowledgement
W0425 20:22:11.226982  4284 master.hpp:1764] Master attempted to send message to disconnected framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0000 (marathon) at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928
E0425 20:22:11.227226  4287 process.cpp:1958] Failed to shutdown socket with fd 39: Transport endpoint is not connected
I0425 20:22:12.113598  4281 http.cpp:312] HTTP GET for /master/state from 192.0.2.1:49698 with User-Agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36'
I0425 20:22:12.314221  4286 master.cpp:2231] Received SUBSCRIBE call for framework 'chronos-2.4.0' at scheduler-07d9654e-5c40-4172-a25d-97c565b5765d@127.0.1.1:50892
I0425 20:22:12.314304  4286 master.cpp:2302] Subscribing framework chronos-2.4.0 with checkpointing enabled and capabilities [  ]
I0425 20:22:12.314312  4286 master.cpp:2312] Framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0001 (chronos-2.4.0) at scheduler-07d9654e-5c40-4172-a25d-97c565b5765d@127.0.1.1:50892 already subscribed, resending acknowledgement
W0425 20:22:12.314337  4286 master.hpp:1764] Master attempted to send message to disconnected framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0001 (chronos-2.4.0) at scheduler-07d9654e-5c40-4172-a25d-97c565b5765d@127.0.1.1:50892
E0425 20:22:12.314524  4287 process.cpp:1958] Failed to shutdown socket with fd 39: Transport endpoint is not connected
I0425 20:22:13.081887  4284 master.cpp:2231] Received SUBSCRIBE call for framework 'marathon' at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928
I0425 20:22:13.081964  4284 master.cpp:2302] Subscribing framework marathon with checkpointing enabled and capabilities [  ]
I0425 20:22:13.081987  4284 master.cpp:2312] Framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0000 (marathon) at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928 already subscribed, resending acknowledgement
W0425 20:22:13.082005  4284 master.hpp:1764] Master attempted to send message to disconnected framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0000 (marathon) at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928
E0425 20:22:13.082314  4287 process.cpp:1958] Failed to shutdown socket with fd 39: Transport endpoint is not connected
I0425 20:22:13.221590  4282 master.cpp:2231] Received SUBSCRIBE call for framework 'marathon' at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928
I0425 20:22:13.221664  4282 master.cpp:2302] Subscribing framework marathon with checkpointing enabled and capabilities [  ]
I0425 20:22:13.221674  4282 master.cpp:2312] Framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0000 (marathon) at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928 already subscribed, resending acknowledgement
W0425 20:22:13.221688  4282 master.hpp:1764] Master attempted to send message to disconnected framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0000 (marathon) at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928
E0425 20:22:13.222162  4287 process.cpp:1958] Failed to shutdown socket with fd 39: Transport endpoint is not connected
I0425 20:22:14.412215  4286 master.cpp:2231] Received SUBSCRIBE call for framework 'marathon' at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928
I0425 20:22:14.412281  4286 master.cpp:2302] Subscribing framework marathon with checkpointing enabled and capabilities [  ]
I0425 20:22:14.412289  4286 master.cpp:2312] Framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0000 (marathon) at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928 already subscribed, resending acknowledgement
W0425 20:22:14.412302  4286 master.hpp:1764] Master attempted to send message to disconnected framework c16a5bfb-838e-4d43-bf3c-21bf94358ab5-0000 (marathon) at scheduler-d998dfb4-9cc2-4d22-9cb7-416433c2fb57@127.0.1.1:35928
E0425 20:22:14.412495  4287 process.cpp:1958] Failed to shutdown socket with fd 39: Transport endpoint is not connected

任何关于为什么它提到一个“断开连接的”框架的想法。在mesos中,我可以看到3个从属和marathon(和chronos)框架在“活动框架”中被提到。
/etc/hosts提到以下条目:

192.0.2.11  master1  # VAGRANT: cd38e81ab8742b23dfbcb913468368ea (master1) / 1b611425-dbad-4bd0-8727-4169c09ec045
192.0.2.51  slave1  # VAGRANT: 94630539b67d178dddffda29a0313a75 (slave1) / 1a1694de-2bd2-4d96-bdf2-dd6767d1f310
192.0.2.52  slave2  # VAGRANT: 306e67b33b327b3d1c9990bf1316a321 (slave2) / bdbd677e-5298-4d49-90a8-e521139dd127
192.0.2.12  master2  # VAGRANT: fb338e9e9c001a5bfab605387ba88d02 (master2) / bdccfd80-b1e6-48a0-8986-b24c7cbd7a25
192.0.2.53  slave3  # VAGRANT: 3913b3358eadc90c622859ddb90bfede (slave3) / 786cbe69-2af5-43b7-8e70-d6cc07d4ddf4
192.0.2.13  master3  # VAGRANT: 92cdd6e36a6c0391e2a66f73661e56fe (master3) / 03bb2c16-f474-4412-b8f4-fce82e12955c

注意:如果需要有关如何安装群集的更多信息,请参阅此

iyzzxitl

iyzzxitl1#

我想你需要确保主机名可以解析为实际的ip地址。
这至少是解决我的问题时,马拉松等试图绑定到 127.0.1.1 在ubuntu上。i、 您应该在每个主机上添加ip到主机名的Map,例如。

192.0.2.11 master1

进入 /etc/hosts 在Map 127.0.1.1 或删除 127.0.1.1 完全进入。流浪插件流浪人质管理员可能会有所帮助。

qvtsj1bj

qvtsj1bj2#

您还可以设置 LIBPROCESS_IP 作为环境变量。我觉得这比换衣服好 /etc/hosts .
在这里找到了解决方案:https://groups.google.com/forum/#!主题/马拉松框架/1qboeztolu4

相关问题