@InterfaceAudience.Private public static class FSOperations.FSSetOwner extends Object implements FileSystemAccess.FileSystemExecutor<Void>
Constructor and Description |
---|
FSOperations.FSSetOwner(String path,
String owner,
String group)
Creates a set-owner executor.
|
public FSOperations.FSSetOwner(String path, String owner, String group)
path
- the path to set the owner.owner
- owner to set.group
- group to set.public Void execute(org.apache.hadoop.fs.FileSystem fs) throws IOException
execute
in interface FileSystemAccess.FileSystemExecutor<Void>
fs
- filesystem instance to use.IOException
- thrown if an IO error occured.Copyright © 2019 Apache Software Foundation. All Rights Reserved.