Ask Your Question
0

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 sdc-env.sh, 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 \ -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=3333 \ -Dcom.sun.management.jmxremote.local.only=false \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false \ ${SDC_JAVA_OPTS}"

Any suggestions ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

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

gvd gravatar image

found out this error in SDC stderr : Could not start Jolokia agent: java.security.AccessControlException: 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

Stats

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

Seen: 117 times

Last updated: Jan 05