Thanks for pointing this out. However, it's still unclear to me how to fill in the TaskInfo.
Specifically: (1) Under TaskInfo, it says "Either ExecutorInfo or CommandInfo should be set", that's the difference? (2) How should I pass task information (command, env, etc) to the executor? Do I put these in the TaskInfo.ExecutorInfo? Or should I put these in TaskInfo.ExecutorInfo.data? (3) Is framwork/mesos-submit outdated? the api it uses is different from any other examples Thanks, Li On Wed, Aug 21, 2013 at 10:37 AM, 许立剑 <[email protected]> wrote: > See include/mesos/mesos.proto. > > 许立剑 > > 爱奇艺技术产品中心云平台 > > *[image: cid:[email protected]]* > > ☎ 15652344221 | QQ: 276583295 | 12F-W061 <http://www.iqiyi.com/> > > > > 2013/8/21 Li Jin <[email protected]> > >> Hello, >> >> I am implementing a basic mesos framework(Java) and executor(Python). I >> find it quite difficult to find information about framework/executor >> protocol. Here is all the information I found >> >> Doc: >> >> >> https://github.com/apache/mesos/blob/master/docs/App-Framework-development-guide.textile >> >> This is nice but it doesn't explain things like how to construct TaskInfo >> >> Examples: >> >> src/examples: >> These examples are nice to get started, however, these examples don't >> show some of the basic things I would like to know (they don't pass a >> command to the executor, for instance) >> >> framework/mesos-submit: >> Mesos-submit actually passed a command to the executor which is nice. >> However the python api seems quite different from the java one and I find >> it hard to understand what it's doing and even how to reimplement this in >> Java >> >> In general, I couldn't find doc/example about all the protobuf (TaskInfo, >> ExecutorInfo, etc) objects and how to use them. >> >> I am wondering if there are more for me to look at. If not, I guess my >> best shot is take a look at the source code or Chronos >> >> Thanks, >> Li >> > >
<<DA9C7994-A0D6-4183-9C45-1ECA2C91A74F.png>>

