Generated by
JDiff

Class org.apache.hadoop.hdfs.DFSClient

Changed Constructors
DFSClient(Configuration) Now deprecated.
Deprecated at 0.21
 

Removed Methods
OutputStream create(String, FsPermission, boolean, short, long, Progressable, int) Create a new dfs file with the specified block replication with write-progress reporting and return an output stream for writing into the file.
String[][] getHints(String, long, long) @deprecated Use getBlockLocations instead Get hints about the location of the indicated block(s).
boolean isDirectory(String) @deprecated Use getFileStatus() instead
FileStatus[] listPaths(String)  
long totalRawCapacity()  
long totalRawUsed()  
 

Added Methods
void cancelDelegationToken(Token) @see ClientProtocol#cancelDelegationToken(Token)
void concat(String, String[]) Move blocks from src to trg and delete src See Strin [])}.
OutputStream create(String, FsPermission, EnumSet, boolean, short, long, Progressable, int) Create a new dfs file with the specified block replication with write-progress reporting and return an output stream for writing into the file.
OutputStream create(String, FsPermission, EnumSet, short, long, Progressable, int) Call FsPermissio EnumSet boolean short long Progressable int)} with createParent set to true.
void createSymlink(String, String, boolean) Creates a symbolic link.
Token getDelegationToken(Text) @see ClientProtocol#getDelegationToken(Text)
MD5MD5CRC32FileChecksum getFileChecksum(String) Get the checksum of a file.
HdfsFileStatus getFileLinkInfo(String) Get the file info for a specific file or directory.
String getLinkTarget(String) Resolve the *first* symlink if any in the path.
ClientProtocol getNamenode() Get the namenode associated with this DFSClient object
FsServerDefaults getServerDefaults() Get server default values for a number of configuration params.
DirectoryListing listPaths(String, byte[]) Get a partial listing of the indicated directory No block locations need to be fetched
DirectoryListing listPaths(String, byte[], boolean) Get a partial listing of the indicated directory Recommend to use HdfsFileStatus.EMPTY_NAME as startAfter if the application wants to fetch a listing starting from the first entry in the directory
DFSInputStream open(String, int, boolean, Statistics) Create an input stream that obtains a nodelist from the namenode and then reads from all the right places.
DFSInputStream open(String, int, boolean) Create an input stream that obtains a nodelist from the namenode and then reads from all the right places.
OutputStream primitiveCreate(String, FsPermission, EnumSet, boolean, short, long, Progressable, int, int) Same as {{@link #create(String FsPermission EnumSet short long Progressable int)} except that the permission is absolute (ie has already been masked with umask.
boolean primitiveMkdir(String, FsPermission) Same {{@link #mkdirs(String FsPermission boolean)} except that the permissions has already been masked against umask.
void rename(String, String, Rename[]) Rename file or directory.
long renewDelegationToken(Token) @see ClientProtocol#renewDelegationToken(Token)
String stringifyToken(Token) A test method for printing out tokens
 

Changed Methods
BlockLocation[] getBlockLocations(String, long, long) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Get block location info about file getBlockLocations() returns a list of hostnames that store data for a specific file region.
FsStatus getDiskStatus() Change in return type from DiskStatus to FsStatus.
@see ClientProtocol#getStats()
HdfsFileStatus getFileInfo(String) Change in return type from FileStatus to HdfsFileStatus.
Get the file info for a specific file or directory.
boolean mkdirs(String, FsPermission, boolean) Change in signature from (String, FsPermission) to (String, FsPermission, boolean).
Create a directory (or hierarchy of directories) with the given name and permission.
DFSInputStream open(String) Change in return type from org.apache.hadoop.hdfs.DFSClient.DFSInputStream to org.apache.hadoop.hdfs.DFSInputStream.
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
 
boolean rename(String, String) Now deprecated.
Use {@link #rename(String, String, Options.Rename...)} instead.
 

Removed Fields
ClientProtocol namenode  
 

Added Fields
long SERVER_DEFAULTS_VALIDITY_PERIOD