|
@@ -262,9 +262,7 @@ public class LogsCLI extends Configured implements Tool {
|
|
|
Configuration conf, String appId) throws ClientHandlerException,
|
|
|
UniformInterfaceException, JSONException {
|
|
|
Client webServiceClient = Client.create();
|
|
|
- String webAppAddress =
|
|
|
- WebAppUtils.getWebAppBindURL(conf, YarnConfiguration.RM_BIND_HOST,
|
|
|
- WebAppUtils.getRMWebAppURLWithScheme(conf));
|
|
|
+ String webAppAddress = WebAppUtils.getRMWebAppURLWithScheme(conf);
|
|
|
WebResource webResource = webServiceClient.resource(webAppAddress);
|
|
|
|
|
|
ClientResponse response =
|