New addendum to YARN-5080. Cannot obtain logs using YARN CLI -am for either KILLED or RUNNING AM.
(cherry picked from commit7705812c7e
) (cherry picked from commit54812841e2
)
This commit is contained in:
parent
23eb3c7ceb
commit
a0ddc5b3a5
|
@ -380,9 +380,8 @@ 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.getHttpSchemePrefix(conf) +
|
String webAppAddress = WebAppUtils.getRMWebAppURLWithScheme(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