瀏覽代碼

YARN-5080. Cannot obtain logs using YARN CLI -am for either KILLED or
RUNNING AM. Contributed by Xuan Gong

Xuan 9 年之前
父節點
當前提交
7be53b65f9

+ 1 - 3
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/LogsCLI.java

@@ -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 =