HDFS-9842. dfs.datanode.balance.bandwidthPerSec should accept friendly size units. (Contributed by Lin Yiqun)
This commit is contained in:
parent
7402448387
commit
fef99bcae0
|
@ -1880,6 +1880,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HDFS-7452. skip StandbyException log for getCorruptFiles()
|
||||
(Bramha Reddy Battula via vinayakumarb)
|
||||
|
||||
HDFS-9842. dfs.datanode.balance.bandwidthPerSec should accept friendly
|
||||
size units. (Lin Yiqun via Arpit Agarwal)
|
||||
|
||||
Release 2.7.3 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -131,7 +131,7 @@ class DataXceiverServer implements Runnable {
|
|||
|
||||
//set up parameter for cluster balancing
|
||||
this.balanceThrottler = new BlockBalanceThrottler(
|
||||
conf.getLong(DFSConfigKeys.DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_KEY,
|
||||
conf.getLongBytes(DFSConfigKeys.DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_KEY,
|
||||
DFSConfigKeys.DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_DEFAULT),
|
||||
conf.getInt(DFSConfigKeys.DFS_DATANODE_BALANCE_MAX_NUM_CONCURRENT_MOVES_KEY,
|
||||
DFSConfigKeys.DFS_DATANODE_BALANCE_MAX_NUM_CONCURRENT_MOVES_DEFAULT));
|
||||
|
|
|
@ -815,7 +815,11 @@
|
|||
<description>
|
||||
Specifies the maximum amount of bandwidth that each datanode
|
||||
can utilize for the balancing purpose in term of
|
||||
the number of bytes per second.
|
||||
the number of bytes per second. You can use the following
|
||||
suffix (case insensitive):
|
||||
k(kilo), m(mega), g(giga), t(tera), p(peta), e(exa)to specify the size
|
||||
(such as 128k, 512m, 1g, etc.).
|
||||
Or provide complete size in bytes (such as 134217728 for 128 MB).
|
||||
</description>
|
||||
</property>
|
||||
|
||||
|
|
Loading…
Reference in New Issue