org.apache.hadoop.hdfs.tools
Class DelegationTokenFetcher

java.lang.Object
  extended by org.apache.hadoop.hdfs.tools.DelegationTokenFetcher

@InterfaceAudience.Private
public class DelegationTokenFetcher
extends Object

Fetch a DelegationToken from the current Namenode and store it in the specified file.


Constructor Summary
DelegationTokenFetcher(DistributedFileSystem dfs, DataOutputStream out, org.apache.hadoop.security.UserGroupInformation ugi)
           
 
Method Summary
 void go()
           
static void main(String[] args)
          Command-line interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegationTokenFetcher

public DelegationTokenFetcher(DistributedFileSystem dfs,
                              DataOutputStream out,
                              org.apache.hadoop.security.UserGroupInformation ugi)
Method Detail

main

public static void main(String[] args)
                 throws Exception
Command-line interface

Throws:
Exception

go

public void go()
        throws IOException
Throws:
IOException


Copyright © 2009 The Apache Software Foundation