Package | Description |
---|---|
org.apache.hadoop.hdfs.protocol | |
org.apache.hadoop.hdfs.server.namenode |
Modifier and Type | Method and Description |
---|---|
LocatedBlock |
ClientProtocol.append(String src,
String clientName)
Append to the end of the file.
|
void |
ClientProtocol.concat(String trg,
String[] srcs)
Moves blocks from srcs to trg and delete srcs
|
HdfsFileStatus |
ClientProtocol.create(String src,
FsPermission masked,
String clientName,
EnumSetWritable<CreateFlag> flag,
boolean createParent,
short replication,
long blockSize)
Create a new file entry in the namespace.
|
void |
ClientProtocol.createSymlink(String target,
String link,
FsPermission dirPerm,
boolean createParent)
Create symlink to a file or directory.
|
boolean |
ClientProtocol.delete(String src,
boolean recursive)
Delete the given file or directory from the file system.
|
boolean |
ClientProtocol.mkdirs(String src,
FsPermission masked,
boolean createParent)
Create a directory (or hierarchy of directories) with the given
name and permission.
|
boolean |
ClientProtocol.rename(String src,
String dst)
Rename an item in the file system namespace.
|
void |
ClientProtocol.rename2(String src,
String dst,
Options.Rename... options)
Rename src to dst.
|
void |
ClientProtocol.setOwner(String src,
String username,
String groupname)
Set Owner of a path (i.e.
|
void |
ClientProtocol.setPermission(String src,
FsPermission permission)
Set permissions for an existing file/directory.
|
void |
ClientProtocol.setQuota(String path,
long namespaceQuota,
long diskspaceQuota)
Set the quota for a directory.
|
boolean |
ClientProtocol.setReplication(String src,
short replication)
Set replication for an existing file.
|
void |
ClientProtocol.setTimes(String src,
long mtime,
long atime)
Sets the modification and access time of the file to the specified time.
|
Modifier and Type | Method and Description |
---|---|
INode |
FSDirectory.getINode4Write(String src)
Get
INode associated with the file / directory. |
INodesInPath |
FSDirectory.getINodesInPath4Write(String src)
Get
INode associated with the file / directory. |
Copyright © 2013 Apache Software Foundation. All rights reserved.