jolokia with hadoop server No access restrictor found, access to any MBean is allowed

classic Classic list List threaded Threaded
5 messages Options
zhaiyuyong zhaiyuyong
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

jolokia with hadoop server No access restrictor found, access to any MBean is allowed

i have a hiveserver jvm ,i would attach jolokia for jmx monitor  
add -javaagent:/home/master/jolokia-jvm-agent.jar=port=7777,host=0.0.0.0 to start sh,

show
No access restrictor found, access to any MBean is allowed
Jolokia: Agent started with URL http://10.0.250.102:7777/jolokia/

other way
dynamically attach javaagent
java -jar /home/master/jolokia-jvm-agent.jar --host 0.0.0.0 --port 7777 start 28297

show
Couldn't start agent for PID 28297
Possible reason could be that port '7777' is already occupied.
Please check the standard output of the target process for a detailed error message.
roland roland
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: jolokia with hadoop server No access restrictor found, access to any MBean is allowed

Look good. What's your question ?
... roland
zhaiyuyong zhaiyuyong
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: jolokia with hadoop server No access restrictor found, access to any MBean is allowed

my jvm process can not start!

when not add javaagent at start command ,and dynamically attach also print error message

[master@sh-hadoop-datanode-250-102.elenet.me hiveserver2]$ java -jar /home/master/jolokia-jvm-agent.jar --host 0.0.0.0 --port 7777 start 28297
Couldn't start agent for PID 28297
Possible reason could be that port '7777' is already occupied.
Please check the standard output of the target process for a detailed error message.
[master@sh-hadoop-datanode-250-102.elenet.me hiveserver2]$ java -jar /home/master/jolokia-jvm-agent.jar --host 0.0.0.0 --port 7777 start 28297
Jolokia is already attached to PID 28297
http://10.0.250.102:7777/jolokia/
[master@sh-hadoop-datanode-250-102.elenet.me hiveserver2]$
zhaiyuyong zhaiyuyong
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: jolokia with hadoop server No access restrictor found, access to any MBean is allowed

In reply to this post by roland
if i add javaagent at the start command ,the jvm process can not start
roland roland
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: jolokia with hadoop server No access restrictor found, access to any MBean is allowed

In reply to this post by zhaiyuyong
Still no question.

Have you checked the hint given, e.g. that the port is probably already occupied ? Try a 'telnet localhost 7777' and if it connects then another process is listening on that port already (probably the one of your first try).

When the message says "Jolokia is already attached to PID 28297" then it is exactly like this.

The "No access restrictor" is not an error message but a warning that you have no security in place. The process started correctly though.
... roland
Loading...