Generated by
JDiff

Interface org.apache.hadoop.hdfs.protocol.ClientProtocol

Added Methods
void cancelDelegationToken(Token) Cancel an existing delegation token.
void concat(String, String[]) Moves blocks from srcs to trg and delete srcs
void createSymlink(String, String, FsPermission, boolean) Create a symbolic link to a file or directory.
FileStatus[] getCorruptFiles() @return Array of FileStatus objects referring to corrupted files.
Token getDelegationToken(Text) Get a valid Delegation Token.
HdfsFileStatus getFileLinkInfo(String) Get the file info for a specific file or directory.
String getLinkTarget(String) Resolve the first symbolic link on the specified path.
FsServerDefaults getServerDefaults() Get server default values for a number of configuration params.
void rename(String, String, Rename[]) Rename src to dst.
long renewDelegationToken(Token) Renew an existing delegation token.
boolean restoreFailedStorage(String) Enable/Disable restore failed storage.
LocatedBlock updateBlockForPipeline(Block, String) Get a new generation stamp together with an access token for a block under construction This method is called only when a client needs to recover a failed pipeline or set up a pipeline for appending to a block.
void updatePipeline(String, Block, Block, DatanodeID[]) Update a pipeline for a block under construction
 

Changed Methods
void abandonBlock(Block, String, String) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
The client can give up on a block by calling abandonBlock().
LocatedBlock addBlock(String, String, Block, DatanodeInfo[]) Change in signature from (String, String) to (String, String, Block, DatanodeInfo[]).
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException, org.apache.hadoop.hdfs.protocol.DSQuotaExceededException).
A client that wants to write an additional block to the indicated filename (which must currently be open for writing) should call addBlock().
LocatedBlock append(String, String) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Append to the end of the file.
boolean complete(String, String, Block) Change in signature from (String, String) to (String, String, Block).
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
The client is done writing data to the given filename and would like to complete it.
void create(String, FsPermission, String, EnumSetWritable, boolean, short, long) Change in signature from (String, FsPermission, String, boolean, short, long) to (String, FsPermission, String, EnumSetWritable, boolean, short, long).
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException, org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException, org.apache.hadoop.hdfs.protocol.NSQuotaExceededException).
Create a new file entry in the namespace.
void fsync(String, String) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Write all metadata for this file into persistent storage.
LocatedBlocks getBlockLocations(String, long, long) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException, java.io.FileNotFoundException).
Get locations of the blocks of the specified file within the specified range.
ContentSummary getContentSummary(String) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Get ContentSummary rooted at the specified directory.
HdfsFileStatus getFileInfo(String) Change in return type from FileStatus to HdfsFileStatus.
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Get the file info for a specific file or directory.
DirectoryListing getListing(String, byte[]) Change in return type from FileStatus[] to DirectoryListing.
Change in signature from String to (String, byte[]).
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Get a partial listing of the indicated directory
long getPreferredBlockSize(String) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Get the block size for the given file.
boolean mkdirs(String, FsPermission, boolean) Change in signature from (String, FsPermission) to (String, FsPermission, boolean).
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException, org.apache.hadoop.hdfs.protocol.NSQuotaExceededException).
Create a directory (or hierarchy of directories) with the given name and permission.
void renewLease(String) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Client programs can cause stateful changes in the NameNode that affect other clients.
void setOwner(String, String, String) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Set Owner of a path (i.e.
void setPermission(String, FsPermission) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException, org.apache.hadoop.hdfs.server.namenode.SafeModeException).
Set permissions for an existing file/directory.
void setQuota(String, long, long) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException, java.io.FileNotFoundException, org.apache.hadoop.hdfs.server.namenode.SafeModeException).
Set the quota for a directory.
boolean setReplication(String, short) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Set replication for an existing file.
void setTimes(String, long, long) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Sets the modification and access time of the file to the specified time.
boolean delete(String) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Now deprecated.
use {@link #delete(String, boolean)} istead.
boolean delete(String, boolean) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Delete the given file or directory from the file system.
boolean rename(String, String) Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException).
Now deprecated.
Use {@link #rename(String, String, Options.Rename...)} instead.