Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cannot connect from jconsole to the sandbox.

Cannot connect from jconsole to the sandbox.

New Contributor

Hi. I use

- HDP_2.4_virtualbox_v3.ova. - Host OS is Windows 10x64 (Home edition). - NAT network. Trouble: I cannot connect from jconsole to the sandbox.

An application in the virtual box is running with -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=19150 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false netstat -a | grep LISTEN (in the virtual box) shows that somebody (my application, I hope) listens the port 19150. I added port 19150 to the set of rules of the virtual box as (TCP 127.0.0.1/19150/19150) I can connect to 127.0.0.1:19150 with telnet from hostOS (Windows10).

I can connect the virtual box through Pitty (port2222).

I can connect Ambari from the hostOS as well.

BUT jconsole cannot connect to 127.0.0.1:19150. I tried secured and unsecured connections. What should I do to establish a connection from jconsole? Thank you in advance,

4 REPLIES 4

Re: Cannot connect from jconsole to the sandbox.

@Sergey Yurkevich

Is JConsole providing you any specific errors? Or is it simply failing to connect?

Re: Cannot connect from jconsole to the sandbox.

New Contributor

Just "Connection failed:Connection refused:connect"

Re: Cannot connect from jconsole to the sandbox.

New Contributor

@Michael Young

I use Hortonworks 2.4. As far as i understand it is without docker. Anyway I could try 2.5.

Re: Cannot connect from jconsole to the sandbox.

New Contributor

@Michael Young

I tried Hortonworks 2.5.

I went through

how-to-add-ports-to-the-hdp-25-virtualbox-sandbox

as you recommended.

The results in pictures are below.

The test application is pretty basic

public class Main {
    public static void main(String... args) throws IOException {
        System.out.print("Pres [ENTER] to exit...");
        System.in.read();
        System.out.print("Done.");
    }
}

docker-ps.png

port-forwarding-rules.png

java.png

jconsole.png

Don't have an account?
Coming from Hortonworks? Activate your account here