public class UfsUtils extends Object
Constructor and Description |
---|
UfsUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
loadUfs(TachyonURI tfsAddrRootPath,
TachyonURI ufsAddrRootPath,
String excludePaths)
Load files under path "ufsAddrRootPath" (excluding excludePathPrefix relative to the path) to
the given tfs under a given destination path.
|
static void |
loadUnderFs(TachyonFS tfs,
TachyonURI tachyonPath,
TachyonURI ufsAddrRootPath,
PrefixList excludePathPrefix)
Load files under path "ufsAddress/ufsRootPath" (excluding excludePathPrefix) to the given tfs
under the given tfsRootPath directory.
|
static void |
main(String[] args) |
static void |
printUsage() |
public static void loadUfs(TachyonURI tfsAddrRootPath, TachyonURI ufsAddrRootPath, String excludePaths) throws IOException
tfsAddrRootPath
- the mTachyonFS address and path to load the src files, like
"tachyon://host:port/dest".ufsAddrRootPath
- the address and root path of the under FS, like "hdfs://host:port/src".excludePaths
- paths to exclude from ufsRootPath, which will not be loaded in mTachyonFS.IOException
public static void loadUnderFs(TachyonFS tfs, TachyonURI tachyonPath, TachyonURI ufsAddrRootPath, PrefixList excludePathPrefix) throws IOException
tfs
- the mTachyonFS handler created out of address like "tachyon://host:port"tachyonPath
- the destination point in mTachyonFS to load the under FS path ontoufsAddrRootPath
- the address and root path of the under FS, like "hdfs://host:port/dir".excludePathPrefix
- paths to exclude from ufsRootPath, which will not be registered in
mTachyonFS.IOException
public static void main(String[] args)
public static void printUsage()
Copyright © 2015. All Rights Reserved.