Package org.apache.hadoop.yarn.security.client

Examples of org.apache.hadoop.yarn.security.client.ClientToAMTokenSelector.selectToken()


    if (UserGroupInformation.isSecurityEnabled()) {

      ClientToAMTokenSelector clientToAMTokenSelector =
          new ClientToAMTokenSelector();
      this.clientToAMToken =
          clientToAMTokenSelector.selectToken(new Text(),
            appAttemptTokens.getAllTokens());
    }

    // Only one AMRMToken is stored per-attempt, so this should be fine. Can't
    // use TokenSelector as service may change - think fail-over.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.