Class BlackListBasedTrustedChannelResolver
java.lang.Object
org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
org.apache.hadoop.hdfs.protocol.datatransfer.BlackListBasedTrustedChannelResolver
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
public class BlackListBasedTrustedChannelResolver
extends org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
Implements
TrustedChannelResolver
to trust ips/host/subnets based on a blackList.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPath to the file containing subnets and ip addresses to form fixed BlackList.static final StringTime in seconds after which the variable BlackList file is checked for updates.static final StringEnables/Disables variable BlackList.static final StringPath to the file to containing subnets and ip addresses to form variable BlackList.static final StringPath to the file containing subnets and ip addresses to form fixed BlackList.static final StringTime in seconds after which the variable BlackList file is checked for updates.static final StringEnables/Disables variable BlackList.static final StringPath to the file containing subnets and ip addresses to form variable BlackList. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisTrusted(InetAddress clientAddress) voidsetConf(org.apache.hadoop.conf.Configuration conf) Methods inherited from class org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
getConf, getInstance
-
Field Details
-
DFS_DATATRANSFER_SERVER_FIXED_BLACK_LIST_FILE
Path to the file containing subnets and ip addresses to form fixed BlackList. Server side config.- See Also:
-
DFS_DATATRANSFER_SERVER_VARIABLE_BLACK_LIST_ENABLE
Enables/Disables variable BlackList. Server side config.- See Also:
-
DFS_DATATRANSFER_SERVER_VARIABLE_BLACK_LIST_FILE
Path to the file containing subnets and ip addresses to form variable BlackList. Server side config.- See Also:
-
DFS_DATATRANSFER_SERVER_VARIABLE_BLACK_LIST_CACHE_SECS
Time in seconds after which the variable BlackList file is checked for updates. Server side config.- See Also:
-
DFS_DATATRANSFER_CLIENT_FIXED_BLACK_LIST_FILE
Path to the file containing subnets and ip addresses to form fixed BlackList. This key is for client.- See Also:
-
DFS_DATATRANSFER_CLIENT_VARIABLE_BLACK_LIST_ENABLE
Enables/Disables variable BlackList. This key is for client.- See Also:
-
DFS_DATATRANSFER_CLIENT_VARIABLE_BLACK_LIST_FILE
Path to the file to containing subnets and ip addresses to form variable BlackList. This key is for client.- See Also:
-
DFS_DATATRANSFER_CLIENT_VARIABLE_BLACK_LIST_CACHE_SECS
Time in seconds after which the variable BlackList file is checked for updates. This key is for client.- See Also:
-
-
Constructor Details
-
BlackListBasedTrustedChannelResolver
public BlackListBasedTrustedChannelResolver()
-
-
Method Details
-
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf) - Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable- Overrides:
setConfin classorg.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
-
isTrusted
public boolean isTrusted()- Overrides:
isTrustedin classorg.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
-
isTrusted
- Overrides:
isTrustedin classorg.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
-