public void logs() { render(ContainerLogsPage.class); } }
public void logs() { String containerIdStr = $(CONTAINER_ID); ContainerId containerId = null; try { containerId = ConverterUtils.toContainerId(containerIdStr); } catch (IllegalArgumentException e) { render(ContainerLogsPage.class); return; } ApplicationId appId = containerId.getApplicationAttemptId().getApplicationId(); Application app = nmContext.getApplications().get(appId); if (app == null && nmConf.getBoolean(YarnConfiguration.LOG_AGGREGATION_ENABLED, YarnConfiguration.DEFAULT_LOG_AGGREGATION_ENABLED)) { String logServerUrl = nmConf.get(YarnConfiguration.YARN_LOG_SERVER_URL); String redirectUrl = null; if (logServerUrl == null || logServerUrl.isEmpty()) { redirectUrl = "false"; } else { redirectUrl = url(logServerUrl, nmContext.getNodeId().toString(), containerIdStr, containerIdStr, $(APP_OWNER)); } set(ContainerLogsPage.REDIRECT_URL, redirectUrl); } render(ContainerLogsPage.class); } }
public void logs() { String containerIdStr = $(CONTAINER_ID); ContainerId containerId = null; try { containerId = ConverterUtils.toContainerId(containerIdStr); } catch (IllegalArgumentException e) { render(ContainerLogsPage.class); return; } ApplicationId appId = containerId.getApplicationAttemptId().getApplicationId(); Application app = nmContext.getApplications().get(appId); if (app == null && nmConf.getBoolean(YarnConfiguration.LOG_AGGREGATION_ENABLED, YarnConfiguration.DEFAULT_LOG_AGGREGATION_ENABLED)) { String logServerUrl = nmConf.get(YarnConfiguration.YARN_LOG_SERVER_URL); String redirectUrl = null; if (logServerUrl == null || logServerUrl.isEmpty()) { redirectUrl = "false"; } else { redirectUrl = url(logServerUrl, nmContext.getNodeId().toString(), containerIdStr, containerIdStr, $(APP_OWNER)); } set(ContainerLogsPage.REDIRECT_URL, redirectUrl); } render(ContainerLogsPage.class); } }
public void logs() { render(ContainerLogsPage.class); } }
public void application() { render(ApplicationPage.class); }
public void container() { render(ContainerPage.class); }
public void node() { render(NodePage.class); }
public void allContainers() { render(AllContainersPage.class); }
public void allApplications() { render(AllApplicationsPage.class); }
public void allContainers() { render(AllContainersPage.class); }
public void container() { render(ContainerPage.class); }
public void node() { render(NodePage.class); }
public void container() { render(ContainerPage.class); }
public void info() { render(NodePage.class); }
public void errorsAndWarnings() { render(NMErrorsAndWarningsPage.class); }
public void node() { render(NodePage.class); }