public class UnderfsUtils extends Object
Constructor and Description |
---|
UnderfsUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
loadUnderFs(String tfsAddrRootPath,
String 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,
String tfsRootPath,
String 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 loadUnderFs(String tfsAddrRootPath, String ufsAddrRootPath, String excludePaths) throws IOException
tfsAddrRootPath
- the TFS 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 TFS.IOException
public static void loadUnderFs(TachyonFS tfs, String tfsRootPath, String ufsAddrRootPath, PrefixList excludePathPrefix) throws IOException
tfs
- the TFS handler created out of address like "tachyon://host:port"tfsRootPath
- the destination point in TFS 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 TFS.IOException
public static void main(String[] args)
public static void printUsage()
Copyright © 2014. All rights reserved.