Java Code Examples for org.apache.hadoop.security.SecurityUtil#buildDTServiceName()
The following examples show how to use
org.apache.hadoop.security.SecurityUtil#buildDTServiceName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileSystem.java From hadoop with Apache License 2.0 | 3 votes |
/** * Get a canonical service name for this file system. The token cache is * the only user of the canonical service name, and uses it to lookup this * filesystem's service tokens. * If file system provides a token of its own then it must have a canonical * name, otherwise canonical name can be null. * * Default Impl: If the file system has child file systems * (such as an embedded file system) then it is assumed that the fs has no * tokens of its own and hence returns a null name; otherwise a service * name is built using Uri and port. * * @return a service string that uniquely identifies this file system, null * if the filesystem does not implement tokens * @see SecurityUtil#buildDTServiceName(URI, int) */ @InterfaceAudience.LimitedPrivate({ "HDFS", "MapReduce" }) public String getCanonicalServiceName() { return (getChildFileSystems() == null) ? SecurityUtil.buildDTServiceName(getUri(), getDefaultPort()) : null; }
Example 2
Source File: FileSystem.java From big-c with Apache License 2.0 | 3 votes |
/** * Get a canonical service name for this file system. The token cache is * the only user of the canonical service name, and uses it to lookup this * filesystem's service tokens. * If file system provides a token of its own then it must have a canonical * name, otherwise canonical name can be null. * * Default Impl: If the file system has child file systems * (such as an embedded file system) then it is assumed that the fs has no * tokens of its own and hence returns a null name; otherwise a service * name is built using Uri and port. * * @return a service string that uniquely identifies this file system, null * if the filesystem does not implement tokens * @see SecurityUtil#buildDTServiceName(URI, int) */ @InterfaceAudience.LimitedPrivate({ "HDFS", "MapReduce" }) public String getCanonicalServiceName() { return (getChildFileSystems() == null) ? SecurityUtil.buildDTServiceName(getUri(), getDefaultPort()) : null; }
Example 3
Source File: AbstractFileSystem.java From hadoop with Apache License 2.0 | 2 votes |
/** * Get a canonical name for this file system. * @return a URI string that uniquely identifies this file system */ public String getCanonicalServiceName() { return SecurityUtil.buildDTServiceName(getUri(), getUriDefaultPort()); }
Example 4
Source File: AbstractFileSystem.java From big-c with Apache License 2.0 | 2 votes |
/** * Get a canonical name for this file system. * @return a URI string that uniquely identifies this file system */ public String getCanonicalServiceName() { return SecurityUtil.buildDTServiceName(getUri(), getUriDefaultPort()); }