I am trying to get a Spark Streaming job running on an EC2 instance to report VisualVM using JMX.
At the moment, I have the following configuration file:
spark /CONF/metrics.properties:
*.sink.jmx.class=org.apache.spark.metrics.sink.JmxSink master.source.jvm.class=org.apache.spark.metrics.source.JvmSource worker.source.jvm.class=org.apache.spark.metrics.source.JvmSource driver.source.jvm.class=org.apache.spark.metrics.source.JvmSource executor.source.jvm.class=org.apache.spark.metrics.source.JvmSource
And I start working with the spark stream as follows: (the -D bit, which I added later, in the hope of gaining remote access to ec2 jmx)
terminal :
spark/bin/spark-submit --class my.class.StarterApp --master local --deploy-mode client \ project-1.0-SNAPSHOT.jar \ -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=54321 \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false
source share