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. :) ...

March 31, 2014 · 5 min · Bharath

Running Apache Spark on Apache Mesos

I am trying to run Apache Spark on Apache Mesos. I am following this tutorial. One problem I hit when trying to save the spark distribution on HDFS is: put: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create /user/hduser/spark-1.0.0-SNAPSHOT-hadoop_1.0.4-bin.tar.gz. Name node is in safe mode. This was solved with: bin/hadoop dfsadmin -safemode leave While trying to build mesos I hit the following error: vagrant:/vagrant/mesos/build$ sudo apt-get install python-dev Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: python-dev : Depends: python2.7-dev (>= 2.7.3) but it is not going to be instal led scala : Depends: libjansi-java but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s olution). I was facing this error while doing different apt-get operations and I did not care too much till now. Now I was stumped. So finally ran apt-get -f install without any arguments. Then I could proceed with installing python-dev. Then I proceeded with building mesos. Build went fine. make check failed with the following error: ...

March 28, 2014 · 3 min · Bharath