Package org.apache.hadoop.hdfs.security

Examples of org.apache.hadoop.hdfs.security.ExportedAccessKeys


   * Create DatanodeRegistration
   */
  public DatanodeRegistration(String nodeName) {
    super(nodeName);
    this.storageInfo = new StorageInfo();
    this.exportedKeys = new ExportedAccessKeys();
  }
View Full Code Here


@InterfaceStability.Evolving
public class KeyUpdateCommand extends DatanodeCommand {
  private ExportedAccessKeys keys;

  KeyUpdateCommand() {
    this(new ExportedAccessKeys());
  }
View Full Code Here

          + ". Expecting " + storage.getStorageID());
    }
   
    if (!isAccessTokenInitialized) {
      /* first time registering with NN */
      ExportedAccessKeys keys = dnRegistration.exportedKeys;
      this.isAccessTokenEnabled = keys.isAccessTokenEnabled();
      if (isAccessTokenEnabled) {
        long accessKeyUpdateInterval = keys.getKeyUpdateInterval();
        long accessTokenLifetime = keys.getTokenLifetime();
        LOG.info("Access token params received from NN: keyUpdateInterval="
            + accessKeyUpdateInterval / (60 * 1000) + " min(s), tokenLifetime="
            + accessTokenLifetime / (60 * 1000) + " min(s)");
        this.accessTokenHandler = new AccessTokenHandler(false,
            accessKeyUpdateInterval, accessTokenLifetime);
View Full Code Here

  private void init(double threshold) throws IOException {
    this.threshold = threshold;
    this.namenode = createNamenode(conf);
    this.client = DFSClient.createNamenode(conf);
    this.fs = FileSystem.get(conf);
    ExportedAccessKeys keys = namenode.getAccessKeys();
    this.isAccessTokenEnabled = keys.isAccessTokenEnabled();
    if (isAccessTokenEnabled) {
      long accessKeyUpdateInterval = keys.getKeyUpdateInterval();
      long accessTokenLifetime = keys.getTokenLifetime();
      LOG.info("Access token params received from NN: keyUpdateInterval="
          + accessKeyUpdateInterval / (60 * 1000) + " min(s), tokenLifetime="
          + accessTokenLifetime / (60 * 1000) + " min(s)");
      this.accessTokenHandler = new AccessTokenHandler(false,
          accessKeyUpdateInterval, accessTokenLifetime);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.security.ExportedAccessKeys

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.