Created 12-15-2015 08:22 AM
Hello,
I try to connect to the JMX console of the ResourceManager via some tools like Jconsole, but it fails establish a proper connection :
Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.onnectIOException: non-JRMP server at remote endpoint] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270) at org.archive.jmx.Client.execute(Client.java:225) at org.archive.jmx.Client.main(Client.java:154)
....though the JMX data are visible via the URL :http://<ResourceManager>:8088/jmx
Any idea on how to enable a correct JMX port for the Yarn ResourceManager ?
Thanks in advance.
Kind regards
LC
Created 03-08-2016 03:16 PM
Hello Laurent,
It's true that you can access to the JMX values via the /jmx path but you have to enable the JMX remote access and especify the TCP port. If you deploy via Ambari you have to set in yarn-env template for example the following line:
export YARN_RESOURCEMANAGER_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=8001"
You have to point the Jconsole to that port.
I hope this helps.
Regards.
Created 12-23-2015 11:48 AM
It's difficult to nail down the exact problem without knowing the environment details, firewall setup and whether you are on corporate vpn or not
Created 12-23-2015 03:15 PM
Hello Neeraj,
Actually , there is no such network equipment; it's direct access.It's just that the URL address form is not accepted by the jconcole/jstack tools.regards.
Created 03-08-2016 03:16 PM
Hello Laurent,
It's true that you can access to the JMX values via the /jmx path but you have to enable the JMX remote access and especify the TCP port. If you deploy via Ambari you have to set in yarn-env template for example the following line:
export YARN_RESOURCEMANAGER_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=8001"
You have to point the Jconsole to that port.
I hope this helps.
Regards.
Created 03-09-2016 02:21 PM
Many thanks Raul ! It works perfectly.
Created 09-21-2016 07:57 PM
@Laurent lau I am trying to do something similar. Can you provide some details on what tool you used, was this on sandbox?
Created 11-30-2016 11:23 AM
Hi,
I would like to also enable JMX although my main concern is that there is no authentication also the use of certificates is also not being used.
Before I enable this on the environment, I would like to know on YARN when you enable this does it allow you to execute operations or will you only be able to access the Mbeans and Attributes just for monitoring purposes?
Kind Regards