请问“Slave ID mismatch”如何解决?

43 views
Skip to first unread message

TAO

unread,
Nov 28, 2016, 4:13:02 AM11/28/16
to DPark Users
您好,

我初识dpark,刚部署好mesos和zookeeper,然后,尝试运行计算“派”的demo,发现task一直在STAGING状态,且发现mesos-slave日志里出现如下警告,看似任务已经完成,但由于slave_id是空,无法更新任务状态。

W1128 16:39:27.247855  7296 slave.cpp:3656] Ignoring status update TASK_RUNNING (UUID: 3d08f9c3-cf18-4de6-9e70-ead81ae7bb40) for task 1:1:1 of framework c0691c52-35c8-4f9b-9b71-ad7551a19fe2-0037 due to Slave ID mismatch; expected '95995d9d-1961-418a-8644-2076189e33f3-S0', received ''

W1128 16:39:27.363518  7296 slave.cpp:3656] Ignoring status update TASK_FINISHED (UUID: c9492cad-02af-4d9e-bdc1-16a3c840ad5d) for task 1:1:1 of framework c0691c52-35c8-4f9b-9b71-ad7551a19fe2-0037 due to Slave ID mismatch; expected '95995d9d-1961-418a-8644-2076189e33f3-S0', received ''

请问这个问题如哪里入手解决呢??

田忠博(Zhongbo Tian)

unread,
Nov 28, 2016, 4:18:29 AM11/28/16
to dpark-users
Hi, 您可以检查一下您使用的 pymesos 的版本, 新版本pymesos (>=0.2.0) 使用了新的接口规范,但是支持新版本 pymesos的 DPark还没有正式release

如果您确认是pymesos的版本问题,那么请先使用 pymesos 1.6.x 系列

--
You received this message because you are subscribed to the Google Groups "DPark Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dpark-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

TAO

unread,
Nov 28, 2016, 8:02:34 PM11/28/16
to DPark Users
您好

我现在使用的是centos7, python2.7, pymesos 0.1.6, zookeeper 3.4.6, mesosphere 1.1.0 , dpark 0.3.5

我发现executor.py的这段代码:

def reply_status(driver, task_id, state, data=None):
    status = mesos_pb2.TaskStatus()
    status.task_id.MergeFrom(task_id)
    status.state = state
    status.timestamp = time.time()
    if data is not None:
        status.data = data
    driver.sendStatusUpdate(status)

status对象的slave_id是空,不知为何。




在 2016年11月28日星期一 UTC+8下午5:18:29,田忠博写道:
To unsubscribe from this group and stop receiving emails from it, send an email to dpark-users...@googlegroups.com.

田忠博(Zhongbo Tian)

unread,
Nov 28, 2016, 9:41:01 PM11/28/16
to dpark-users
Hi 不好意思回复晚了,看起来是 mesos 1.1.0 对status的检查有变化

https://github.com/apache/mesos/commit/ec4c81a12559030791334359e7e1e2b6565cce01

目前DPark还没有针对 1.1.0 的这个变化做修改,你可以尝试暂时使用 mesos 1.0.x
感谢你的反馈,我们会尽快修复这个问题发布新的版本

To unsubscribe from this group and stop receiving emails from it, send an email to dpark-users+unsubscribe@googlegroups.com.

田忠博(Zhongbo Tian)

unread,
Nov 28, 2016, 9:43:00 PM11/28/16
to dpark-users
如果方便可以在 Github 上提一个 issue 来方便我们追踪问题和改进

谢谢

田忠博(Zhongbo Tian)

unread,
Nov 28, 2016, 9:58:09 PM11/28/16
to dpark-users
这里有一个 hotfix 你可以尝试一下

https://github.com/douban/pymesos/pull/45

TAO

unread,
Nov 29, 2016, 1:05:46 AM11/29/16
to DPark Users
谢谢田老师,我先试试这个hotfix。



在 2016年11月29日星期二 UTC+8上午10:58:09,田忠博写道:

TAO

unread,
Nov 29, 2016, 1:36:25 AM11/29/16
to DPark Users
感谢,打了补丁后问题解决。我抽时间发个issue。




在 2016年11月29日星期二 UTC+8上午10:58:09,田忠博写道:
这里有一个 hotfix 你可以尝试一下

https://github.com/douban/pymesos/pull/45

田忠博(Zhongbo Tian)

unread,
Nov 29, 2016, 5:15:42 AM11/29/16
to dpark-users
好的,多谢

To unsubscribe from this group and stop receiving emails from it, send an email to dpark-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages