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

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

Introduction

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

Prototype

public OwnerParam(final String str) 

Source Link

Document

Constructor.

Usage

From source file:com.bigstep.datalake.DLFileSystem.java

License:Apache License

@Override
public void setOwner(final Path p, final String owner, final String group) throws IOException {
    if (owner == null && group == null) {
        throw new IOException("owner == null && group == null");
    }//from   w  ww.  j ava  2 s .co  m

    statistics.incrementWriteOps(1);
    final HttpOpParam.Op op = PutOpParam.Op.SETOWNER;
    new FsPathRunner(op, p, new OwnerParam(owner), new GroupParam(group)).run();
}