Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void generateMapRLoginTicket​(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.
      • Methods inherited from class org.apache.hadoop.yarn.security.AbstractMapRTicketGenerator

        generateToken, removeToken
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapRTicketGenerator

        public MapRTicketGenerator()
    • 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.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:
        generateMapRLoginTicket in class org.apache.hadoop.yarn.security.AbstractMapRTicketGenerator
        Parameters:
        appId - application id
        username - username
        conf - configuration
        Throws:
        java.io.IOException - if ticket generation fails