You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by Zak H <za...@gmail.com> on 2016/11/22 21:50:46 UTC

Is it possible to pass "-javaagent=customAgent.jar" into spark as a JAVA_OPTS

Hi,

I'm interested in passing an agent that will expose jmx metrics from spark
to my agent. I wanted to know if anyone has tried this and if so what
environment variable do I need to set ?

Do I set: $SPARK_DAEMON_JAVA_OPTS ??

http://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html


Thank you,
Zak Hassan

Re: Is it possible to pass "-javaagent=customAgent.jar" into spark as a JAVA_OPTS

Posted by Artur Sukhenko <ar...@gmail.com>.
Hello Zak,

I believe this video from Spark Summit would be useful for you:
https://youtu.be/EB1-7AXQOhM

They are talking about extending Spark with Java agents.

On Tue, Nov 22, 2016, 23:50 Zak H <za...@gmail.com> wrote:

> Hi,
>
> I'm interested in passing an agent that will expose jmx metrics from spark
> to my agent. I wanted to know if anyone has tried this and if so what
> environment variable do I need to set ?
>
> Do I set: $SPARK_DAEMON_JAVA_OPTS ??
>
>
> http://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html
>
>
> Thank you,
> Zak Hassan
>
> --
--
Artur Sukhenko