How to connect spark-shell to Mesos?
<p>I am trying to set up Apache Spark to run on Mesos, but I get the following message on terminal:</p>

<blockquote>
  <p>W0309 10:37:10.570291  4017 sched.cpp:700] Ignoring framework registered message because it was sent from 'master@127.0.1.1:5050' instead of the leading master 'master@127.0.0.1:5050'</p>
</blockquote>

<p>This message keeps appearing on the spark-shell and I am not able to run any command. I started spark-shell using the command:</p>

<pre><code>./bin/spark-shell --master mesos://127.0.0.1:5050 --conf spark.executor.uri=/home/user/spark/spark-1.6.0-bin-hadoop2.6.tgz
</code></pre>

<p>When I check the Framework tab on Mesos WebUI, Spark Shell is listed as a framework.</p>

<p>Any idea on why I faced the above message and cannot run commands from spark-shell? Or, any good reference to run Spark on Mesos?</p>