[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesos-user
Subject:    Re: Writing outside the sandbox
From:       John Omernik <john () omernik ! com>
Date:       2015-05-18 15:21:45
Message-ID: CAKOFcwpbMwL50Hw0Fc6r=K6DAQNS3sXC3T862ys+AkRUz4ufug () mail ! gmail ! com
[Download RAW message or body]

So I did some testing today, I was able to recreate the exact ID string on
a server with access to the share. (Remember the ID string that marathon
runs is different than the standard user... for some reason the only groups
that show up in marathon are the user's group and root(0).   I recreated
that exact same setup, and was still able to create the files running
directly (not through mesos/marathon).  The containerization I am using is
docker,mesos would that play a role here?

Any other thoughts on what could be blocking the write?

On Tue, May 12, 2015 at 3:09 PM, John Omernik <john@omernik.com> wrote:

> Root IS able to write to the share outside of Mesos. I am working with
> MapR to understand the NFS component better.
> 
> 
> 
> On Tue, May 12, 2015 at 11:28 AM, Bjoern Metzdorf <bjoern@metzdorf.de>
> wrote:
> 
> > Is there anything in the nfs server log files? Maybe it squashes root by
> > default and the root group membership of darkness falls into that?
> > 
> > Regards,
> > Bjoern
> > 
> > On May 12, 2015, at 5:53 AM, John Omernik <john@omernik.com> wrote:
> > 
> > So I tried su darkness and su - darkness and both allowed a file write
> > with no issues.  On the group thing, while it is "weird" would that
> > actually hurt ti to contain that group?  Even if I set the directory to 777
> > I still get a failure. on a create within it.  I am guessing this is
> > something more to do with MapRs NFS than Mesos at this point, but if anyone
> > would have any other tips on troubleshooting to confirm that, I'd
> > appreciate it.
> > 
> > John
> > 
> > On Mon, May 11, 2015 at 5:18 PM, Marco Massenzio <marco@mesosphere.io>
> > wrote:
> > 
> > > Looks to me that while 'uid' is 1000
> > > uid=1000(darkness) gid=1000(darkness) groups=1000(darkness),0(root)
> > > 
> > > this is still root's env when run from Mesos (also, weird that groups
> > > contains 0(root)):
> > > USER=root
> > > 
> > > again - not sure how we su to a different user, but this usually happens
> > > if one does `su darkness` (instead of `su - darkness`) from the shell, at
> > > any rate.
> > > 
> > > *Marco Massenzio*
> > > *Distributed Systems Engineer*
> > > 
> > > On Mon, May 11, 2015 at 6:54 AM, John Omernik <john@omernik.com> wrote:
> > > 
> > > > Paul: I checked in multiple places and I don't see rootsquash being
> > > > used. I am using the MapR NFS server, and I do not believe that is a common
> > > > option in the default setup ( I will follow up closer on that).
> > > > 
> > > > Adam and Maxime:  So I included the output of both id (instead of
> > > > whoami) and env (as seen below) and I believe that your ideas may be
> > > > getting somewhere.  There are a number of things that strike me as odd in
> > > > the outputs, and I'd like your thoughts on them.  First of all, remember
> > > > that the permissions on the folders are 775 right now, so with the primary
> > > > group set (which it appears to be based on id) and the user set, it still
> > > > should have write access.  That said, the SUed process doesn't have any of
> > > > the other groups (which I want to test if any of those controls access,
> > > > especially with MapR). At risk of exposing to much information about my
> > > > test network in a public forum, I left all the details in the ENV to see if
> > > > there are things other may see that could be causing me issues.
> > > > 
> > > > Thanks for the replies so far!
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > *New Script:*
> > > > 
> > > > #!/bin/bash
> > > > 
> > > > echo "Writing id information to stderr for one stop logging" 1>&2
> > > > 
> > > > id 1>&2
> > > > 
> > > > 
> > > > echo "" 1>&2
> > > > 
> > > > 
> > > > echo "Printing out the env command to std err for one stop loggins" 1>&
> > > > 2
> > > > 
> > > > env 1>&2
> > > > 
> > > > 
> > > > mkdir /mapr/brewpot/mesos/storm/test/test1
> > > > 
> > > > touch /mapr/brewpot/mesos/storm/test/test1/testing.go
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > *Run within Mesos:*
> > > > 
> > > > I0511 08:41:02.804448  8048 exec.cpp:132] Version: 0.21.0
> > > > I0511 08:41:02.814324  8059 exec.cpp:206] Executor registered on slave
> > > > 20150505-145508-1644210368-5050-8608-S2
> > > > Writing id information to stderr for one stop logging
> > > > uid=1000(darkness) gid=1000(darkness) groups=1000(darkness),0(root)
> > > > 
> > > > Printing out the env command to std err for one stop loggins
> > > > LIBPROCESS_IP=192.168.0.98
> > > > HOST=hadoopmapr3.brewingintel.com
> > > > SHELL=/bin/bash
> > > > TERM=unknown
> > > > PORT_10005=31783
> > > > 
> > > > MESOS_DIRECTORY=/tmp/mesos/slaves/20150505-145508-1644210368-5050-8608-S2/fram \
> > > > eworks/20150302-094409-1644210368-5050-2134-0003/executors/permtest.5f822976-f7e3-11e4-a22d-56847afe9799/runs/e53dc010-dd3c-4993-8f39-f8b532e5cf8b
> > > >  PORT0=31783
> > > > MESOS_TASK_ID=permtest.5f822976-f7e3-11e4-a22d-56847afe9799
> > > > USER=root
> > > > LD_LIBRARY_PATH=:/usr/local/lib
> > > > SUDO_USER=darkness
> > > > MESOS_EXECUTOR_ID=permtest.5f822976-f7e3-11e4-a22d-56847afe9799
> > > > SUDO_UID=1000
> > > > USERNAME=root
> > > > 
> > > > PATH=/home/darkness:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> > > >  MAIL=/var/mail/root
> > > > 
> > > > PWD=/opt/mapr/mesos/tmp/slave/slaves/20150505-145508-1644210368-5050-8608-S2/f \
> > > > rameworks/20150302-094409-1644210368-5050-2134-0003/executors/permtest.5f822976-f7e3-11e4-a22d-56847afe9799/runs/e53dc010-dd3c-4993-8f39-f8b532e5cf8b
> > > >  MESOS_NATIVE_JAVA_LIBRARY=/usr/local/lib/libmesos-0.21.0.so
> > > > MESOS_NATIVE_LIBRARY=/usr/local/lib/libmesos-0.21.0.so
> > > > LANG=en_US.UTF-8
> > > > PORTS=31783
> > > > MESOS_SLAVE_PID=slave(1)@192.168.0.98:5051
> > > > MESOS_FRAMEWORK_ID=20150302-094409-1644210368-5050-2134-0003
> > > > MESOS_CHECKPOINT=1
> > > > SUDO_COMMAND=/usr/local/bin/mesos daemon.sh mesos-slave --master=
> > > > 192.168.0.98:5050 --ip=192.168.0.98
> > > > --log_dir=/opt/mapr/mesos/tmp/slave_log/ --containerizers=docker,mesos
> > > > --gc_delay=600mins --disk_watch_interval=60secs
> > > > HOME=/home/darkness
> > > > SHLVL=2
> > > > LIBPROCESS_PORT=0
> > > > MARATHON_APP_ID=/permtest
> > > > PYTHONPATH=:/usr/local/libexec/mesos/python
> > > > MARATHON_APP_VERSION=2015-05-11T13:41:04.218Z
> > > > LOGNAME=root
> > > > MESOS_SLAVE_ID=20150505-145508-1644210368-5050-8608-S2
> > > > PORT=31783
> > > > SUDO_GID=1000
> > > > MESOS_RECOVERY_TIMEOUT=15mins
> > > > _=/usr/bin/env
> > > > mkdir: cannot create directory `/mapr/brewpot/mesos/storm/test/test1':
> > > > Permission denied
> > > > touch: cannot touch `/mapr/brewpot/mesos/storm/test/test1/testing.go':
> > > > No such file or directory
> > > > 
> > > > 
> > > > *Run from command line:*
> > > > 
> > > > Writing id information to stderr for one stop logging
> > > > uid=1000(darkness) gid=1000(darkness)
> > > > groups=1000(darkness),4(adm),24(cdrom),27(sudo),30(dip),42(shadow),46(plugdev),111(lpadmin),112(sambashare),700(mapr),2000(brewclub),2001(lcusers)
> > > >  
> > > > Printing out the env command to std err for one stop loggins
> > > > SHELL=/bin/bash
> > > > TERM=xterm-256color
> > > > 
> > > > XDG_SESSION_COOKIE=fd12ce903630f14654f11d12000006ce-1431349941.139006-807917506
> > > >  SSH_CLIENT=192.168.0.186 57204 22
> > > > SSH_TTY=/dev/pts/0
> > > > USER=darkness
> > > > 
> > > > LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01: \
> > > > cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44: \
> > > > ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01 \
> > > > ;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01 \
> > > > ;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz \
> > > > =01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31 \
> > > > :*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg= \
> > > > 01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35 \
> > > > :*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.sv \
> > > > g=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01 \
> > > > ;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:* \
> > > > .mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01 \
> > > > ;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*. \
> > > > dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01; \
> > > > 35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m \
> > > > id=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
> > > >  
> > > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/scala/bin
> > > >  MAIL=/var/mail/darkness
> > > > PWD=/mnt
> > > > LANG=en_US.UTF-8
> > > > NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
> > > > HOME=/home/darkness
> > > > SHLVL=2
> > > > LOGNAME=darkness
> > > > SSH_CONNECTION=192.168.0.186 57204 192.168.0.100 22
> > > > LESSOPEN=| /usr/bin/lesspipe %s
> > > > LESSCLOSE=/usr/bin/lesspipe %s %s
> > > > _=/usr/bin/env
> > > > 
> > > > 
> > > > On Mon, May 11, 2015 at 1:05 AM, Maxime Brugidou <
> > > > maxime.brugidou@gmail.com> wrote:
> > > > 
> > > > > Mesos does not set the groups of the process correctly. There is a
> > > > > JIRA ticket for that. It only set the gid. I believe that this could
> > > > > explain the issue if your user is in a specific NFS group to be able go
> > > > > write.
> > > > > 
> > > > > See
> > > > > https://issues.apache.org/jira/plugins/servlet/mobile#issue/MESOS-719
> > > > > On May 11, 2015 3:51 AM, "Paul Brett" <pbrett@twitter.com> wrote:
> > > > > 
> > > > > > Can you check on the NFS server to see if the filesystem has been
> > > > > > exported with the rootsquash option?  That's a commonly used option which
> > > > > > converts root uid on NFS clients to nobody on the server.
> > > > > > 
> > > > > > -- Paul Brett
> > > > > > On May 10, 2015 5:15 PM, "Adam Bordelon" <adam@mesosphere.io> wrote:
> > > > > > 
> > > > > > > Go ahead and run `env` in your script too, and see if there are any
> > > > > > > interesting differences when run via Marathon vs. directly.
> > > > > > > Maybe you're running in a different shell?
> > > > > > > 
> > > > > > > On Sun, May 10, 2015 at 2:21 PM, John Omernik <john@omernik.com>
> > > > > > > wrote:
> > > > > > > 
> > > > > > > > I believe the slave IS running as root. FWIW when I ran the script
> > > > > > > > from above as root, it did work as intended (created the files on the \
> > > > > > > > NFS share).
> > > > > > > > 
> > > > > > > > On Sun, May 10, 2015 at 9:08 AM, Dick Davies <
> > > > > > > > dick@hellooperator.net> wrote:
> > > > > > > > 
> > > > > > > > > Any idea what user mesos is running as? This could just be a
> > > > > > > > > filesystem permission
> > > > > > > > > thing (ISTR last time I used NFS mounts, they had a 'root squash'
> > > > > > > > > option that prevented
> > > > > > > > > local root from writing to the NFS mount).
> > > > > > > > > 
> > > > > > > > > On 9 May 2015 at 22:13, John Omernik <john@omernik.com> wrote:
> > > > > > > > > > I am not specifying isolators. The Default? :)  Is that a per
> > > > > > > > > slave setting?
> > > > > > > > > > 
> > > > > > > > > > On Sat, May 9, 2015 at 3:33 PM, James DeFelice <
> > > > > > > > > james.defelice@gmail.com>
> > > > > > > > > > wrote:
> > > > > > > > > > > 
> > > > > > > > > > > What isolators are you using?
> > > > > > > > > > > 
> > > > > > > > > > > On Sat, May 9, 2015 at 3:48 PM, John Omernik <john@omernik.com>
> > > > > > > > > wrote:
> > > > > > > > > > > > 
> > > > > > > > > > > > Marco... great idea... thank you.  I just tried it and it
> > > > > > > > > worked when I
> > > > > > > > > > > > had a /mnt/permtesting with the same permissions.  So it
> > > > > > > > > appears something
> > > > > > > > > > > > to do with NFS and Mesos (Remember I tested just NFS that
> > > > > > > > > worked fine, it's
> > > > > > > > > > > > the combination that is causing this).
> > > > > > > > > > > > 
> > > > > > > > > > > > On Sat, May 9, 2015 at 1:09 PM, Marco Massenzio <
> > > > > > > > > marco@mesosphere.io>
> > > > > > > > > > > > wrote:
> > > > > > > > > > > > > 
> > > > > > > > > > > > > Out of my own curiousity (sorry, I have no fresh insights
> > > > > > > > > into the issue
> > > > > > > > > > > > > here) did you try to run the script and write to a non-NFS
> > > > > > > > > mounted
> > > > > > > > > > > > > directory? (same ownership/permissions)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > This way we could at least find out whether it's something
> > > > > > > > > related to
> > > > > > > > > > > > > NFS, or a more general permission-related issue.
> > > > > > > > > > > > > 
> > > > > > > > > > > > > Marco Massenzio
> > > > > > > > > > > > > Distributed Systems Engineer
> > > > > > > > > > > > > 
> > > > > > > > > > > > > On Sat, May 9, 2015 at 5:10 AM, John Omernik <
> > > > > > > > > john@omernik.com> wrote:
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > Here is the testing I am doing. I used a simple script
> > > > > > > > > (run.sh)  It
> > > > > > > > > > > > > > writes the user it is running as to stderr (so it's the \
> > > > > > > > > > > > > > same
> > > > > > > > > log as the
> > > > > > > > > > > > > > errors from file writing) and then tries to make a \
> > > > > > > > > > > > > > directory
> > > > > > > > > in nfs, and
> > > > > > > > > > > > > > then touch a file in nfs.  Note: This script directly run
> > > > > > > > > works on every
> > > > > > > > > > > > > > node.  You can see the JSON I used in marathon, and in \
> > > > > > > > > > > > > > the
> > > > > > > > > sandbox results,
> > > > > > > > > > > > > > you can see the user is indeed darkness and the directory
> > > > > > > > > cannot be created.
> > > > > > > > > > > > > > However when directly run, it the script, with the same
> > > > > > > > > user, creates the
> > > > > > > > > > > > > > directory with no issue.  Now,  I realize this COULD \
> > > > > > > > > > > > > > still
> > > > > > > > > be a NFS quirk
> > > > > > > > > > > > > > here, however, this testing points at some restriction in
> > > > > > > > > how marathon kicks
> > > > > > > > > > > > > > off the cmd.   Any thoughts on where to look would be \
> > > > > > > > > > > > > > very
> > > > > > > > > helpful!
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > John
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > Script:
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > #!/bin/bash
> > > > > > > > > > > > > > echo "Writing whoami to stderr for one stop logging" 1>&2
> > > > > > > > > > > > > > whoami 1>&2
> > > > > > > > > > > > > > mkdir /mapr/brewpot/mesos/storm/test/test1
> > > > > > > > > > > > > > touch /mapr/brewpot/mesos/storm/test/test1/testing.go
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > Run Via Marathon
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > {
> > > > > > > > > > > > > > "cmd": "/mapr/brewpot/mesos/storm/run.sh",
> > > > > > > > > > > > > > "cpus": 1.0,
> > > > > > > > > > > > > > "mem": 1024,
> > > > > > > > > > > > > > "id": "permtest",
> > > > > > > > > > > > > > "user": "darkness",
> > > > > > > > > > > > > > "instances": 1
> > > > > > > > > > > > > > }
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > I0509 07:02:52.457242  9562 exec.cpp:132] Version: 0.21.0
> > > > > > > > > > > > > > I0509 07:02:52.462700  9570 exec.cpp:206] Executor
> > > > > > > > > registered on slave
> > > > > > > > > > > > > > 20150505-145508-1644210368-5050-8608-S0
> > > > > > > > > > > > > > Writing whoami to stderr for one stop logging
> > > > > > > > > > > > > > darkness
> > > > > > > > > > > > > > mkdir: cannot create directory
> > > > > > > > > `/mapr/brewpot/mesos/storm/test/test1':
> > > > > > > > > > > > > > Permission denied
> > > > > > > > > > > > > > touch: cannot touch
> > > > > > > > > `/mapr/brewpot/mesos/storm/test/test1/testing.go':
> > > > > > > > > > > > > > No such file or directory
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > Run Via Shell:
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > $ /mapr/brewpot/mesos/storm/run.sh
> > > > > > > > > > > > > > Writing whoami to stderr for one stop logging
> > > > > > > > > > > > > > darkness
> > > > > > > > > > > > > > darkness@hadoopmapr1:/mapr/brewpot/mesos/storm$ ls \
> > > > > > > > > > > > > > ./test/ test1
> > > > > > > > > > > > > > darkness@hadoopmapr1:/mapr/brewpot/mesos/storm$ ls
> > > > > > > > > ./test/test1/
> > > > > > > > > > > > > > testing.go
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > On Sat, May 9, 2015 at 3:14 AM, Adam Bordelon <
> > > > > > > > > adam@mesosphere.io>
> > > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > I don't know of anything inside of Mesos that would \
> > > > > > > > > > > > > > > prevent
> > > > > > > > > you from
> > > > > > > > > > > > > > > writing to NFS. Maybe examine the environment variables \
> > > > > > > > > > > > > > > set
> > > > > > > > > when running as
> > > > > > > > > > > > > > > that user. Or are you running in a Docker container? \
> > > > > > > > > > > > > > > Those
> > > > > > > > > can have
> > > > > > > > > > > > > > > additional restrictions.
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > On Fri, May 8, 2015 at 4:44 PM, John Omernik <
> > > > > > > > > john@omernik.com> wrote:
> > > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > > I am doing something where people may recommend \
> > > > > > > > > > > > > > > > against my
> > > > > > > > > course of
> > > > > > > > > > > > > > > > action. However, I am curious if there is "a way"
> > > > > > > > > basically I have a process
> > > > > > > > > > > > > > > > being kicked off in marathon that is trying to write \
> > > > > > > > > > > > > > > > to a
> > > > > > > > > nfs location.  The
> > > > > > > > > > > > > > > > permissions of the user running the task and the nfs
> > > > > > > > > location are good. So
> > > > > > > > > > > > > > > > what component of mesos or marathon is keeping me \
> > > > > > > > > > > > > > > > from
> > > > > > > > > writing here ?  ( I
> > > > > > > > > > > > > > > > am getting permission denied). Is this one of those \
> > > > > > > > > > > > > > > > things
> > > > > > > > > that is just not
> > > > > > > > > > > > > > > > allowed, or is there an option to pass to marathon to
> > > > > > > > > allow this?  Thanks !
> > > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > > --
> > > > > > > > > > > > > > > > Sent from my iThing
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > 
> > > > > > > > > > > > 
> > > > > > > > > > > 
> > > > > > > > > > > 
> > > > > > > > > > > 
> > > > > > > > > > > --
> > > > > > > > > > > James DeFelice
> > > > > > > > > > > 585.241.9488 (voice)
> > > > > > > > > > > 650.649.6071 (fax)
> > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > 
> > > > 
> > > 
> > 
> 


[Attachment #3 (text/html)]

<div dir="ltr">So I did some testing today, I was able to recreate the exact ID \
string on a server with access to the share. (Remember the ID string that marathon \
runs is different than the standard user... for some reason the only groups that show \
up in marathon are the user&#39;s group and root(0).    I recreated that exact same \
setup, and was still able to create the files running directly (not through \
mesos/marathon).   The containerization I am using is docker,mesos would that play a \
role here?   <div><br></div><div>Any other thoughts on what could be blocking the \
write?  </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May \
12, 2015 at 3:09 PM, John Omernik <span dir="ltr">&lt;<a \
href="mailto:john@omernik.com" target="_blank">john@omernik.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Root IS able to \
write to the share outside of Mesos. I am working with MapR to understand the NFS \
component better.  </div><div><div class="h5"><div class="gmail_extra"><br></div><div \
class="gmail_extra"><br></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Tue, May 12, 2015 at 11:28 AM, Bjoern Metzdorf <span \
dir="ltr">&lt;<a href="mailto:bjoern@metzdorf.de" \
target="_blank">bjoern@metzdorf.de</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="auto"><div>Is there anything in the nfs server log \
files? Maybe it squashes root by default and the root group membership of darkness \
falls into that?<br><br><div>Regards,</div><div>Bjoern</div></div><div><div><div><br>On \
May 12, 2015, at 5:53 AM, John Omernik &lt;<a href="mailto:john@omernik.com" \
target="_blank">john@omernik.com</a>&gt; wrote:<br><br></div><blockquote \
type="cite"><div><div dir="ltr">So I tried su darkness and su - darkness and both \
allowed a file write with no issues.   On the group thing, while it is \
&quot;weird&quot; would that actually hurt ti to contain that group?   Even if I set \
the directory to 777 I still get a failure. on a create within it.   I am guessing \
this is something more to do with MapRs NFS than Mesos at this point, but if anyone \
would have any other tips on troubleshooting to confirm that, I&#39;d appreciate it.  \
<div><br></div><div>John</div></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Mon, May 11, 2015 at 5:18 PM, Marco Massenzio <span \
dir="ltr">&lt;<a href="mailto:marco@mesosphere.io" \
target="_blank">marco@mesosphere.io</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Looks to me that while &#39;uid&#39; is \
1000<br><div><span style="font-size:12.8000001907349px">uid=1000(darkness) \
gid=1000(darkness) groups=1000(darkness),0(root)</span></div><div><br></div><div>this \
is still root&#39;s env when run from Mesos (also, weird that groups contains \
0(root)):</div><div>USER=root</div><div><br></div><div>again - not sure how we su to \
a different user, but this usually happens if one does `su darkness` (instead of `su \
- darkness`) from the shell, at any rate.  </div></div><div \
class="gmail_extra"><span><br clear="all"><div><div><div dir="ltr"><i><font \
color="#0b5394" style="background-color:rgb(255,255,255)">Marco \
Massenzio</font></i><div><i><font color="#6fa8dc">Distributed Systems \
Engineer</font></i></div></div></div></div> <br></span><div><div><div \
class="gmail_quote">On Mon, May 11, 2015 at 6:54 AM, John Omernik <span \
dir="ltr">&lt;<a href="mailto:john@omernik.com" \
target="_blank">john@omernik.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>Paul: I checked in multiple places and I \
don&#39;t see rootsquash being used. I am using the MapR NFS server, and I do not \
believe that is a common option in the default setup ( I will follow up closer on \
that).  </div><div><br></div><div>Adam and Maxime:   So I included the output of both \
id (instead of whoami) and env (as seen below) and I believe that your ideas may be \
getting somewhere.   There are a number of things that strike me as odd in the \
outputs, and I&#39;d like your thoughts on them.   First of all, remember that the \
permissions on the folders are 775 right now, so with the primary group set (which it \
appears to be based on id) and the user set, it still should have write access.   \
That said, the SUed process doesn&#39;t have any of the other groups (which I want to \
test if any of those controls access, especially with MapR). At risk of exposing to \
much information about my test network in a public forum, I left all the details in \
the ENV to see if there are things other may see that could be causing me issues.  \
</div><div><br></div><div>Thanks for the replies so \
far!</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><b>New \
Script:</b></div><div><br></div><div>







<p><span>#!/bin/bash</span></p>
<p><span>echo</span><span> </span><span>&quot;Writing id information to stderr for \
one stop logging&quot;</span><span> 1</span><span>&gt;&amp;</span><span>2</span></p> \
<p><span>id 1</span><span>&gt;&amp;</span><span>2</span></p> <p><span></span><br></p>
<p><span>echo</span><span> </span><span>&quot;&quot;</span><span> \
1</span><span>&gt;&amp;</span><span>2</span></p> <p><span></span><br></p>
<p><span>echo</span><span> </span><span>&quot;Printing out the env command to std err \
for one stop loggins&quot;</span><span> \
1</span><span>&gt;&amp;</span><span>2</span></p> <p><span>env</span><span> \
1</span><span>&gt;&amp;</span><span>2</span></p> <p><span></span><br></p>
<p><span>mkdir</span><span> \
/mapr/brewpot/mesos/storm/test/test1</span><br><span></span></p><p><span></span></p> \
<p><span>touch</span><span> \
/mapr/brewpot/mesos/storm/test/test1/testing.go</span></p> \
<p><span></span><br></p></div><div><br></div><div><br></div><div><br></div><div><b>Run \
within Mesos:</b></div><div><br></div><div><div>I0511 08:41:02.804448   8048 \
exec.cpp:132] Version: 0.21.0</div><div>I0511 08:41:02.814324   8059 exec.cpp:206] \
Executor registered on slave \
20150505-145508-1644210368-5050-8608-S2</div><div>Writing id information to stderr \
for one stop logging</div><div>uid=1000(darkness) gid=1000(darkness) \
groups=1000(darkness),0(root)</div><div><br></div><div>Printing out the env command \
to std err for one stop \
loggins</div><div>LIBPROCESS_IP=192.168.0.98</div><div>HOST=<a \
href="http://hadoopmapr3.brewingintel.com" \
target="_blank">hadoopmapr3.brewingintel.com</a></div><div>SHELL=/bin/bash</div><div>T \
ERM=unknown</div><div>PORT_10005=31783</div><div>MESOS_DIRECTORY=/tmp/mesos/slaves/201 \
50505-145508-1644210368-5050-8608-S2/frameworks/20150302-094409-1644210368-5050-2134-0 \
003/executors/permtest.5f822976-f7e3-11e4-a22d-56847afe9799/runs/e53dc010-dd3c-4993-8f \
39-f8b532e5cf8b</div><div>PORT0=31783</div><div>MESOS_TASK_ID=permtest.5f822976-f7e3-1 \
1e4-a22d-56847afe9799</div><div>USER=root</div><div>LD_LIBRARY_PATH=:/usr/local/lib</d \
iv><div>SUDO_USER=darkness</div><div>MESOS_EXECUTOR_ID=permtest.5f822976-f7e3-11e4-a22 \
d-56847afe9799</div><div>SUDO_UID=1000</div><div>USERNAME=root</div><div>PATH=/home/da \
rkness:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</div><div>MAIL=/va \
r/mail/root</div><div>PWD=/opt/mapr/mesos/tmp/slave/slaves/20150505-145508-1644210368- \
5050-8608-S2/frameworks/20150302-094409-1644210368-5050-2134-0003/executors/permtest.5 \
f822976-f7e3-11e4-a22d-56847afe9799/runs/e53dc010-dd3c-4993-8f39-f8b532e5cf8b</div><div>MESOS_NATIVE_JAVA_LIBRARY=/usr/local/lib/<a \
href="http://libmesos-0.21.0.so" \
target="_blank">libmesos-0.21.0.so</a></div><div>MESOS_NATIVE_LIBRARY=/usr/local/lib/<a \
href="http://libmesos-0.21.0.so" \
target="_blank">libmesos-0.21.0.so</a></div><div>LANG=en_US.UTF-8</div><div>PORTS=31783</div><div>MESOS_SLAVE_PID=slave(1)@<a \
href="http://192.168.0.98:5051" \
target="_blank">192.168.0.98:5051</a></div><div>MESOS_FRAMEWORK_ID=20150302-094409-164 \
4210368-5050-2134-0003</div><div>MESOS_CHECKPOINT=1</div><div>SUDO_COMMAND=/usr/local/bin/mesos \
daemon.sh mesos-slave --master=<a href="http://192.168.0.98:5050" \
target="_blank">192.168.0.98:5050</a> --ip=192.168.0.98 \
--log_dir=/opt/mapr/mesos/tmp/slave_log/ --containerizers=docker,mesos \
--gc_delay=600mins --disk_watch_interval=60secs</div><div>HOME=/home/darkness</div><di \
v>SHLVL=2</div><div>LIBPROCESS_PORT=0</div><div>MARATHON_APP_ID=/permtest</div><div>PY \
THONPATH=:/usr/local/libexec/mesos/python</div><div>MARATHON_APP_VERSION=2015-05-11T13 \
:41:04.218Z</div><div>LOGNAME=root</div><div>MESOS_SLAVE_ID=20150505-145508-1644210368 \
-5050-8608-S2</div><div>PORT=31783</div><div>SUDO_GID=1000</div><div>MESOS_RECOVERY_TIMEOUT=15mins</div><div>_=/usr/bin/env</div><span><div>mkdir: \
cannot create directory `/mapr/brewpot/mesos/storm/test/test1&#39;: Permission \
denied</div><div>touch: cannot touch \
`/mapr/brewpot/mesos/storm/test/test1/testing.go&#39;: No such file or \
directory</div><div><br></div><div><br></div></span><div><b>Run from command \
line:</b></div><div><br></div><div>Writing id information to stderr for one stop \
logging</div><div>uid=1000(darkness) gid=1000(darkness) \
groups=1000(darkness),4(adm),24(cdrom),27(sudo),30(dip),42(shadow),46(plugdev),111(lpa \
dmin),112(sambashare),700(mapr),2000(brewclub),2001(lcusers)</div><div><br></div><div>Printing \
out the env command to std err for one stop \
loggins</div><div>SHELL=/bin/bash</div><div>TERM=xterm-256color</div><div>XDG_SESSION_ \
COOKIE=fd12ce903630f14654f11d12000006ce-1431349941.139006-807917506</div><div>SSH_CLIENT=192.168.0.186 \
57204 22</div><div>SSH_TTY=/dev/pts/0</div><div>USER=darkness</div><div>LS_COLORS=rs=0 \
:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;0 \
1:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01; \
31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;3 \
1:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01; \
31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31 \
:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:* \
.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.p \
pm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.sv \
g=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2 \
v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vo \
b=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=0 \
1;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35 \
:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:* \
.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*. \
mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xsp \
f=00;36:</div><div>PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/ \
usr/games:/usr/lib/scala/bin</div><div>MAIL=/var/mail/darkness</div><div>PWD=/mnt</div \
><div>LANG=en_US.UTF-8</div><div>NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/ \
> share/javascript</div><div>HOME=/home/darkness</div><div>SHLVL=2</div><div>LOGNAME=darkness</div><div>SSH_CONNECTION=192.168.0.186 \
> 57204 192.168.0.100 22</div><div>LESSOPEN=| /usr/bin/lesspipe \
> %s</div><div>LESSCLOSE=/usr/bin/lesspipe %s \
> %s</div><div>_=/usr/bin/env</div></div><div><br></div></div><div><div><div \
> class="gmail_extra"><br><div class="gmail_quote">On Mon, May 11, 2015 at 1:05 AM, \
> Maxime Brugidou <span dir="ltr">&lt;<a href="mailto:maxime.brugidou@gmail.com" \
> target="_blank">maxime.brugidou@gmail.com</a>&gt;</span> wrote:<br><blockquote \
> class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
> solid;padding-left:1ex"><p dir="ltr">Mesos does not set the groups of the process \
> correctly. There is a JIRA ticket for that. It only set the gid. I believe that \
> this could explain the issue if your user is in a specific NFS group to be able go \
> write.</p>
<p dir="ltr">See<br>
<a href="https://issues.apache.org/jira/plugins/servlet/mobile#issue/MESOS-719" \
target="_blank">https://issues.apache.org/jira/plugins/servlet/mobile#issue/MESOS-719</a><br>
 </p><div><div>
<div class="gmail_quote">On May 11, 2015 3:51 AM, &quot;Paul Brett&quot; &lt;<a \
href="mailto:pbrett@twitter.com" target="_blank">pbrett@twitter.com</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Can you check on the \
NFS server to see if the filesystem has been exported with the rootsquash option?   \
That&#39;s a commonly used option which converts root uid on NFS clients to nobody on \
the server.</p> <p dir="ltr">-- Paul Brett</p>
<div class="gmail_quote">On May 10, 2015 5:15 PM, &quot;Adam Bordelon&quot; &lt;<a \
href="mailto:adam@mesosphere.io" target="_blank">adam@mesosphere.io</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Go ahead and \
run `env` in your script too, and see if there are any interesting differences when \
run via Marathon vs. directly.<br></div>Maybe you&#39;re running in a different \
shell?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 10, \
2015 at 2:21 PM, John Omernik <span dir="ltr">&lt;<a href="mailto:john@omernik.com" \
target="_blank">john@omernik.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">I believe the slave IS running as root. FWIW \
when I ran the script from above as root, it did work as intended (created the files \
on the NFS share).   </div><div><div><div class="gmail_extra"><br><div \
class="gmail_quote">On Sun, May 10, 2015 at 9:08 AM, Dick Davies <span \
dir="ltr">&lt;<a href="mailto:dick@hellooperator.net" \
target="_blank">dick@hellooperator.net</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Any idea what user mesos is running as? This could just be \
a<br> filesystem permission<br>
thing (ISTR last time I used NFS mounts, they had a &#39;root squash&#39;<br>
option that prevented<br>
local root from writing to the NFS mount).<br>
<div><div><br>
On 9 May 2015 at 22:13, John Omernik &lt;<a href="mailto:john@omernik.com" \
target="_blank">john@omernik.com</a>&gt; wrote:<br> &gt; I am not specifying \
isolators. The Default? :)   Is that a per slave setting?<br> &gt;<br>
&gt; On Sat, May 9, 2015 at 3:33 PM, James DeFelice &lt;<a \
href="mailto:james.defelice@gmail.com" \
target="_blank">james.defelice@gmail.com</a>&gt;<br> &gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; What isolators are you using?<br>
&gt;&gt;<br>
&gt;&gt; On Sat, May 9, 2015 at 3:48 PM, John Omernik &lt;<a \
href="mailto:john@omernik.com" target="_blank">john@omernik.com</a>&gt; wrote:<br> \
&gt;&gt;&gt;<br> &gt;&gt;&gt; Marco... great idea... thank you.   I just tried it and \
it worked when I<br> &gt;&gt;&gt; had a /mnt/permtesting with the same permissions.   \
So it appears something<br> &gt;&gt;&gt; to do with NFS and Mesos (Remember I tested \
just NFS that worked fine, it&#39;s<br> &gt;&gt;&gt; the combination that is causing \
this).<br> &gt;&gt;&gt;<br>
&gt;&gt;&gt; On Sat, May 9, 2015 at 1:09 PM, Marco Massenzio &lt;<a \
href="mailto:marco@mesosphere.io" target="_blank">marco@mesosphere.io</a>&gt;<br> \
&gt;&gt;&gt; wrote:<br> &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Out of my own curiousity (sorry, I have no fresh insights into the \
issue<br> &gt;&gt;&gt;&gt; here) did you try to run the script and write to a non-NFS \
mounted<br> &gt;&gt;&gt;&gt; directory? (same ownership/permissions)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; This way we could at least find out whether it&#39;s something \
related to<br> &gt;&gt;&gt;&gt; NFS, or a more general permission-related issue.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Marco Massenzio<br>
&gt;&gt;&gt;&gt; Distributed Systems Engineer<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Sat, May 9, 2015 at 5:10 AM, John Omernik &lt;<a \
href="mailto:john@omernik.com" target="_blank">john@omernik.com</a>&gt; wrote:<br> \
&gt;&gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt;&gt; Here is the testing I am doing. I used \
a simple script (run.sh)   It<br> &gt;&gt;&gt;&gt;&gt; writes the user it is running \
as to stderr (so it&#39;s the same log as the<br> &gt;&gt;&gt;&gt;&gt; errors from \
file writing) and then tries to make a directory in nfs, and<br> &gt;&gt;&gt;&gt;&gt; \
then touch a file in nfs.   Note: This script directly run   works on every<br> \
&gt;&gt;&gt;&gt;&gt; node.   You can see the JSON I used in marathon, and in the \
sandbox results,<br> &gt;&gt;&gt;&gt;&gt; you can see the user is indeed darkness and \
the directory cannot be created.<br> &gt;&gt;&gt;&gt;&gt; However when directly run, \
it the script, with the same user, creates the<br> &gt;&gt;&gt;&gt;&gt; directory \
with no issue.   Now,   I realize this COULD still be a NFS quirk<br> \
&gt;&gt;&gt;&gt;&gt; here, however, this testing points at some restriction in how \
marathon kicks<br> &gt;&gt;&gt;&gt;&gt; off the cmd.     Any thoughts on where to \
look would be very helpful!<br> &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; John<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Script:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; #!/bin/bash<br>
&gt;&gt;&gt;&gt;&gt; echo &quot;Writing whoami to stderr for one stop logging&quot; \
1&gt;&amp;2<br> &gt;&gt;&gt;&gt;&gt; whoami 1&gt;&amp;2<br>
&gt;&gt;&gt;&gt;&gt; mkdir /mapr/brewpot/mesos/storm/test/test1<br>
&gt;&gt;&gt;&gt;&gt; touch /mapr/brewpot/mesos/storm/test/test1/testing.go<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Run Via Marathon<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; {<br>
&gt;&gt;&gt;&gt;&gt; &quot;cmd&quot;: \
&quot;/mapr/brewpot/mesos/storm/run.sh&quot;,<br> &gt;&gt;&gt;&gt;&gt; \
&quot;cpus&quot;: 1.0,<br> &gt;&gt;&gt;&gt;&gt; &quot;mem&quot;: 1024,<br>
&gt;&gt;&gt;&gt;&gt; &quot;id&quot;: &quot;permtest&quot;,<br>
&gt;&gt;&gt;&gt;&gt; &quot;user&quot;: &quot;darkness&quot;,<br>
&gt;&gt;&gt;&gt;&gt; &quot;instances&quot;: 1<br>
&gt;&gt;&gt;&gt;&gt; }<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I0509 07:02:52.457242   9562 exec.cpp:132] Version: 0.21.0<br>
&gt;&gt;&gt;&gt;&gt; I0509 07:02:52.462700   9570 exec.cpp:206] Executor registered \
on slave<br> &gt;&gt;&gt;&gt;&gt; 20150505-145508-1644210368-5050-8608-S0<br>
&gt;&gt;&gt;&gt;&gt; Writing whoami to stderr for one stop logging<br>
&gt;&gt;&gt;&gt;&gt; darkness<br>
&gt;&gt;&gt;&gt;&gt; mkdir: cannot create directory \
`/mapr/brewpot/mesos/storm/test/test1&#39;:<br> &gt;&gt;&gt;&gt;&gt; Permission \
denied<br> &gt;&gt;&gt;&gt;&gt; touch: cannot touch \
`/mapr/brewpot/mesos/storm/test/test1/testing.go&#39;:<br> &gt;&gt;&gt;&gt;&gt; No \
such file or directory<br> &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Run Via Shell:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; $ /mapr/brewpot/mesos/storm/run.sh<br>
&gt;&gt;&gt;&gt;&gt; Writing whoami to stderr for one stop logging<br>
&gt;&gt;&gt;&gt;&gt; darkness<br>
&gt;&gt;&gt;&gt;&gt; darkness@hadoopmapr1:/mapr/brewpot/mesos/storm$ ls ./test/<br>
&gt;&gt;&gt;&gt;&gt; test1<br>
&gt;&gt;&gt;&gt;&gt; darkness@hadoopmapr1:/mapr/brewpot/mesos/storm$ ls \
./test/test1/<br> &gt;&gt;&gt;&gt;&gt; testing.go<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On Sat, May 9, 2015 at 3:14 AM, Adam Bordelon &lt;<a \
href="mailto:adam@mesosphere.io" target="_blank">adam@mesosphere.io</a>&gt;<br> \
&gt;&gt;&gt;&gt;&gt; wrote:<br> &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; I don&#39;t know of anything inside of Mesos that would \
prevent you from<br> &gt;&gt;&gt;&gt;&gt;&gt; writing to NFS. Maybe examine the \
environment variables set when running as<br> &gt;&gt;&gt;&gt;&gt;&gt; that user. Or \
are you running in a Docker container? Those can have<br> &gt;&gt;&gt;&gt;&gt;&gt; \
additional restrictions.<br> &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; On Fri, May 8, 2015 at 4:44 PM, John Omernik &lt;<a \
href="mailto:john@omernik.com" target="_blank">john@omernik.com</a>&gt; wrote:<br> \
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt;&gt;&gt;&gt; I am doing something \
where people may recommend against my course of<br> &gt;&gt;&gt;&gt;&gt;&gt;&gt; \
action. However, I am curious if there is &quot;a way&quot; basically I have a \
process<br> &gt;&gt;&gt;&gt;&gt;&gt;&gt; being kicked off in marathon that is trying \
to write to a nfs location.   The<br> &gt;&gt;&gt;&gt;&gt;&gt;&gt; permissions of the \
user running the task and the nfs location are good. So<br> \
&gt;&gt;&gt;&gt;&gt;&gt;&gt; what component of mesos or marathon is keeping me from \
writing here ?   ( I<br> &gt;&gt;&gt;&gt;&gt;&gt;&gt; am getting permission denied). \
Is this one of those things that is just not<br> &gt;&gt;&gt;&gt;&gt;&gt;&gt; \
allowed, or is there an option to pass to marathon to allow this?   Thanks !<br> \
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Sent from my iThing<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; James DeFelice<br>
&gt;&gt; <a href="tel:585.241.9488" value="+15852419488" \
target="_blank">585.241.9488</a> (voice)<br> &gt;&gt; <a href="tel:650.649.6071" \
value="+16506496071" target="_blank">650.649.6071</a> (fax)<br> &gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></blockquote></div></div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic