Having a bit of a strange problem with Mesos 0.22, running Spark 1.4.0, on 
Docker 1.6 slaves. Part of my Spark program calls on a script that accesses a 
GPU. I am able to run this script:

1.       As Bash

2.       Via Marathon

3.       As part of a Spark program running as a standalone master
However, when I try to run the same Spark program with Mesos as master, i.e., 
spark-submit --master mesos://\`cat /etc/mesos/zk\` --deploy-mode client..., I 
am not able to access dri devices, e.g., mfx init: /dev/dri/renderD128 fd open 
failed. What seems to be happening is that the group membership of the default 
user, in this case "ubuntu" is modified by Mesos, i.e., whereas under cases 
1-3, above, I get:

$ id
uid=1000(ubuntu) gid=1000(ubuntu) 
groups=1000(ubuntu),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),102(netdev),999(docker)
In case of Mesos, I get:
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),0(root)

I am wondering if there are configuration parameters that can be passed to 
Mesos to prevent it from modifying user groups?

Cheers,
[http://www.cisco.com/web/europe/images/email/signature/logo05.jpg]

Nastooh Avessta
ENGINEER.SOFTWARE ENGINEERING
[email protected]
Phone: +1 604 647 1527

Cisco Systems Limited
595 Burrard Street, Suite 2123 Three Bentall Centre, PO Box 49121
VANCOUVER
BRITISH COLUMBIA
V7X 1J1
CA
Cisco.com<http://www.cisco.com/>





[Think before you print.]Think before you print.

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review, use, distribution or disclosure by others 
is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete 
all copies of this message.
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html

Cisco Systems Canada Co, 181 Bay St., Suite 3400, Toronto, ON, Canada, M5J 2T3. 
Phone: 416-306-7000; Fax: 416-306-7099. 
Preferences<http://www.cisco.com/offer/subscribe/?sid=000478326> - 
Unsubscribe<http://www.cisco.com/offer/unsubscribe/?sid=000478327> - 
Privacy<http://www.cisco.com/web/siteassets/legal/privacy.html>

Reply via email to