com.cloudera.hoop.fs
Class FSSetOwner
java.lang.Object
com.cloudera.hoop.fs.FSSetOwner
- All Implemented Interfaces:
- Hadoop.FileSystemExecutor<Void>
public class FSSetOwner
- extends Object
- implements Hadoop.FileSystemExecutor<Void>
Executor that performs a set-owner Hadoop files system operation.
|
Method Summary |
Void |
execute(org.apache.hadoop.fs.FileSystem fs)
Executes the filesystem operation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSSetOwner
public FSSetOwner(String path,
String owner,
String group)
- Creates a set-owner executor.
- Parameters:
path - the path to set the owner.owner - owner to set.group - group to set.
execute
public Void execute(org.apache.hadoop.fs.FileSystem fs)
throws IOException
- Executes the filesystem operation.
- Specified by:
execute in interface Hadoop.FileSystemExecutor<Void>
- Parameters:
fs - filesystem instance to use.
- Returns:
- void.
- Throws:
IOException - thrown if an IO error occured.
Copyright © 2012 Cloudera. All Rights Reserved.