public class HdfsEnvironment extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HdfsEnvironment.HdfsContext |
| Constructor and Description |
|---|
HdfsEnvironment(HdfsConfiguration hdfsConfiguration,
HdfsConfig config,
HdfsAuthentication hdfsAuthentication) |
| Modifier and Type | Method and Description |
|---|---|
<R,E extends Exception> |
doAs(String user,
GenericExceptionAction<R,E> action) |
void |
doAs(String user,
Runnable action) |
org.apache.hadoop.conf.Configuration |
getConfiguration(HdfsEnvironment.HdfsContext context,
org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.FileSystem |
getFileSystem(HdfsEnvironment.HdfsContext context,
org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.FileSystem |
getFileSystem(String user,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration configuration) |
org.apache.hadoop.fs.permission.FsPermission |
getNewDirectoryPermissions() |
@Inject public HdfsEnvironment(HdfsConfiguration hdfsConfiguration, HdfsConfig config, HdfsAuthentication hdfsAuthentication)
public org.apache.hadoop.conf.Configuration getConfiguration(HdfsEnvironment.HdfsContext context, org.apache.hadoop.fs.Path path)
public org.apache.hadoop.fs.FileSystem getFileSystem(HdfsEnvironment.HdfsContext context, org.apache.hadoop.fs.Path path) throws IOException
IOExceptionpublic org.apache.hadoop.fs.FileSystem getFileSystem(String user, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration configuration) throws IOException
IOExceptionpublic org.apache.hadoop.fs.permission.FsPermission getNewDirectoryPermissions()
public <R,E extends Exception> R doAs(String user, GenericExceptionAction<R,E> action) throws E extends Exception
E extends ExceptionCopyright © 2012–2020. All rights reserved.