I want to add NewRelic tools to my fling work. I do not see where it is possible to pass additional classpath / other params parameters to the bin/flink run <job> command.
The NewRelic Java Agent wants to add -javaagent:<path to jar> to the execution path. It is also recommended that you skip the path to the configuration file.
Edit:
I added this line to my conf / flink-conf.yaml on all (3) cluster machines:
env.java.opts: "-javaagent:/opt/newrelic/newrelic.jar -Dnewrelic.config.file=/opt/newrelic/newrelic.yml"
When I started the cluster, only the job manager will start. Dispatcher It does not start on any of the machines.
The only way I was able to add the toolkit (for now) is to change the command line at the end of bin / flink to include the above options. This is fine, except that it requires a session in which the command was run in order to remain open. If you exit, Flink continues, but the NewRelic agent exits.
source share