[ https://issues.apache.org/jira/browse/SLIDER-1088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154964#comment-15154964 ]
Steve Loughran commented on SLIDER-1088: ---------------------------------------- Switching to {{appMasterHostname = rpcServiceAddress.getAddress().getCanonicalHostName();}} is going to fix this and any web URLs. Before doing that, writing a test to fail if the hostname of the RPC endpoint in the AppReport doesn't contain a null. This test does not fail locally: {code} 2016-02-19 21:56:35,395 [Thread-1] INFO test.YarnMiniClusterTestBase (?:call(?)) - App teststandaloneagentam/org-apache-slider# application_1455918984693_0001 user stevel is in state RUNNING RPC: stevel-2.local:60000 URLhttp://stevel-2.local:60001 {code} this means that the JVM may or may not be returning an FQDN with the current call. Switching to {{getCanonicalHostName()}} should guarantee that it is always set > Slider client getting UnknownHost exception trying to RPC to AM in different > subdomain > -------------------------------------------------------------------------------------- > > Key: SLIDER-1088 > URL: https://issues.apache.org/jira/browse/SLIDER-1088 > Project: Slider > Issue Type: Bug > Components: appmaster, client > Affects Versions: Slider 0.90.2 > Reporter: Steve Loughran > Assignee: Steve Loughran > > When you try to issue a call like "slider status" from a domain other than > that in which the cluster is, you get to see a stack trace > {code} > ERROR main.ServiceLauncher - Exception: Invalid host name: local host is: > (unknown); destination host is: "wn1-slider":1024; > java.net.UnknownHostException; For more details see: > http://wiki.apache.org/hadoop/UnknownHost > java.net.UnknownHostException: Invalid host name: local host is: (unknown); > destination host is: "wn1-slider":1024; java.net.UnknownHostException; For > more details see: http://wiki.apache.org/hadoop/UnknownHost > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:526) > ... > > org.apache.slider.server.appmaster.rpc.SliderClusterProtocolProxy.getJSONClusterStatus(SliderClusterProtocolProxy.java:129) > at > org.apache.slider.client.ipc.SliderClusterOperations.getClusterDescription(SliderClusterOperations.java:143) > at > org.apache.slider.client.SliderClient.getClusterDescription(SliderClient.java:3342) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)