Examples of checkTGTAndReloginFromKeytab()


Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

    @Override
    public void cancel(final Token<?> token, final Configuration conf
        ) throws IOException, InterruptedException {
      final UserGroupInformation ugi = UserGroupInformation.getLoginUser();
      // update the kerberos credentials, if they are coming from a keytab
      ugi.checkTGTAndReloginFromKeytab();

      getWebHdfs(token, conf).cancelDelegationToken(token);
    }
  }
 
View Full Code Here

Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

      UserGroupInformation connectUgi = ugi.getRealUser();
      if (connectUgi == null) {
        connectUgi = ugi;
      }
      if (op.getRequireAuth()) {
        connectUgi.checkTGTAndReloginFromKeytab();
      }
      try {
        // the entire lifecycle of the connection must be run inside the
        // doAs to ensure authentication is performed correctly
        return connectUgi.doAs(
View Full Code Here

Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

  public void reLoginUserFromKeytab() throws IOException{
    UserGroupInformation ugi = UserGroupInformation.getLoginUser();
    //checkTGT calls ugi.relogin only after checking if it is close to tgt expiry
    //hadoop relogin is actually done only every x minutes (x=10 in hadoop 1.x)
    if(ugi.isFromKeytab()){
      ugi.checkTGTAndReloginFromKeytab();
    }
  }

  @Override
  public boolean isLoginKeytabBased() throws IOException {
View Full Code Here

Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

    @Override
    public void cancel(final Token<?> token, final Configuration conf
        ) throws IOException, InterruptedException {
      final UserGroupInformation ugi = UserGroupInformation.getLoginUser();
      // update the kerberos credentials, if they are coming from a keytab
      ugi.checkTGTAndReloginFromKeytab();

      try {
        final WebHdfsFileSystem webhdfs = getWebHdfs(token, conf);
        webhdfs.cancelDelegationToken(token);
      } catch (URISyntaxException e) {
View Full Code Here

Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

    @Override
    public long renew(final Token<?> token, final Configuration conf
        ) throws IOException, InterruptedException {
      final UserGroupInformation ugi = UserGroupInformation.getLoginUser();
      // update the kerberos credentials, if they are coming from a keytab
      ugi.checkTGTAndReloginFromKeytab();

      return getWebHdfs(token, conf).renewDelegationToken(token);
    }
 
    @Override
View Full Code Here

Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

    @Override
    public void cancel(final Token<?> token, final Configuration conf
        ) throws IOException, InterruptedException {
      final UserGroupInformation ugi = UserGroupInformation.getLoginUser();
      // update the kerberos credentials, if they are coming from a keytab
      ugi.checkTGTAndReloginFromKeytab();

      getWebHdfs(token, conf).cancelDelegationToken(token);
    }
  }
}
View Full Code Here

Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

    @Override
    public void cancel(final Token<?> token, final Configuration conf
        ) throws IOException, InterruptedException {
      final UserGroupInformation ugi = UserGroupInformation.getLoginUser();
      // update the kerberos credentials, if they are coming from a keytab
      ugi.checkTGTAndReloginFromKeytab();

      try {
        final WebHdfsFileSystem webhdfs = getWebHdfs(token, conf);
        webhdfs.cancelDelegationToken(token);
      } catch (URISyntaxException e) {
View Full Code Here

Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

    Chore refreshCredentials = new Chore("RefreshCredentials", CHECK_TGT_INTERVAL, stoppable) {
      @Override
      protected void chore() {
        try {
          ugi.checkTGTAndReloginFromKeytab();
        } catch (IOException e) {
          LOG.info("Got exception while trying to refresh credentials ");
        }
      }
    };
View Full Code Here

Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

  public void reLoginUserFromKeytab() throws IOException{
    UserGroupInformation ugi = UserGroupInformation.getLoginUser();
    //checkTGT calls ugi.relogin only after checking if it is close to tgt expiry
    //hadoop relogin is actually done only every x minutes (x=10 in hadoop 1.x)
    if(ugi.isFromKeytab()){
      ugi.checkTGTAndReloginFromKeytab();
    }
  }

  @Override
  public boolean isLoginKeytabBased() throws IOException {
View Full Code Here

Examples of org.apache.hadoop.security.UserGroupInformation.checkTGTAndReloginFromKeytab()

    @Override
    public void cancel(final Token<?> token, final Configuration conf
        ) throws IOException, InterruptedException {
      final UserGroupInformation ugi = UserGroupInformation.getLoginUser();
      // update the kerberos credentials, if they are coming from a keytab
      ugi.checkTGTAndReloginFromKeytab();

      getWebHdfs(token, conf).cancelDelegationToken(token);
    }
  }
 
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.