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()

    @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();

      try {
        WebHdfsFileSystem webhdfs = getWebHdfs(token, conf);
        return webhdfs.renewDelegationToken(token);
      } catch (URISyntaxException e) {
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()

  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()

  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()

  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
  abstract public JobTrackerState getJobTrackerState(ClusterStatus clusterStatus) throws Exception;
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.