public class ProxiedFileSystemCache extends Object
FileSystem objects.
This classes uses Guava's Cache for storing the user to FileSystem mapping, and creates the
FileSystems using the ProxiedFileSystemUtils class.
Cache,
ProxiedFileSystemUtils| Constructor and Description |
|---|
ProxiedFileSystemCache() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.fs.FileSystem |
getProxiedFileSystem(@NonNull String userNameToProxyAs,
Properties properties,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
use
#fromProperties |
static org.apache.hadoop.fs.FileSystem |
getProxiedFileSystem(@NonNull String userNameToProxyAs,
Properties properties,
URI fsURI)
Deprecated.
use
#fromProperties |
static org.apache.hadoop.fs.FileSystem |
getProxiedFileSystem(@NonNull String userNameToProxyAs,
Properties properties,
URI fsURI,
org.apache.hadoop.conf.Configuration configuration)
Deprecated.
Use
#fromProperties |
static org.apache.hadoop.fs.FileSystem |
getProxiedFileSystemUsingKeytab(State state,
URI fsURI,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
use
#fromKeytab. |
static org.apache.hadoop.fs.FileSystem |
getProxiedFileSystemUsingKeytab(@NonNull String userNameToProxyAs,
String superUserName,
org.apache.hadoop.fs.Path superUserKeytabLocation,
URI fsURI,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
use
#fromKeytab. |
static org.apache.hadoop.fs.FileSystem |
getProxiedFileSystemUsingToken(@NonNull String userNameToProxyAs,
org.apache.hadoop.security.token.Token<?> userNameToken,
URI fsURI,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
use
#fromToken. |
@Deprecated public static org.apache.hadoop.fs.FileSystem getProxiedFileSystem(@NonNull @NonNull String userNameToProxyAs, Properties properties, URI fsURI) throws IOException
#fromPropertiesFileSystem that can perform any operations allowed by the specified userNameToProxyAs.userNameToProxyAs - The name of the user the super user should proxy asproperties - Properties containing initialization properties.fsURI - The URI for the FileSystem that should be created.FileSystem that can execute commands on behalf of the specified userNameToProxyAsIOException@Deprecated public static org.apache.hadoop.fs.FileSystem getProxiedFileSystem(@NonNull @NonNull String userNameToProxyAs, Properties properties, org.apache.hadoop.conf.Configuration conf) throws IOException
#fromPropertiesFileSystem that can perform any operations allowed by the specified userNameToProxyAs.userNameToProxyAs - The name of the user the super user should proxy asproperties - Properties containing initialization properties.conf - The Configuration for the FileSystem that should be created.FileSystem that can execute commands on behalf of the specified userNameToProxyAsIOException@Deprecated public static org.apache.hadoop.fs.FileSystem getProxiedFileSystem(@NonNull @NonNull String userNameToProxyAs, Properties properties, URI fsURI, org.apache.hadoop.conf.Configuration configuration) throws IOException
#fromPropertiesFileSystem that can perform any operations allowed by the specified userNameToProxyAs.userNameToProxyAs - The name of the user the super user should proxy asproperties - Properties containing initialization properties.fsURI - The URI for the FileSystem that should be created.configuration - The Configuration for the FileSystem that should be created.FileSystem that can execute commands on behalf of the specified userNameToProxyAsIOException@Deprecated public static org.apache.hadoop.fs.FileSystem getProxiedFileSystemUsingKeytab(State state, URI fsURI, org.apache.hadoop.conf.Configuration conf) throws ExecutionException
#fromKeytab.ProxiedFileSystemUtils.createProxiedFileSystemUsingKeytab(State, URI, Configuration).ExecutionException@Deprecated public static org.apache.hadoop.fs.FileSystem getProxiedFileSystemUsingKeytab(@NonNull @NonNull String userNameToProxyAs, String superUserName, org.apache.hadoop.fs.Path superUserKeytabLocation, URI fsURI, org.apache.hadoop.conf.Configuration conf) throws ExecutionException
#fromKeytab.ProxiedFileSystemUtils.createProxiedFileSystemUsingKeytab(String, String, Path, URI, Configuration).ExecutionException@Deprecated public static org.apache.hadoop.fs.FileSystem getProxiedFileSystemUsingToken(@NonNull @NonNull String userNameToProxyAs, org.apache.hadoop.security.token.Token<?> userNameToken, URI fsURI, org.apache.hadoop.conf.Configuration conf) throws ExecutionException
#fromToken.ProxiedFileSystemUtils.createProxiedFileSystemUsingToken(String, Token, URI, Configuration).ExecutionException