I am trying to scrape metrics for spark driver and executor using javaagent with below options. I have Prometheus in kubernetes cluster and I am running this spark application outside the kubernetes cluster.
spark.executor.extraJavaOptions=-javaagent:/opt/clkd/prometheus/jmx_prometheus_javaagent-0.3.1.jar=53700:executor_pattern.yaml
but I got below exception since both executors running on the same machine
Caused by: java.net.BindException: Address already in use ....
I see many have posted the same question but I couldn't find the answer. Please let me know how can I resolve this issue.