List of usage examples for org.apache.hadoop.hdfs.web.resources CreateParentParam CreateParentParam
public CreateParentParam(final String str)
From source file:com.bigstep.datalake.DLFileSystem.java
License:Apache License
/** * Create a symlink pointing to the destination path. * * @see org.apache.hadoop.fs.Hdfs#createSymlink(Path, Path, boolean) *//* www.j a v a 2 s . c o m*/ public void createSymlink(Path destination, Path f, boolean createParent) throws IOException { statistics.incrementWriteOps(1); final HttpOpParam.Op op = PutOpParam.Op.CREATESYMLINK; new FsPathRunner(op, f, new DestinationParam(makeQualified(destination).toUri().getPath()), new CreateParentParam(createParent)).run(); }