Added Methods |
void 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 )
|
|
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. |
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 )
|
|
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 .
|
|
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 ).
|
|
DirectoryListing listPaths(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 Recommend to use HdfsFileStatus.EMPTY_NAME as startAfter if the application wants to fetch a listing starting from the first entry in the directory |
void setOwner(String, String, String)
|
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException ).
|
Set file or directory owner. |
void setPermission(String, FsPermission)
|
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException ).
|
Set permissions to a file or 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 ).
|
set the modification and access time of a file |
OutputStream create(String, boolean)
|
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException ).
|
Create a new dfs file and return an output stream for writing into it. |
OutputStream create(String, boolean, Progressable)
|
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException ).
|
Create a new dfs file and return an output stream for writing into it with write-progress reporting. |
OutputStream create(String, boolean, short, long)
|
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException ).
|
Create a new dfs file with the specified block replication and return an output stream for writing into the file. |
OutputStream create(String, boolean, short, long, Progressable)
|
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException ).
|
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, boolean, short, long, Progressable, int)
|
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException ).
|
Call FsPermissio EnumSet short long Progressable int)} with default permission. |
boolean delete(String )
|
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException ).
|
Delete file or directory. |
boolean delete(String, boolean)
|
Change in exceptions thrown from java.io.IOException to (java.io.IOException, org.apache.hadoop.fs.UnresolvedLinkException ).
|
delete file or directory. |
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 ).
|
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)
|
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. |