public final class RMWebAppUtil
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext |
createAppSubmissionContext(ApplicationSubmissionContextInfo newApp,
org.apache.hadoop.conf.Configuration conf) |
Create the actual ApplicationSubmissionContext to be submitted to the RM
from the information provided by the user.
|
static org.apache.hadoop.security.UserGroupInformation |
getCallerUserGroupInformation(javax.servlet.http.HttpServletRequest hsr,
boolean usePrincipal) |
Helper method to retrieve the UserGroupInformation from the
HttpServletRequest.
|
static void |
setupSecurityAndFilters(org.apache.hadoop.conf.Configuration conf,
RMDelegationTokenSecretManager rmDTSecretManager) |
Helper method to setup filters and authentication for ResourceManager
WebServices.
|
public static void setupSecurityAndFilters(org.apache.hadoop.conf.Configuration conf,
RMDelegationTokenSecretManager rmDTSecretManager)
conf - RM configuration.rmDTSecretManager - RM specific delegation token secret manager.public static org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext createAppSubmissionContext(ApplicationSubmissionContextInfo newApp, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
newApp - the information provided by the userconf - RM configurationjava.io.IOException - in case of Errorpublic static org.apache.hadoop.security.UserGroupInformation getCallerUserGroupInformation(javax.servlet.http.HttpServletRequest hsr,
boolean usePrincipal)
hsr - the servlet requestusePrincipal - true if we need to use the principal user, remote
otherwise.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.