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

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

Introduction

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

Prototype

public GroupParam(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");
    }/*www.j  a v a2 s . c  om*/

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