We have a tool called DRun[1] to submit mpi job to mesos, you could git it
a try.

Usage: drun [options] <command>

Options:
  -h, --help            show this help message and exit
  -s MASTER, --master=MASTER
                        url of master (default: zookeeper
  -i, --mpi             run MPI tasks
  -n TASKS, --tasks=TASKS
                        number task to launch (default: 1)
  -b START, --start=START
                        which task to start (default: 0)
  -p TASK_PER_NODE, --task_per_node=TASK_PER_NODE
                        max number of tasks on one node (default: 0)
  -r RETRY, --retry=RETRY
                        retry times when failed (default: 0)
  -t TIMEOUT, --timeout=TIMEOUT
                        timeout of job in seconds (default: 86400)
  -c CPUS, --cpus=CPUS  number of CPUs per task (default: 1)
  -m MEM, --mem=MEM     MB of memory per task (default: 100m)
  -g GROUP, --group=GROUP
                        which group to run (default: ''
  --expand              expand expression in command line
  --shell               using shell re-intepret the cmd args
  -q, --quiet           be quiet
  -v, --verbose         show more useful log

[1] https://github.com/douban/dpark/tree/master/tools

Davies


On Fri, Jul 19, 2013 at 11:21 AM, Ye Tao <[email protected]> wrote:

> Hello. I think my problem description in  the last letter is not clear.
>
> Actually, when I use mpiexec-mesos.py to submit a job.
>
> A driver is created.
>
>
> everytime when the function  mpiexec()  does not hv the time to run
> call([MPICH2PATH + 'mpiexec', '-1', '-n', str(TOTAL_MPDS)] + MPI_PROGRAM),
> the driver has got the info the task fails and mpdexit.
>
> Could u plz show me how to figure out the statusUpdate process. It seems
> that the control info is sealed in the mesos python model.
>
> I want to check why it returns TASK_FAIL...
>
>
> Sincere thank!
>
>
>
>
> 2013/7/18 Ye Tao <[email protected]>
>
>> Hi, here is the details:
>>
>> I use the latest mesos-trunk. (actually "svn co" several hours ago )
>>
>> I install mpich2-1.2 following the REAME file in mpi folder.
>>
>> I use an helloworld.c mpi example. u can find it in the attachment.
>>
>> I try mpiexec it works well:
>> [image: 内嵌图片 1]
>> then I try run it on mesos.
>> I set this machine both master and slave.
>>
>> Then I start cluster.
>> try the cmd in README:
>> ./mpiexec-mesos 10.194.153.83:5050 ./helloworld
>>
>> It breaks down at slave node immediately:
>> [image: 内嵌图片 3]
>>
>>
>> I check the log file:
>> I0718 18:08:27.232508  6672 slave.cpp:930] Queuing task '0' for executor
>> 0 of framework '201307181807-1402585610-5050-6498-0000
>> I0718 18:08:27.232519  6679 process_isolator.cpp:120] Launching 0
>> (/home/mesos/mesos/libexec/mesos/mesos-executor) in
>> /tmp/mesos/slaves/201307181807-1402585610-5050-6498-0/frameworks/201307181807-1402585610-5050-6498-0000/executors/0/runs/19cd7e79-10e5-42f2-8ab5-89c99366c19a
>> with resources ' for framework 201307181807-1402585610-5050-6498-0000
>> I0718 18:08:27.233882  6684 slave.cpp:514] Successfully attached file
>> '/tmp/mesos/slaves/201307181807-1402585610-5050-6498-0/frameworks/201307181807-1402585610-5050-6498-0000/executors/0/runs/19cd7e79-10e5-42f2-8ab5-89c99366c19a'
>> I0718 18:08:27.234824  6679 process_isolator.cpp:183] Forked executor at
>> 6776
>> I0718 18:08:27.278260  6675 slave.cpp:1382] Got registration for executor
>> '0' of framework 201307181807-1402585610-5050-6498-0000
>> I0718 18:08:27.278591  6675 slave.cpp:1497] Flushing queued task 0 for
>> executor '0' of framework 201307181807-1402585610-5050-6498-0000
>> I0718 18:08:27.281960  6687 status_update_manager.cpp:289] Received
>> status update TASK_RUNNING (UUID: 2ab26368-5521-497d-bd0f-578971f04931) for
>> task 0 of framework 201307181807-1402585610-5050-6498-0000 with
>> checkpoint=false
>> I0718 18:08:27.282130  6687 status_update_manager.cpp:449] Creating
>> StatusUpdate stream for task 0 of framework
>> 201307181807-1402585610-5050-6498-0000
>> I0718 18:08:27.282393  6687 status_update_manager.cpp:335] Forwarding
>> status update TASK_RUNNING (UUID: 2ab26368-5521-497d-bd0f-578971f04931) for
>> task 0 of framework 201307181807-1402585610-5050-6498-0000 to
>> [email protected]:5050
>> I0718 18:08:27.282613  6694 slave.cpp:1789] Sending acknowledgement for
>> status update TASK_RUNNING (UUID: 2ab26368-5521-497d-bd0f-578971f04931) for
>> task 0 of framework 201307181807-1402585610-5050-6498-0000 to executor(1)@
>> 10.194.153.83:36216
>> I0718 18:08:27.282976  6690 status_update_manager.cpp:289] Received
>> status update TASK_FAILED (UUID: 88eaee35-80d8-496a-ac81-e3099d78678d) for
>> task 0 of framework 201307181807-1402585610-5050-6498-0000 with
>> checkpoint=false
>> I0718 18:08:27.283299  6690 slave.cpp:1789] Sending acknowledgement for
>> status update TASK_FAILED (UUID: 88eaee35-80d8-496a-ac81-e3099d78678d) for
>> task 0 of framework 201307181807-1402585610-5050-6498-0000 to executor(1)@
>> 10.194.153.83:36216
>> I0718 18:08:27.283870  6683 status_update_manager.cpp:359] Received
>> status update acknowledgement 2ab26368-5521-497d-bd0f-578971f04931 for task
>> 0 of framework 201307181807-1402585610-5050-6498-0000
>> I0718 18:08:27.283989  6683 status_update_manager.cpp:335] Forwarding
>> status update TASK_FAILED (UUID: 88eaee35-80d8-496a-ac81-e3099d78678d) for
>> task 0 of framework 201307181807-1402585610-5050-6498-0000 to
>> [email protected]:5050
>> I0718 18:08:27.349282  6690 slave.cpp:1101] Asked to shut down framework
>> 201307181807-1402585610-5050-6498-0000 by [email protected]:5050
>>
>>
>>
>> It just suddenly failed...
>> I shall attach the logs of slave and master.
>> I follow the python code.
>> The slave just tells master it fails and the master directly shutdown the
>> framework.
>>
>> I can not figure out why.
>>
>> I really appreciate ur help!
>>
>> Best!
>>
>>
>>
>>
>


-- 
 - Davies

Reply via email to