New addendum to YARN-5080. Cannot obtain logs using YARN CLI -am for either KILLED or RUNNING AM.

(cherry picked from commit 7705812c7e)
(cherry picked from commit 54812841e2)
This commit is contained in:
Junping Du 2016-07-12 08:29:49 -07:00
parent 23eb3c7ceb
commit a0ddc5b3a5
1 changed files with 2 additions and 3 deletions

View File

@ -380,9 +380,8 @@ private List<JSONObject> getAMContainerInfoForRMWebService(
Configuration conf, String appId) throws ClientHandlerException,
UniformInterfaceException, JSONException {
Client webServiceClient = Client.create();
String webAppAddress = WebAppUtils.getHttpSchemePrefix(conf) +
WebAppUtils.getWebAppBindURL(conf, YarnConfiguration.RM_BIND_HOST,
WebAppUtils.getRMWebAppURLWithoutScheme(conf));
String webAppAddress = WebAppUtils.getRMWebAppURLWithScheme(conf);
WebResource webResource = webServiceClient.resource(webAppAddress);
ClientResponse response =