@VisibleForTesting @InterfaceAudience.Private public String getNMWebAddressFromRM(Configuration configuration, String nodeId) throws ClientHandlerException, UniformInterfaceException, JSONException { return LogWebServiceUtils.getNMWebAddressFromRM(configuration, nodeId); } }
containerId = ContainerId.fromString(containerIdStr); } catch (IllegalArgumentException ex) { return LogWebServiceUtils.createBadResponse(Status.NOT_FOUND, "Invalid ContainerId: " + containerIdStr); final long length = LogWebServiceUtils.parseLongParam(size); .sendStreamOutputResponse(factory, appId, null, null, containerIdStr, filename, format, length, false); if (LogWebServiceUtils.isFinishedState(appInfo.getAppState())) { .sendStreamOutputResponse(factory, appId, appOwner, null, containerIdStr, filename, format, length, false); if (LogWebServiceUtils.isRunningState(appInfo.getAppState())) { String nodeHttpAddress = null; if (nmId != null && !nmId.isEmpty()) { .sendStreamOutputResponse(factory, appId, appOwner, null, containerIdStr, filename, format, length, true); .sendStreamOutputResponse(factory, appId, appOwner, null, containerIdStr, filename, format, length, true); LogWebServiceUtils.getAbsoluteNMWebAddress(conf, nodeHttpAddress), NM_DOWNLOAD_URI_STR, uri); String query = req.getQueryString();
.getContainerLogMeta(factory, appId, null, null, containerIdStr, false); if (LogWebServiceUtils.isFinishedState(appInfo.getAppState())) { return LogWebServiceUtils .getContainerLogMeta(factory, appId, null, null, containerIdStr, false); if (LogWebServiceUtils.isRunningState(appInfo.getAppState())) { String appOwner = appInfo.getUser(); String nodeHttpAddress = null; .getContainerLogMeta(factory, appId, appOwner, null, containerIdStr, true); .getContainerLogMeta(factory, appId, appOwner, null, containerIdStr, true); LogWebServiceUtils.getAbsoluteNMWebAddress(conf, nodeHttpAddress), NM_DOWNLOAD_URI_STR, uri); String query = req.getQueryString();
+ ContainerLogAggregationType.LOCAL)); assertTrue( responseText.contains(LogWebServiceUtils.getNoRedirectWarning())); + ContainerLogAggregationType.LOCAL)); assertTrue( responseText.contains(LogWebServiceUtils.getNoRedirectWarning()));