public class HdfsUnderFileSystem extends UnderFileSystem
UnderFileSystem.SpaceType, UnderFileSystem.UnderFSTypemTachyonConf| Constructor and Description |
|---|
HdfsUnderFileSystem(String fsDefaultName,
TachyonConf tachyonConf,
Object conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connectFromMaster(TachyonConf conf,
String host) |
void |
connectFromWorker(TachyonConf conf,
String host) |
org.apache.hadoop.fs.FSDataOutputStream |
create(String path) |
org.apache.hadoop.fs.FSDataOutputStream |
create(String path,
int blockSizeByte)
BlockSize should be a multiple of 512
|
org.apache.hadoop.fs.FSDataOutputStream |
create(String path,
short replication,
int blockSizeByte) |
boolean |
delete(String path,
boolean recursive) |
boolean |
exists(String path) |
long |
getBlockSizeByte(String path) |
Object |
getConf() |
List<String> |
getFileLocations(String path) |
List<String> |
getFileLocations(String path,
long offset) |
long |
getFileSize(String path) |
long |
getModificationTimeMs(String path) |
long |
getSpace(String path,
UnderFileSystem.SpaceType type) |
UnderFileSystem.UnderFSType |
getUnderFSType() |
boolean |
isFile(String path) |
String[] |
list(String path) |
boolean |
mkdirs(String path,
boolean createParent) |
org.apache.hadoop.fs.FSDataInputStream |
open(String path) |
protected void |
prepareConfiguration(String path,
TachyonConf tachyonConf,
org.apache.hadoop.conf.Configuration config)
Prepares the Hadoop configuration necessary to successfully obtain a
FileSystem
instance that can access the provided path |
boolean |
rename(String src,
String dst) |
void |
setConf(Object conf) |
void |
setPermission(String path,
String posixPerm) |
get, get, isHadoopUnderFS, parse, providesStoragepublic HdfsUnderFileSystem(String fsDefaultName, TachyonConf tachyonConf, Object conf)
public UnderFileSystem.UnderFSType getUnderFSType()
getUnderFSType in class UnderFileSystemprotected void prepareConfiguration(String path, TachyonConf tachyonConf, org.apache.hadoop.conf.Configuration config)
FileSystem
instance that can access the provided path
Derived implementations that work with specialised Hadoop FileSystem API compatible implementations can override this method to add implementation specific configuration necessary for obtaining a usable FileSystem instance.
path - File system pathconfig - Hadoop Configurationpublic void close()
throws IOException
close in class UnderFileSystemIOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream create(String path) throws IOException
create in class UnderFileSystemIOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream create(String path, int blockSizeByte) throws IOException
create in class UnderFileSystemIOExceptionpublic org.apache.hadoop.fs.FSDataOutputStream create(String path, short replication, int blockSizeByte) throws IOException
create in class UnderFileSystemIOExceptionpublic boolean delete(String path, boolean recursive) throws IOException
delete in class UnderFileSystemIOExceptionpublic boolean exists(String path) throws IOException
exists in class UnderFileSystemIOExceptionpublic long getBlockSizeByte(String path) throws IOException
getBlockSizeByte in class UnderFileSystemIOExceptionpublic Object getConf()
getConf in class UnderFileSystempublic List<String> getFileLocations(String path) throws IOException
getFileLocations in class UnderFileSystemIOExceptionpublic List<String> getFileLocations(String path, long offset) throws IOException
getFileLocations in class UnderFileSystemIOExceptionpublic long getFileSize(String path) throws IOException
getFileSize in class UnderFileSystemIOExceptionpublic long getModificationTimeMs(String path) throws IOException
getModificationTimeMs in class UnderFileSystemIOExceptionpublic long getSpace(String path, UnderFileSystem.SpaceType type) throws IOException
getSpace in class UnderFileSystemIOExceptionpublic boolean isFile(String path) throws IOException
isFile in class UnderFileSystemIOExceptionpublic String[] list(String path) throws IOException
list in class UnderFileSystemIOExceptionpublic void connectFromMaster(TachyonConf conf, String host) throws IOException
connectFromMaster in class UnderFileSystemIOExceptionpublic void connectFromWorker(TachyonConf conf, String host) throws IOException
connectFromWorker in class UnderFileSystemIOExceptionpublic boolean mkdirs(String path, boolean createParent) throws IOException
mkdirs in class UnderFileSystemIOExceptionpublic org.apache.hadoop.fs.FSDataInputStream open(String path) throws IOException
open in class UnderFileSystemIOExceptionpublic boolean rename(String src, String dst) throws IOException
rename in class UnderFileSystemIOExceptionpublic void setConf(Object conf)
setConf in class UnderFileSystempublic void setPermission(String path, String posixPerm) throws IOException
setPermission in class UnderFileSystemIOExceptionCopyright © 2015. All Rights Reserved.