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.AbstractMapRTicketGeneratorHandler 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 Constructor Description MapRTicketGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateMapRLoginTicket(org.apache.hadoop.yarn.api.records.ApplicationId appId, java.lang.String username, org.apache.hadoop.conf.Configuration conf)Generates MapR Ticket for current cluster and write it to system directory of the application.
-
-
-
Method Detail
-
generateMapRLoginTicket
public void generateMapRLoginTicket(org.apache.hadoop.yarn.api.records.ApplicationId appId, java.lang.String username, org.apache.hadoop.conf.Configuration conf) throws java.io.IOExceptionGenerates 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:
java.io.IOException- if ticket generation fails
-
-