Package com.mapr.security
Class MapRTicketGenerator
java.lang.Object
org.apache.hadoop.yarn.security.AbstractMapRTicketGenerator
com.mapr.security.MapRTicketGenerator
public class MapRTicketGenerator
extends org.apache.hadoop.yarn.security.AbstractMapRTicketGenerator
Handler to respond to a newly registered application with ResourceManager.
It creates a MapR ticket for the application and stores it in MapRFS.
The NodeManager will localize this ticket and make it available to the
tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateMapRLoginTicket(org.apache.hadoop.yarn.api.records.ApplicationId appId, String username, org.apache.hadoop.conf.Configuration conf) Generates MapR Ticket for current cluster and write it to system directory of the application.Methods inherited from class org.apache.hadoop.yarn.security.AbstractMapRTicketGenerator
generateToken, removeToken
-
Constructor Details
-
MapRTicketGenerator
public MapRTicketGenerator()
-
-
Method Details
-
generateMapRLoginTicket
public void generateMapRLoginTicket(org.apache.hadoop.yarn.api.records.ApplicationId appId, String username, org.apache.hadoop.conf.Configuration conf) throws IOException Generates MapR Ticket for current cluster and write it to system directory of the application. If there is an existing ticket in the staging directory, it is merged with the newly created ticket. The existing ticket is needed as it could be for a different cluster.- Specified by:
generateMapRLoginTicketin classorg.apache.hadoop.yarn.security.AbstractMapRTicketGenerator- Parameters:
appId- application idusername- usernameconf- configuration- Throws:
IOException- if ticket generation fails
-