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

Examples of org.apache.hadoop.yarn.security.client.ClientToAMTokenSelector


    if (appAttemptTokens == null) {
      return;
    }
    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

Related Classes of org.apache.hadoop.yarn.security.client.ClientToAMTokenSelector

Copyright © 2018 www.massapicom. 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.