public class BlackListBasedTrustedChannelResolver
extends org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
TrustedChannelResolver
to trust ips/host/subnets based on a blackList.Modifier and Type | Field and Description |
---|---|
static String |
DFS_DATATRANSFER_CLIENT_FIXED_BLACK_LIST_FILE
Path to the file containing subnets and ip addresses to
form fixed BlackList.
|
static String |
DFS_DATATRANSFER_CLIENT_VARIABLE_BLACK_LIST_CACHE_SECS
Time in seconds after which the variable BlackList file is
checked for updates.
|
static String |
DFS_DATATRANSFER_CLIENT_VARIABLE_BLACK_LIST_ENABLE
Enables/Disables variable BlackList.
|
static String |
DFS_DATATRANSFER_CLIENT_VARIABLE_BLACK_LIST_FILE
Path to the file to containing subnets and ip addresses to form variable
BlackList.
|
static String |
DFS_DATATRANSFER_SERVER_FIXED_BLACK_LIST_FILE
Path to the file containing subnets and ip addresses to form
fixed BlackList.
|
static String |
DFS_DATATRANSFER_SERVER_VARIABLE_BLACK_LIST_CACHE_SECS
Time in seconds after which the variable BlackList file is checked for
updates.
|
static String |
DFS_DATATRANSFER_SERVER_VARIABLE_BLACK_LIST_ENABLE
Enables/Disables variable BlackList.
|
static String |
DFS_DATATRANSFER_SERVER_VARIABLE_BLACK_LIST_FILE
Path to the file containing subnets and ip addresses to form
variable BlackList.
|
Constructor and Description |
---|
BlackListBasedTrustedChannelResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
isTrusted() |
boolean |
isTrusted(InetAddress clientAddress) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public static final String DFS_DATATRANSFER_SERVER_FIXED_BLACK_LIST_FILE
public static final String DFS_DATATRANSFER_SERVER_VARIABLE_BLACK_LIST_ENABLE
public static final String DFS_DATATRANSFER_SERVER_VARIABLE_BLACK_LIST_FILE
public static final String DFS_DATATRANSFER_SERVER_VARIABLE_BLACK_LIST_CACHE_SECS
public static final String DFS_DATATRANSFER_CLIENT_FIXED_BLACK_LIST_FILE
public static final String DFS_DATATRANSFER_CLIENT_VARIABLE_BLACK_LIST_ENABLE
public static final String DFS_DATATRANSFER_CLIENT_VARIABLE_BLACK_LIST_FILE
public static final String DFS_DATATRANSFER_CLIENT_VARIABLE_BLACK_LIST_CACHE_SECS
public BlackListBasedTrustedChannelResolver()
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
public boolean isTrusted()
isTrusted
in class org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
public boolean isTrusted(InetAddress clientAddress)
isTrusted
in class org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.