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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    generateMapRLoginTicket(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      generateMapRLoginTicket in class org.apache.hadoop.yarn.security.AbstractMapRTicketGenerator
      Parameters:
      appId - application id
      username - username
      conf - configuration
      Throws:
      IOException - if ticket generation fails