message = internal.RegisterExecutorMessage()
message.framework_id.value = self.framework_id
print('message.framework_id.value: %s' % message.framework_id.value)
print('self.framework_id: %s' % self.framework_id)
message.executor_id.value = self.executor_id
print('message.executor_id.value: %s' % message.executor_id.value)
即使右侧具有适当的值,也不会为message.framework_id.value和message.executor_id.value分配这些变量。
作为背景,尝试在Windows上用Python编写Mesos Executor ...