Livy Server on Amazon EMR hangs on Connecting to ResourceManager : <p>I'm trying to deploy a Livy Server on Amazon EMR. First I built the Livy master branch</p>

<pre><code>mvn clean package -Pscala-2.11 -Pspark-2.0
</code></pre>

<p>Then, I uploaded it to the EMR cluster master. I set the following configurations:</p>

<p><strong>livy-env.sh</strong></p>

<pre><code>SPARK_HOME=/usr/lib/spark
HADOOP_CONF_DIR=/etc/hadoop/conf
</code></pre>

<p><strong>livy.conf</strong></p>

<pre><code>livy.spark.master = yarn
livy.spark.deployMode = cluster
</code></pre>

<p>When I start Livy, it hangs indefinitely while connecting to YARN Resource manager (XX.XX.XXX.XX is the IP address)</p>

<pre><code>16/10/28 17:56:23 INFO RMProxy: Connecting to ResourceManager at /XX.XX.XXX.XX:8032
</code></pre>

<p>However when I netcat the port 8032, it connects successfully</p>

<pre><code>nc -zv XX.XX.XXX.XX 8032
Connection to XX.XX.XXX.XX 8032 port [tcp/pro-ed] succeeded!
</code></pre>

<p>I think I'm probably missing some step. Anyone has any idea of what this step might be?</p>
