[ https://issues.apache.org/jira/browse/GEODE-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15533536#comment-15533536 ]
ASF GitHub Bot commented on GEODE-1548: --------------------------------------- GitHub user jaredjstewart opened a pull request: https://github.com/apache/incubator-geode/pull/248 GEODE-1548: Specifying --J=-Dgemfire.jmx-manager-hostname-for-clients… … now automatically sets -Djava.rmi.server.hostname You can merge this pull request into a Git repository by running: $ git pull https://github.com/jaredjstewart/incubator-geode feature/GEODE-1548 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-geode/pull/248.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #248 ---- commit f114abc84c0719c0ee256fce8fb717ccfee8dfa1 Author: Jared Stewart <jstew...@pivotal.io> Date: 2016-09-29T17:43:30Z GEODE-1548: Specifying --J=-Dgemfire.jmx-manager-hostname-for-clients now automatically sets -Djava.rmi.server.hostname ---- > jmx-manager-hostname-for-clients not honored > -------------------------------------------- > > Key: GEODE-1548 > URL: https://issues.apache.org/jira/browse/GEODE-1548 > Project: Geode > Issue Type: Bug > Components: gfsh, management > Reporter: Swapnil Bawaskar > Assignee: Jared Stewart > Fix For: 1.0.0-incubating.M3 > > > While running Geode on AWS, found that {{jmx-manager-hostname-for-clients}} > is not being honored resulting in not being able to connect to gfsh from > outside AWS. > I started a locator in AWS with the following command: > {noformat} > gfsh>start locator --name=locator > --J=-Dgemfire.jmx-manager-hostname-for-clients=<public_ip> > --hostname-for-clients=<public_ip> > {noformat} > When trying to connect to this locator from my laptop I get the following > error: > {noformat} > gfsh>connect --locator=52.41.104.182[10334] > Connecting to Locator at [host=52.41.104.182, port=10334] .. > Connecting to Manager at > [host=ec2-52-41-104-182.us-west-2.compute.amazonaws.com, port=1099] .. > Could not connect to : > [host=ec2-52-41-104-182.us-west-2.compute.amazonaws.com, port=1099]. Failed > to retrieve RMIServer stub: javax.naming.CommunicationException [Root > exception is java.rmi.ConnectIOException: error during JRMP connection > establishment; nested exception is: > java.net.SocketException: Connection reset] > {noformat} > Note that gfsh is trying to connect to the public dns for the instance, not > using the {{jmx-manager-hostname-for-clients}} property provided. -- This message was sent by Atlassian JIRA (v6.3.4#6332)