Example usage for org.apache.hadoop.hdfs.web.resources CreateParentParam CreateParentParam

List of usage examples for org.apache.hadoop.hdfs.web.resources CreateParentParam CreateParentParam

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.web.resources CreateParentParam CreateParentParam.

Prototype

public CreateParentParam(final String str) 

Source Link

Document

Constructor.

Usage

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();
}