Enable remote JMX monitoring for Spark running on DataStax Enterprise
<p>What steps are required to perform on an standard AMI DSE installation on AWS EC2 to enable remote JMX monitoring?</p>

<p>I did following steps but I am not able to connect using VisualVM:</p>

<ol>
<li>Create /etc/dse/spark/conf/metrics.properties</li>
<li>Copy&amp;paste contents of <a href="https://github.com/apache/spark/blob/branch-1.4/conf/metrics.properties.template" rel="nofollow">https://github.com/apache/spark/blob/branch-1.4/conf/metrics.properties.template</a></li>
<li>Uncommented these lines:

<ul>
<li>org.apache.spark.metrics.sink.JmxSink</li>
<li>*.sink.jmx.class=org.apache.spark.metrics.sink.JmxSink</li>
<li>master.source.jvm.class=org.apache.spark.metrics.source.JvmSource</li>
<li>worker.source.jvm.class=org.apache.spark.metrics.source.JvmSource</li>
<li>driver.source.jvm.class=org.apache.spark.metrics.source.JvmSource</li>
<li>executor.source.jvm.class=org.apache.spark.metrics.source.JvmSource</li>
</ul></li>
<li>Restarted DSE cluster via OpsCenter</li>
</ol>