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 FileSystem |
getProxiedFileSystem(String userNameToProxyAs,
Properties properties,
Configuration conf)
Deprecated.
use
#fromProperties |
static FileSystem |
getProxiedFileSystem(String userNameToProxyAs,
Properties properties,
URI fsURI)
Deprecated.
use
#fromProperties |
static FileSystem |
getProxiedFileSystem(String userNameToProxyAs,
Properties properties,
URI fsURI,
Configuration configuration)
Deprecated.
Use
#fromProperties |
static FileSystem |
getProxiedFileSystemUsingKeytab(State state,
URI fsURI,
Configuration conf)
Deprecated.
use
#fromKeytab. |
static FileSystem |
getProxiedFileSystemUsingKeytab(String userNameToProxyAs,
String superUserName,
Path superUserKeytabLocation,
URI fsURI,
Configuration conf)
Deprecated.
use
#fromKeytab. |
static FileSystem |
getProxiedFileSystemUsingToken(String userNameToProxyAs,
org.apache.hadoop.security.token.Token<?> userNameToken,
URI fsURI,
Configuration conf)
Deprecated.
use
#fromToken. |
@Deprecated public static FileSystem getProxiedFileSystem(@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 FileSystem getProxiedFileSystem(@NonNull String userNameToProxyAs, Properties properties, 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 FileSystem getProxiedFileSystem(@NonNull String userNameToProxyAs, Properties properties, URI fsURI, 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 FileSystem getProxiedFileSystemUsingKeytab(State state, URI fsURI, Configuration conf) throws ExecutionException
#fromKeytab.ProxiedFileSystemUtils.createProxiedFileSystemUsingKeytab(State, URI, Configuration).ExecutionException@Deprecated public static FileSystem getProxiedFileSystemUsingKeytab(@NonNull String userNameToProxyAs, String superUserName, Path superUserKeytabLocation, URI fsURI, Configuration conf) throws ExecutionException
#fromKeytab.ProxiedFileSystemUtils.createProxiedFileSystemUsingKeytab(String, String, Path, URI, Configuration).ExecutionException@Deprecated public static FileSystem getProxiedFileSystemUsingToken(@NonNull String userNameToProxyAs, org.apache.hadoop.security.token.Token<?> userNameToken, URI fsURI, Configuration conf) throws ExecutionException
#fromToken.ProxiedFileSystemUtils.createProxiedFileSystemUsingToken(String, Token, URI, Configuration).ExecutionException