List of usage examples for org.apache.hadoop.tools.util DistCpUtils getRelativePath
public static String getRelativePath(Path sourceRootPath, Path childPath)
From source file:org.apache.falcon.replication.FilteredCopyListingTest.java
License:Apache License
private static void recordInExpectedValues(String path) throws Exception { FileSystem fileSystem = FileSystem.getLocal(new Configuration()); Path sourcePath = new Path(fileSystem.getUri().toString() + path); EXPECTED_VALUES.put(sourcePath.toString(), DistCpUtils.getRelativePath(new Path("/tmp/source"), sourcePath)); }