public final class RMWebAppUtil extends Object
| Modifier and Type | Method and 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 IOException
newApp - the information provided by the userconf - RM configurationIOException - 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–2023 Apache Software Foundation. All rights reserved.