Ask Your Question

Bind additional javaagent

asked 2018-01-05 06:31:54 -0600

gvd gravatar image

updated 2018-01-05 06:36:31 -0600

Hello !

I’m trying to add jolokia javaagent to sdc process to export jmx metrics.

I’ve added the extra java options in Cloudera manager config in, I see the javaagent option in sdc process details but it doesn’t seems started (nothing binded on 8778 default jolokia port).

My config :

export STREAMSETS_LIBRARIES_EXTRA_DIR="/opt/sdc-extras/" export SDC_JAVA_OPTS="-javaagent:/opt/jolokia/agent.jar=port=8778,host=localhost \ \ \ \ \ \ ${SDC_JAVA_OPTS}"

Any suggestions ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-01-05 07:29:41 -0600

gvd gravatar image

found out this error in SDC stderr : Could not start Jolokia agent: access denied ("java.lang.RuntimePermission" "getClassLoader")

Moved the jar to /opt/cloudera/parcels/STREAMSETS_DATACOLLECTOR/libexec/bootstrap-libs/main/jolokia-agent.jar Solved the issue :)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-01-05 06:31:54 -0600

Seen: 117 times

Last updated: Jan 05