<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Apache Mesos on Bharath's Blog</title><link>https://bharathbhushan1.github.io/blog/tags/apache-mesos/</link><description>Recent content in Apache Mesos on Bharath's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 31 Mar 2014 06:00:00 +0000</lastBuildDate><atom:link href="https://bharathbhushan1.github.io/blog/tags/apache-mesos/index.xml" rel="self" type="application/rss+xml"/><item><title>Running Apache Spark on Apache Mesos (continued)</title><link>https://bharathbhushan1.github.io/blog/posts/2014-03-31-mesos-continued/</link><pubDate>Mon, 31 Mar 2014 06:00:00 +0000</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2014-03-31-mesos-continued/</guid><description>&lt;p&gt;Continuing my failed &lt;a href="http://manku-timma.github.io/2014/03/28/running-mesos.html"&gt;attempt&lt;/a&gt; to run spark on mesos.
&lt;a href="https://twitter.com/pacoid"&gt;@pacoid&lt;/a&gt; pointed me to a nice &lt;a href="http://mesosphere.io/learn/run-spark-on-mesos/"&gt;tutorial&lt;/a&gt; for this. Rest
of this post is just documentation of my efforts. To spare you the pain
of reading through all of this &amp;ndash; it ends well.&lt;/p&gt;
&lt;p&gt;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 &lt;code&gt;mmap(... MAP_SHARED ...)&lt;/code&gt; throws &lt;code&gt;EINVAL&lt;/code&gt;
when the file being mmaped is in /vagrant. This was causing leveldb&amp;rsquo;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 &lt;code&gt;make check&lt;/code&gt;. :)&lt;/p&gt;</description></item><item><title>Running Apache Spark on Apache Mesos</title><link>https://bharathbhushan1.github.io/blog/posts/2014-03-28-running-mesos/</link><pubDate>Fri, 28 Mar 2014 20:00:00 +0000</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2014-03-28-running-mesos/</guid><description>&lt;p&gt;I am trying to run Apache Spark on Apache Mesos. I am following &lt;a href="https://spark.apache.org/docs/latest/running-on-mesos.html"&gt;this&lt;/a&gt;
tutorial. One problem I hit when trying to save the spark distribution on
HDFS is:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;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.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This was solved with:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;bin/hadoop dfsadmin -safemode leave
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;While trying to build mesos I hit the following error:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;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 &amp;#39;apt-get -f install&amp;#39; to correct these:
The following packages have unmet dependencies:
python-dev : Depends: python2.7-dev (&amp;gt;= 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 &amp;#39;apt-get -f install&amp;#39; with no packages (or specify a s
olution).
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;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 &lt;code&gt;apt-get -f install&lt;/code&gt;
without any arguments. Then I could proceed with installing python-dev. Then
I proceeded with building mesos. Build went fine. &lt;code&gt;make check&lt;/code&gt; failed with
the following error:&lt;/p&gt;</description></item></channel></rss>