Package org.apache.hadoop.hdfs.security

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


    }
    this.safeMode = new SafeModeInfo(conf);
    this.hostsReader = new HostsFileReader(conf.get("dfs.hosts",""),
                        conf.get("dfs.hosts.exclude",""));
    if (isAccessTokenEnabled) {
      accessTokenHandler = new AccessTokenHandler(true,
          accessKeyUpdateInterval, accessTokenLifetime);
    }
  }
View Full Code Here


        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);
      }
      isAccessTokenInitialized = true;
    }

View Full Code Here

      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);
      this.accessTokenHandler.setKeys(keys);
      /*
       * Balancer should sync its access keys with NN more frequently than NN
       * updates its access keys
View Full Code Here

TOP

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

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.