List of usage examples for org.apache.hadoop.hdfs.web.resources OwnerParam OwnerParam
public OwnerParam(final String str)
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(); }