Running Apache Spark on Apache Mesos (continued)
Continuing my failed attempt to run spark on mesos. @pacoid pointed me to a nice tutorial for this. Rest of this post is just documentation of my efforts. To spare you the pain of reading through all of this – it ends well. As of now I just want to run mesos properly. The test failures were due to the /vagrant directory usage. Basically I had synced the mesos source tree into /vagrant, which is shared between the host OS-X and the guest ubuntu-in-vagrant. It turns out that mmap(... MAP_SHARED ...) throws EINVAL when the file being mmaped is in /vagrant. This was causing leveldb’s MANIFEST file write to fail. This in turn caused all the mesos registrar tests and leveldb state tests to fail. So just moving the source tree from /vagrant to /home/vagrant solved the problem and allowed me to do a clean make check. :) ...