New addendum to YARN-5080. Cannot obtain logs using YARN CLI -am for either KILLED or RUNNING AM.
(cherry picked from commit 7705812c7e
)
This commit is contained in:
parent
e94e6be772
commit
54812841e2
|
@ -284,9 +284,8 @@ public class LogsCLI extends Configured implements Tool {
|
|||
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 =
|
||||
|
|
Loading…
Reference in New Issue