public class KerberosHadoopFileSystemFactory extends BasicHadoopFileSystemFactory
This factory does not cache any file system instances. If "fs.[prefix].impl.disable.cache"
is set
to true
, file system instances will be cached by Hadoop.
Modifier and Type | Field and Description |
---|---|
static long |
DFLT_RELOGIN_INTERVAL
The default interval used to re-login from the key tab, in milliseconds.
|
Constructor and Description |
---|
KerberosHadoopFileSystemFactory()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getKeyTab()
Gets the key tab full file name (e.g.
|
@Nullable String |
getKeyTabPrincipal()
Gets the key tab principal short name (e.g.
|
long |
getReloginInterval()
The interval used to re-login from the key tab, in milliseconds.
|
void |
readExternal(ObjectInput in) |
void |
setKeyTab(@Nullable String keyTab)
Sets the key tab file name.
|
void |
setKeyTabPrincipal(@Nullable String keyTabPrincipal)
Set the key tab principal name.
|
void |
setReloginInterval(long reloginInterval)
Sets the relogin interval in milliseconds.
|
void |
writeExternal(ObjectOutput out) |
get, getConfigPaths, getUri, getUserNameMapper, setConfigPaths, setUri, setUserNameMapper
public static final long DFLT_RELOGIN_INTERVAL
public KerberosHadoopFileSystemFactory()
@Nullable public @Nullable String getKeyTabPrincipal()
public void setKeyTabPrincipal(@Nullable @Nullable String keyTabPrincipal)
getKeyTabPrincipal()
for more information.keyTabPrincipal
- The key tab principal name.@Nullable public @Nullable String getKeyTab()
public void setKeyTab(@Nullable @Nullable String keyTab)
getKeyTab()
for more information.keyTab
- The key tab file name.public long getReloginInterval()
0.8 * ticket life time
.
Default ticket life time is 1 day (24 hours), so the default re-login interval (10 min)
is obeys this rule well.
Zero value means that re-login should be attempted on each file system operation. Negative values are not allowed.
Note, however, that it does not make sense to make this value small, because Hadoop does not allow to
login if less than org.apache.hadoop.security.UserGroupInformation.MIN_TIME_BEFORE_RELOGIN
milliseconds
have passed since the time of the previous login.
public void setReloginInterval(long reloginInterval)
getReloginInterval()
for more information.reloginInterval
- The re-login interval, in milliseconds.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BasicHadoopFileSystemFactory
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BasicHadoopFileSystemFactory
IOException
ClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019