YARN-5080. Addendum fix to the original patch to fix YARN logs CLI. Contributed by Xuan Gong
(cherry picked from commit 5a43583c0b
)
This commit is contained in:
parent
c29fbdd8ac
commit
67dbd4c466
|
@ -278,7 +278,9 @@ public class LogsCLI extends Configured implements Tool {
|
||||||
Configuration conf, String appId) throws ClientHandlerException,
|
Configuration conf, String appId) throws ClientHandlerException,
|
||||||
UniformInterfaceException, JSONException {
|
UniformInterfaceException, JSONException {
|
||||||
Client webServiceClient = Client.create();
|
Client webServiceClient = Client.create();
|
||||||
String webAppAddress = WebAppUtils.getRMWebAppURLWithScheme(conf);
|
String webAppAddress = WebAppUtils.getHttpSchemePrefix(conf) +
|
||||||
|
WebAppUtils.getWebAppBindURL(conf, YarnConfiguration.RM_BIND_HOST,
|
||||||
|
WebAppUtils.getRMWebAppURLWithoutScheme(conf));
|
||||||
WebResource webResource = webServiceClient.resource(webAppAddress);
|
WebResource webResource = webServiceClient.resource(webAppAddress);
|
||||||
|
|
||||||
ClientResponse response =
|
ClientResponse response =
|
||||||
|
|
Loading…
Reference in New Issue