• hdfs - balancer学习


    balance是啥,顾名思义 是个平衡器

    主要是平衡各个datanode之间的使用

     网上的文档一个比一个写的6结果,有的命令都拼错了。。。而且你知道究竟平衡的是啥么

    直接上官网

    Apache Hadoop 3.2.2 – HDFS Commands Guideicon-default.png?t=M5H6https://hadoop.apache.org/docs/r3.2.2/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#balancer

    --查看balance 也就是集群之间转移数据的速度

    hdfs dfsadmin -getBalancerBandwidth node17:9867 

    Balancer bandwidth is 10485760 bytes per second.  --10M嫌慢 设置20M

    这里权限有点问题。。。认证hdfs

    hdfs dfsadmin -setBalancerBandwidth 20971520

    1. [root@worker01 /home/devuser]# hdfs dfsadmin -setBalancerBandwidth  20971520
    2. NumberFormatException: For input string: " 20971520"
    3. Usage: hdfs dfsadmin [-setBalancerBandwidth <bandwidth in bytes per second>]
    4. [root@worker01 /home/devuser]# hdfs dfsadmin -setBalancerBandwidth 20971520
    5. setBalancerBandwidth: Access denied for user hive. Superuser privilege is required
    6. [root@worker01 /home/devuser]# kinit hdfs
    7. Password for hdfs@CDH.COM:
    8. [root@worker01 /home/devuser]# hdfs dfsadmin -setBalancerBandwidth 20971520
    9. [root@worker01 /home/devuser]# hdfs dfsadmin -setBalancerBandwidth 20971520
    10. Balancer bandwidth is set to 20971520 for master.data.com/9.134.64.234:8020
    11. Balancer bandwidth is set to 20971520 for node01.data.com/9.134.66.48:8020

    --这里的时候我遇到一个问题 ip我知道,这个端口是啥。。但是我注意这个是ipc_port 

    开始准备balancer

    1. [root@worker01 /home/devuser]# hdfs balancer --help
    2. Usage: hdfs balancer
    3. [-policy <policy>] the balancing policy: datanode or blockpool
    4. [-threshold <threshold>] Percentage of disk capacity
    5. [-exclude [-f <hosts-file> | <comma-separated list of hosts>]] Excludes the specified datanodes.
    6. [-include [-f <hosts-file> | <comma-separated list of hosts>]] Includes only the specified datanodes.
    7. [-source [-f <hosts-file> | <comma-separated list of hosts>]] Pick only the specified datanodes as source nodes.
    8. [-blockpools <comma-separated list of blockpool ids>] The balancer will only run on blockpools included in this list.
    9. [-idleiterations <idleiterations>] Number of consecutive idle iterations (-1 for Infinite) before exit.
    10. [-runDuringUpgrade] Whether to run the balancer during an ongoing HDFS upgrade.This is usually not desired since it will not affect used space on over-utilized machines.
    11. Generic options supported are:
    12. -conf <configuration file> specify an application configuration file
    13. -D <property=value> define a value for a given property
    14. -fs <file:///|hdfs://namenode:port> specify default filesystem URL to use, overrides 'fs.defaultFS' property from configurations.
    15. -jt <local|resourcemanager:port> specify a ResourceManager
    16. -files <file1,...> specify a comma-separated list of files to be copied to the map reduce cluster
    17. -libjars <jar1,...> specify a comma-separated list of jar files to be included in the classpath
    18. -archives <archive1,...> specify a comma-separated list of archives to be unarchived on the compute machines
    19. The general command line syntax is:
    20. command [genericOptions] [commandOptions]

     这时候要考虑一个问题?怎么样才算平衡?

    比如10个dn,每个100G容量,共计1T, 总共使用了200G 其中 dn1使用了1k dn2使用了99G

    那么我要怎么平衡? dn1和dn2平衡到20G还是50G。我也不知道。

    开始实验

    threshold 

    hdfs balancer -threshold 5  --阈值=5 也就是容忍datanode数据的差距是5%

    1. [root@worker01 /home/devuser]# hdfs balancer -threshold 5
    2. 22/06/27 11:29:18 INFO balancer.Balancer: Using a threshold of 5.0
    3. 22/06/27 11:29:18 INFO balancer.Balancer: namenodes = [hdfs://s2cluster]
    4. 22/06/27 11:29:18 INFO balancer.Balancer: parameters = Balancer.BalancerParameters [BalancingPolicy.Node, threshold = 5.0, max idle iteration = 5, #excluded nodes = 0, #included nodes = 0, #source nodes = 0, #blockpools = 0, run during upgrade = false]
    5. 22/06/27 11:29:18 INFO balancer.Balancer: included nodes = []
    6. 22/06/27 11:29:18 INFO balancer.Balancer: excluded nodes = []
    7. 22/06/27 11:29:18 INFO balancer.Balancer: source nodes = []
    8. Time Stamp Iteration# Bytes Already Moved Bytes Left To Move Bytes Being Moved
    9. 22/06/27 11:29:19 INFO balancer.KeyManager: Block token params received from NN: update interval=10hrs, 0sec, token lifetime=10hrs, 0sec
    10. 22/06/27 11:29:19 INFO block.BlockTokenSecretManager: Setting block keys
    11. 22/06/27 11:29:19 INFO balancer.KeyManager: Update block keys every 2hrs, 30mins, 0sec
    12. 22/06/27 11:29:19 INFO balancer.Balancer: dfs.balancer.movedWinWidth = 5400000 (default=5400000)
    13. 22/06/27 11:29:19 INFO balancer.Balancer: dfs.balancer.moverThreads = 1000 (default=1000)
    14. 22/06/27 11:29:19 INFO balancer.Balancer: dfs.balancer.dispatcherThreads = 200 (default=200)
    15. 22/06/27 11:29:19 INFO balancer.Balancer: dfs.datanode.balance.max.concurrent.moves = 50 (default=50)
    16. 22/06/27 11:29:19 INFO balancer.Balancer: dfs.balancer.getBlocks.size = 2147483648 (default=2147483648)
    17. 22/06/27 11:29:19 INFO balancer.Balancer: dfs.balancer.getBlocks.min-block-size = 10485760 (default=10485760)
    18. 22/06/27 11:29:19 INFO block.BlockTokenSecretManager: Setting block keys
    19. 22/06/27 11:29:19 INFO balancer.Balancer: dfs.balancer.max-size-to-move = 10737418240 (default=10737418240)
    20. 22/06/27 11:29:19 INFO balancer.Balancer: dfs.blocksize = 134217728 (default=134217728)
    21. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.117.90:1004
    22. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.68.200:1004
    23. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.80.60:1004
    24. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.81.221:1004
    25. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.124.14:1004
    26. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.122.87:1004
    27. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.83.33:1004
    28. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.163.60:1004
    29. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.115.141:1004
    30. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.124.36:1004
    31. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.71.192:1004
    32. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.123.37:1004
    33. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.117.73:1004
    34. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.163.238:1004
    35. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.116.73:1004
    36. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.77.69:1004
    37. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.123.190:1004
    38. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.81.127:1004
    39. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.163.174:1004
    40. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.80.64:1004
    41. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.122.224:1004
    42. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.123.215:1004
    43. 22/06/27 11:29:19 INFO net.NetworkTopology: Adding a new node: /default/9.134.122.6:1004
    44. 22/06/27 11:29:19 INFO balancer.Balancer: 3 over-utilized: [9.134.117.90:1004:DISK, 9.134.124.14:1004:DISK, 9.134.116.73:1004:DISK]
    45. 22/06/27 11:29:19 INFO balancer.Balancer: 5 underutilized: [9.134.80.60:1004:DISK, 9.134.81.221:1004:DISK, 9.134.124.36:1004:DISK, 9.134.81.127:1004:DISK, 9.134.80.64:1004:DISK]
    46. 22/06/27 11:29:19 INFO balancer.Balancer: Need to move 51.86 GB to make the cluster balanced.
    47. 22/06/27 11:29:19 INFO balancer.Balancer: chooseStorageGroups for SAME_RACK: overUtilized => underUtilized
    48. 22/06/27 11:29:19 INFO balancer.Balancer: Decided to move 10 GB bytes from 9.134.117.90:1004:DISK to 9.134.80.60:1004:DISK
    49. 22/06/27 11:29:19 INFO balancer.Balancer: Decided to move 10 GB bytes from 9.134.124.14:1004:DISK to 9.134.81.221:1004:DISK
    50. 22/06/27 11:29:19 INFO balancer.Balancer: Decided to move 10 GB bytes from 9.134.116.73:1004:DISK to 9.134.124.36:1004:DISK
    51. 22/06/27 11:29:19 INFO balancer.Balancer: chooseStorageGroups for SAME_RACK: overUtilized => belowAvgUtilized
    52. 22/06/27 11:29:19 INFO balancer.Balancer: chooseStorageGroups for SAME_RACK: underUtilized => aboveAvgUtilized
    53. 22/06/27 11:29:19 INFO balancer.Balancer: Decided to move 10 GB bytes from 9.134.68.200:1004:DISK to 9.134.81.127:1004:DISK
    54. 22/06/27 11:29:19 INFO balancer.Balancer: Decided to move 10 GB bytes from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK
    55. 22/06/27 11:29:19 INFO balancer.Balancer: chooseStorageGroups for ANY_OTHER: overUtilized => underUtilized
    56. 22/06/27 11:29:19 INFO balancer.Balancer: chooseStorageGroups for ANY_OTHER: overUtilized => belowAvgUtilized
    57. 22/06/27 11:29:19 INFO balancer.Balancer: chooseStorageGroups for ANY_OTHER: underUtilized => aboveAvgUtilized
    58. 22/06/27 11:29:19 INFO balancer.Balancer: Will move 50 GB in this iteration
    59. 22/06/27 11:29:19 INFO balancer.Dispatcher: Limiting threads per target to the specified max.
    60. 22/06/27 11:29:19 INFO balancer.Dispatcher: Allocating 50 threads per target.
    61. 22/06/27 11:29:19 INFO retry.RetryInvocationHandler: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby. Visit https://s.apache.org/sbnn-error
    62. at org.apache.hadoop.hdfs.server.namenode.ha.StandbyState.checkOperation(StandbyState.java:88)
    63. at org.apache.hadoop.hdfs.server.namenode.NameNode$NameNodeHAContext.checkOperation(NameNode.java:1962)
    64. at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkOperation(FSNamesystem.java:1421)
    65. at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlocks(FSNamesystem.java:1716)
    66. at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getBlocks(NameNodeRpcServer.java:631)
    67. at org.apache.hadoop.hdfs.protocolPB.NamenodeProtocolServerSideTranslatorPB.getBlocks(NamenodeProtocolServerSideTranslatorPB.java:89)
    68. at org.apache.hadoop.hdfs.protocol.proto.NamenodeProtocolProtos$NamenodeProtocolService$2.callBlockingMethod(NamenodeProtocolProtos.java:12966)
    69. at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:523)
    70. at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:991)
    71. at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:869)
    72. at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:815)
    73. at java.security.AccessController.doPrivileged(Native Method)
    74. at javax.security.auth.Subject.doAs(Subject.java:422)
    75. at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)
    76. at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2675)
    77. , while invoking NamenodeProtocolTranslatorPB.getBlocks over master.data.com/9.134.64.234:8020. Trying to failover immediately.
    78. 22/06/27 11:29:19 WARN retry.RetryInvocationHandler: A failover has occurred since the start of call #13 NamenodeProtocolTranslatorPB.getBlocks over node01.data.com/9.134.66.48:8020
    79. 22/06/27 11:29:19 WARN retry.RetryInvocationHandler: A failover has occurred since the start of call #16 NamenodeProtocolTranslatorPB.getBlocks over node01.data.com/9.134.66.48:8020
    80. 22/06/27 11:29:19 WARN retry.RetryInvocationHandler: A failover has occurred since the start of call #14 NamenodeProtocolTranslatorPB.getBlocks over node01.data.com/9.134.66.48:8020
    81. 22/06/27 11:29:19 WARN retry.RetryInvocationHandler: A failover has occurred since the start of call #12 NamenodeProtocolTranslatorPB.getBlocks over node01.data.com/9.134.66.48:8020
    82. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1090172187_16434653 with size=112350808 from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK through 9.134.122.87:1004
    83. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1090197454_16459920 with size=134217728 from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK through 9.134.122.87:1004
    84. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1090172224_16434690 with size=92790751 from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK through 9.134.122.87:1004
    85. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1090200946_16463412 with size=134217728 from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK through 9.134.122.87:1004
    86. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1090243729_16506195 with size=10589105 from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK through 9.134.122.87:1004
    87. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1090383941_16646407 with size=73175462 from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK through 9.134.122.87:1004
    88. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1090243736_16506202 with size=10589105 from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK through 9.134.68.200:1004
    89. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1090384199_16646665 with size=265221529 from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK through 9.134.122.87:1004
    90. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1090374653_16637119 with size=15559033 from 9.134.122.87:1004:DISK to 9.134.80.64:1004:DISK through 9.134.122.87:1004
    91. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1087149463_13410403 with size=70067422 from 9.134.117.90:1004:DISK to 9.134.80.60:1004:DISK through 9.134.163.174:1004
    92. 22/06/27 11:29:19 INFO balancer.Dispatcher: Start moving blk_1085874680_12135195 with size=18098983 from 9.134.68.200:1004:DISK to 9.134.81.127:1004:DISK through 9.134.83.33:1004

    结果很有意思的是打印日志的时候报错了。来分析下日志

    1.Using a threshold of 5.0 说明获取到阈值

    2.namenodes  = [hdfs://s2cluster] 获取到集群信息 并且是HA

    3.included nodes = [] ,excluded nodes = [] 说明我们没有设置指定哪些节点或者排除哪些节点

    4.dfs.balancer.xx 打印了很多默认参数

    5. 3 over-utilized: [9.134.117.90:1004:DISK, 9.134.124.14:1004:DISK, 9.134.116.73:1004:DISK]

    5 underutilized: [9.134.80.60:1004:DISK, 9.134.81.221:1004:DISK, 9.134.124.36:1004:DISK, 9.134.81.127:1004:DISK, 9.134.80.64:1004:DISK]
    这里说的是3个超过了限额的。5个低于限额的。我们来先看下这3个over发现其实有问题的。

     

    发现其实这三个没有相似处。暂且不管。

    6.开始分配over->under

    7开始move结果报错了,Operation category READ is not supported in state standby 这个不用说肯定是用到了standby的节点 

    8.关键日志, while invoking NamenodeProtocolTranslatorPB.getBlocks over master.data.com/9.134.64.234:8020. Trying to failover immediately. 这个b怎么就用的mater,下图可以看到master处于备用阶段,按照ha应该是可以用node01的。淦!

     9、但是后面的日志惊奇的发现他又开始用node01的active nn了。并且有开始move的日志了

    10、Failed to move blk_1074919453_1178890 with size=134217728 from 9.134.68.200:1004:DISK to 9.134.81.127:1004:DISK through 9.134.80.60:1004
    java.io.IOException: Got error, status=ERROR, status message Not able to receive block 1074919453 from /9.134.70.1:44227 because threads quota is exceeded., reportedBlock move is failed 好像是thread超过限额了?

    -----------------------

    上面的命令说明了啥?

    只要你设置了阈值那么就会立马起作用!!! 

    于是改变策略我只移动两个nn的。

     发现根本就没有低于阈值或者高于阈值的。。感觉这里有问题。

    hdfs balancer -threshold 5 再次使用

    之前取销是因为一直报错。。。后面发现这些报错不用管。等十几秒就会正常。前面都是连接错误啥的。

    后面正常了就会显示 正在从a 移到b 

     这里显示完成了。但是我在cdh的控制页面发现还是一样的。

     其实我这里放了一个错误!!

    磁盘的使用情况不是hdfs的容量的使用情况!!

    磁盘的使用情况df -h以node17为例!cdh显示 376G/491G

     

     node17所有容量相加 差不多是500多G,但是/data目录是394G,使用的差不多是302+51=353G

     

    hdfs dfs -report 搜索node17

     

     这里显示configured Capacity 是383G, dfs实际使用116G 非dfs使用175G 

    一般来说hdfs目录是挂载在/data目录的。

    可以看到dfs占用了117G 其余的非hdfs差不多是5.7+7.1+8.7+137+11+其余的=175G

    此时我们可以得到如下结论

    /data目录本身有394G内存 与这个report的383G差不多。(这个误差我不知道为啥。)

    /data目录有比如kudu的tablet log啥的这些属于非hdfs的文件,占用了175G和report一样!!

    /data/dfs =117G和我们report的116.08G一样!

    这时才明白 我为什么我上面看到node17 node18差别那么大,怎么不能balance了把,

    截图node18 /data目录容量。因为这上面他本身dfs占用内存也不少

    而node17的tablet目录也有100多G 让我误以为两者相差很多

    当前这个都是我balance后的截图。。balance前两者是否平衡,我也不能回到过去了。。

    总结

    我们平衡hdfs,是为了平衡什么呢?

    /data目录?/data/dfs下的容量?/data/dfs的容量占/data的百分比?

    个人认为是/data/dfs的容量占/data的百分比。

    由于我之前已经balance成功了。

    可以看到所有的dn节点DFS Used% 差不多都是25-35之间,刚好符合我们的比例+_5%

    Configured Capacity: 10424513773568 (9.48 TB)
    Present Capacity: 7435669957834 (6.76 TB)
    DFS Remaining: 4419545119946 (4.02 TB)
    DFS Used: 3016124837888 (2.74 TB)
    DFS Used%: 40.56%

    9.48T是所有机器的/data目录容量

    Present Capacity 是什么?先留下疑问

    2.74 T是所有机器的/data/dfs目录容量

    40.56%是 2.74/6.72 那么平均的百分比应该是40呀我们的threhold=5那么其余的dn应该是35-45%呀

    注意下面的dn 以node19为例

    Name: 9.134.115.141:1004 (node19.data.com)
    Configured Capacity: 411883184128 (383.60 GB)
    DFS Used: 119300038656 (111.11 GB)
    Non DFS Used: 51429728256 (47.90 GB)
    DFS Remaining: 219661856768 (204.58 GB)
    DFS Used%: 28.96%
    DFS Remaining%: 53.33%
    383.60 GB 是/data目录的

    111.11 GB 是/data/dfs目录的

    28.96% =111.11G/383G

    这个怎么百分比会这么少呢?按道理来说,每天机器差不多都是25-35%,那么total也应该是30左右呀怎么会是40%

    有意思的事情出来了。可以看到我们

    每个dn的dfs used差不多是110-120G那么23个节点就是2.xT 等于我们上面的2.74T。

    dn中容量为383G的有14台 482G的有9台,总容量=383*14+482*9=9.7T

    所以这里存在一个问题!!!!

    所有dn的 DFS Used%= DFS Used/Present Capacity

    每个dn的 DFS Used%=DFS Used/Configured Capacity

    所以这里是有出入的。

    所以关键在present Capacity 个人猜测是 Configured Capacity -所有的Non DFS Used

    所以Present Capacity=9.48T-2.25T= 7.23T貌似不对...我也没办法了。

    虽然这个问题没解决。但是有了如下收获!!

    1. 设置转移速度, 设置balance阈值

    2.记住balance之前 hdfs dfsadmin -report 查看各个dn的dfs used%

    3.这里balance的是 /data/dfs目录 占/data目录的百分比。

    4.一般来说要么设置dfs.datanode.data.dir = /data 那么就不要把其余工作目录设置到data。

    因为比如每个dn容量为500G,但是某个dn 的/data目录里有个400G的文件,那么这个dn的dfs used在用到20%的时候就会出现问题。这个时候可以通过df -h 来排查。当然你排查了也没用。因为这个400G的文件就是在这!!!

    1. [root@worker01 /home/devuser]# hdfs dfsadmin -report
    2. [root@worker01 /home/devuser]# hdfs dfsadmin -report
    3. Configured Capacity: 10424513773568 (9.48 TB)
    4. Present Capacity: 7435669957834 (6.76 TB)
    5. DFS Remaining: 4419545119946 (4.02 TB)
    6. DFS Used: 3016124837888 (2.74 TB)
    7. DFS Used%: 40.56%
    8. Replicated Blocks:
    9. Under replicated blocks: 0
    10. Blocks with corrupt replicas: 0
    11. Missing blocks: 0
    12. Missing blocks (with replication factor 1): 0
    13. Low redundancy blocks with highest priority to recover: 0
    14. Pending deletion blocks: 0
    15. Erasure Coded Block Groups:
    16. Low redundancy block groups: 0
    17. Block groups with corrupt internal blocks: 0
    18. Missing block groups: 0
    19. Low redundancy blocks with highest priority to recover: 0
    20. Pending deletion blocks: 0
    21. -------------------------------------------------
    22. Live datanodes (23):
    23. Name: 9.134.115.141:1004 (node19.data.com)
    24. Hostname: node19.data.com
    25. Rack: /default
    26. Decommission Status : Normal
    27. Configured Capacity: 411883184128 (383.60 GB)
    28. DFS Used: 119300038656 (111.11 GB)
    29. Non DFS Used: 51429728256 (47.90 GB)
    30. DFS Remaining: 219661856768 (204.58 GB)
    31. DFS Used%: 28.96%
    32. DFS Remaining%: 53.33%
    33. Configured Cache Capacity: 4294967296 (4 GB)
    34. Cache Used: 0 (0 B)
    35. Cache Remaining: 4294967296 (4 GB)
    36. Cache Used%: 0.00%
    37. Cache Remaining%: 100.00%
    38. Xceivers: 2
    39. Last contact: Mon Jun 27 13:50:43 CST 2022
    40. Last Block Report: Mon Jun 27 09:02:06 CST 2022
    41. Name: 9.134.116.73:1004 (node22.data.com)
    42. Hostname: node22.data.com
    43. Rack: /default
    44. Decommission Status : Normal
    45. Configured Capacity: 411883184128 (383.60 GB)
    46. DFS Used: 139341885440 (129.77 GB)
    47. Non DFS Used: 4911681536 (4.57 GB)
    48. DFS Remaining: 246138056704 (229.23 GB)
    49. DFS Used%: 33.83%
    50. DFS Remaining%: 59.76%
    51. Configured Cache Capacity: 4294967296 (4 GB)
    52. Cache Used: 0 (0 B)
    53. Cache Remaining: 4294967296 (4 GB)
    54. Cache Used%: 0.00%
    55. Cache Remaining%: 100.00%
    56. Xceivers: 2
    57. Last contact: Mon Jun 27 13:50:42 CST 2022
    58. Last Block Report: Mon Jun 27 11:49:39 CST 2022
    59. Name: 9.134.117.73:1004 (node17.data.com)
    60. Hostname: node17.data.com
    61. Rack: /default
    62. Decommission Status : Normal
    63. Configured Capacity: 411883184128 (383.60 GB)
    64. DFS Used: 124636291072 (116.08 GB)
    65. Non DFS Used: 188638429184 (175.68 GB)
    66. DFS Remaining: 77116903424 (71.82 GB)
    67. DFS Used%: 30.26%
    68. DFS Remaining%: 18.72%
    69. Configured Cache Capacity: 4294967296 (4 GB)
    70. Cache Used: 0 (0 B)
    71. Cache Remaining: 4294967296 (4 GB)
    72. Cache Used%: 0.00%
    73. Cache Remaining%: 100.00%
    74. Xceivers: 2
    75. Last contact: Mon Jun 27 13:50:41 CST 2022
    76. Last Block Report: Mon Jun 27 10:26:56 CST 2022
    77. Name: 9.134.117.90:1004 (node16.data.com)
    78. Hostname: node16.data.com
    79. Rack: /default
    80. Decommission Status : Normal
    81. Configured Capacity: 411883184128 (383.60 GB)
    82. DFS Used: 127383461888 (118.64 GB)
    83. Non DFS Used: 107218415616 (99.85 GB)
    84. DFS Remaining: 155668209253 (144.98 GB)
    85. DFS Used%: 30.93%
    86. DFS Remaining%: 37.79%
    87. Configured Cache Capacity: 4294967296 (4 GB)
    88. Cache Used: 0 (0 B)
    89. Cache Remaining: 4294967296 (4 GB)
    90. Cache Used%: 0.00%
    91. Cache Remaining%: 100.00%
    92. Xceivers: 4
    93. Last contact: Mon Jun 27 13:50:42 CST 2022
    94. Last Block Report: Mon Jun 27 12:35:15 CST 2022
    95. Name: 9.134.122.224:1004 (node14.data.com)
    96. Hostname: node14.data.com
    97. Rack: /default
    98. Decommission Status : Normal
    99. Configured Capacity: 411883184128 (383.60 GB)
    100. DFS Used: 139456868352 (129.88 GB)
    101. Non DFS Used: 139715756032 (130.12 GB)
    102. DFS Remaining: 111218999296 (103.58 GB)
    103. DFS Used%: 33.86%
    104. DFS Remaining%: 27.00%
    105. Configured Cache Capacity: 4294967296 (4 GB)
    106. Cache Used: 0 (0 B)
    107. Cache Remaining: 4294967296 (4 GB)
    108. Cache Used%: 0.00%
    109. Cache Remaining%: 100.00%
    110. Xceivers: 2
    111. Last contact: Mon Jun 27 13:50:43 CST 2022
    112. Last Block Report: Mon Jun 27 12:37:22 CST 2022
    113. Name: 9.134.122.6:1004 (node12.data.com)
    114. Hostname: node12.data.com
    115. Rack: /default
    116. Decommission Status : Normal
    117. Configured Capacity: 517572132864 (482.03 GB)
    118. DFS Used: 142010712064 (132.26 GB)
    119. Non DFS Used: 138266742784 (128.77 GB)
    120. DFS Remaining: 210434408448 (195.98 GB)
    121. DFS Used%: 27.44%
    122. DFS Remaining%: 40.66%
    123. Configured Cache Capacity: 4294967296 (4 GB)
    124. Cache Used: 0 (0 B)
    125. Cache Remaining: 4294967296 (4 GB)
    126. Cache Used%: 0.00%
    127. Cache Remaining%: 100.00%
    128. Xceivers: 2
    129. Last contact: Mon Jun 27 13:50:42 CST 2022
    130. Last Block Report: Mon Jun 27 12:51:06 CST 2022
    131. Name: 9.134.122.87:1004 (node23.data.com)
    132. Hostname: node23.data.com
    133. Rack: /default
    134. Decommission Status : Normal
    135. Configured Capacity: 411883184128 (383.60 GB)
    136. DFS Used: 126853881856 (118.14 GB)
    137. Non DFS Used: 5369483264 (5.00 GB)
    138. DFS Remaining: 258168258560 (240.44 GB)
    139. DFS Used%: 30.80%
    140. DFS Remaining%: 62.68%
    141. Configured Cache Capacity: 4294967296 (4 GB)
    142. Cache Used: 0 (0 B)
    143. Cache Remaining: 4294967296 (4 GB)
    144. Cache Used%: 0.00%
    145. Cache Remaining%: 100.00%
    146. Xceivers: 2
    147. Last contact: Mon Jun 27 13:50:43 CST 2022
    148. Last Block Report: Mon Jun 27 13:01:49 CST 2022
    149. Name: 9.134.123.190:1004 (node13.data.com)
    150. Hostname: node13.data.com
    151. Rack: /default
    152. Decommission Status : Normal
    153. Configured Capacity: 411883184128 (383.60 GB)
    154. DFS Used: 120316370944 (112.05 GB)
    155. Non DFS Used: 135664951296 (126.35 GB)
    156. DFS Remaining: 134410301440 (125.18 GB)
    157. DFS Used%: 29.21%
    158. DFS Remaining%: 32.63%
    159. Configured Cache Capacity: 4294967296 (4 GB)
    160. Cache Used: 0 (0 B)
    161. Cache Remaining: 4294967296 (4 GB)
    162. Cache Used%: 0.00%
    163. Cache Remaining%: 100.00%
    164. Xceivers: 2
    165. Last contact: Mon Jun 27 13:50:41 CST 2022
    166. Last Block Report: Mon Jun 27 10:26:38 CST 2022
    167. Name: 9.134.123.215:1004 (node21.data.com)
    168. Hostname: node21.data.com
    169. Rack: /default
    170. Decommission Status : Normal
    171. Configured Capacity: 411883184128 (383.60 GB)
    172. DFS Used: 123294625792 (114.83 GB)
    173. Non DFS Used: 49384546304 (45.99 GB)
    174. DFS Remaining: 217712451584 (202.76 GB)
    175. DFS Used%: 29.93%
    176. DFS Remaining%: 52.86%
    177. Configured Cache Capacity: 4294967296 (4 GB)
    178. Cache Used: 0 (0 B)
    179. Cache Remaining: 4294967296 (4 GB)
    180. Cache Used%: 0.00%
    181. Cache Remaining%: 100.00%
    182. Xceivers: 2
    183. Last contact: Mon Jun 27 13:50:43 CST 2022
    184. Last Block Report: Mon Jun 27 11:11:12 CST 2022
    185. Name: 9.134.123.37:1004 (node18.data.com)
    186. Hostname: node18.data.com
    187. Rack: /default
    188. Decommission Status : Normal
    189. Configured Capacity: 411883184128 (383.60 GB)
    190. DFS Used: 132322639872 (123.24 GB)
    191. Non DFS Used: 19139104768 (17.82 GB)
    192. DFS Remaining: 238929879040 (222.52 GB)
    193. DFS Used%: 32.13%
    194. DFS Remaining%: 58.01%
    195. Configured Cache Capacity: 4294967296 (4 GB)
    196. Cache Used: 0 (0 B)
    197. Cache Remaining: 4294967296 (4 GB)
    198. Cache Used%: 0.00%
    199. Cache Remaining%: 100.00%
    200. Xceivers: 2
    201. Last contact: Mon Jun 27 13:50:41 CST 2022
    202. Last Block Report: Mon Jun 27 10:27:47 CST 2022
    203. Name: 9.134.124.14:1004 (node15.data.com)
    204. Hostname: node15.data.com
    205. Rack: /default
    206. Decommission Status : Normal
    207. Configured Capacity: 411883184128 (383.60 GB)
    208. DFS Used: 134688702464 (125.44 GB)
    209. Non DFS Used: 146982957056 (136.89 GB)
    210. DFS Remaining: 108719964160 (101.25 GB)
    211. DFS Used%: 32.70%
    212. DFS Remaining%: 26.40%
    213. Configured Cache Capacity: 4294967296 (4 GB)
    214. Cache Used: 0 (0 B)
    215. Cache Remaining: 4294967296 (4 GB)
    216. Cache Used%: 0.00%
    217. Cache Remaining%: 100.00%
    218. Xceivers: 2
    219. Last contact: Mon Jun 27 13:50:42 CST 2022
    220. Last Block Report: Mon Jun 27 09:44:21 CST 2022
    221. Name: 9.134.124.36:1004 (node20.data.com)
    222. Hostname: node20.data.com
    223. Rack: /default
    224. Decommission Status : Normal
    225. Configured Capacity: 411883184128 (383.60 GB)
    226. DFS Used: 100490969088 (93.59 GB)
    227. Non DFS Used: 74869800960 (69.73 GB)
    228. DFS Remaining: 215030853632 (200.26 GB)
    229. DFS Used%: 24.40%
    230. DFS Remaining%: 52.21%
    231. Configured Cache Capacity: 4294967296 (4 GB)
    232. Cache Used: 0 (0 B)
    233. Cache Remaining: 4294967296 (4 GB)
    234. Cache Used%: 0.00%
    235. Cache Remaining%: 100.00%
    236. Xceivers: 2
    237. Last contact: Mon Jun 27 13:50:41 CST 2022
    238. Last Block Report: Mon Jun 27 08:49:47 CST 2022
    239. Name: 9.134.163.174:1004 (node26.data.com)
    240. Hostname: node26.data.com
    241. Rack: /default
    242. Decommission Status : Normal
    243. Configured Capacity: 517572132864 (482.03 GB)
    244. DFS Used: 149608824832 (139.33 GB)
    245. Non DFS Used: 113226809344 (105.45 GB)
    246. DFS Remaining: 227876229120 (212.23 GB)
    247. DFS Used%: 28.91%
    248. DFS Remaining%: 44.03%
    249. Configured Cache Capacity: 4294967296 (4 GB)
    250. Cache Used: 0 (0 B)
    251. Cache Remaining: 4294967296 (4 GB)
    252. Cache Used%: 0.00%
    253. Cache Remaining%: 100.00%
    254. Xceivers: 2
    255. Last contact: Mon Jun 27 13:50:40 CST 2022
    256. Last Block Report: Mon Jun 27 13:34:49 CST 2022
    257. Name: 9.134.163.238:1004 (node24.data.com)
    258. Hostname: node24.data.com
    259. Rack: /default
    260. Decommission Status : Normal
    261. Configured Capacity: 517572132864 (482.03 GB)
    262. DFS Used: 149926281216 (139.63 GB)
    263. Non DFS Used: 177427165184 (165.24 GB)
    264. DFS Remaining: 163358416896 (152.14 GB)
    265. DFS Used%: 28.97%
    266. DFS Remaining%: 31.56%
    267. Configured Cache Capacity: 4294967296 (4 GB)
    268. Cache Used: 0 (0 B)
    269. Cache Remaining: 4294967296 (4 GB)
    270. Cache Used%: 0.00%
    271. Cache Remaining%: 100.00%
    272. Xceivers: 2
    273. Last contact: Mon Jun 27 13:50:41 CST 2022
    274. Last Block Report: Mon Jun 27 11:00:49 CST 2022
    275. Name: 9.134.163.60:1004 (node25.data.com)
    276. Hostname: node25.data.com
    277. Rack: /default
    278. Decommission Status : Normal
    279. Configured Capacity: 517572132864 (482.03 GB)
    280. DFS Used: 148323336192 (138.14 GB)
    281. Non DFS Used: 139817668608 (130.22 GB)
    282. DFS Remaining: 202570858496 (188.66 GB)
    283. DFS Used%: 28.66%
    284. DFS Remaining%: 39.14%
    285. Configured Cache Capacity: 4294967296 (4 GB)
    286. Cache Used: 0 (0 B)
    287. Cache Remaining: 4294967296 (4 GB)
    288. Cache Used%: 0.00%
    289. Cache Remaining%: 100.00%
    290. Xceivers: 2
    291. Last contact: Mon Jun 27 13:50:42 CST 2022
    292. Last Block Report: Mon Jun 27 12:50:30 CST 2022
    293. Name: 9.134.68.200:1004 (node11.data.com)
    294. Hostname: node11.data.com
    295. Rack: /default
    296. Decommission Status : Normal
    297. Configured Capacity: 411883184128 (383.60 GB)
    298. DFS Used: 132859736064 (123.74 GB)
    299. Non DFS Used: 53714735104 (50.03 GB)
    300. DFS Remaining: 203817152512 (189.82 GB)
    301. DFS Used%: 32.26%
    302. DFS Remaining%: 49.48%
    303. Configured Cache Capacity: 4294967296 (4 GB)
    304. Cache Used: 0 (0 B)
    305. Cache Remaining: 4294967296 (4 GB)
    306. Cache Used%: 0.00%
    307. Cache Remaining%: 100.00%
    308. Xceivers: 2
    309. Last contact: Mon Jun 27 13:50:41 CST 2022
    310. Last Block Report: Mon Jun 27 09:35:01 CST 2022
    311. Name: 9.134.71.192:1004 (node05.data.com)
    312. Hostname: node05.data.com
    313. Rack: /default
    314. Decommission Status : Normal
    315. Configured Capacity: 411883184128 (383.60 GB)
    316. DFS Used: 123511422976 (115.03 GB)
    317. Non DFS Used: 50063003648 (46.62 GB)
    318. DFS Remaining: 216817197056 (201.93 GB)
    319. DFS Used%: 29.99%
    320. DFS Remaining%: 52.64%
    321. Configured Cache Capacity: 4294967296 (4 GB)
    322. Cache Used: 0 (0 B)
    323. Cache Remaining: 4294967296 (4 GB)
    324. Cache Used%: 0.00%
    325. Cache Remaining%: 100.00%
    326. Xceivers: 2
    327. Last contact: Mon Jun 27 13:50:42 CST 2022
    328. Last Block Report: Mon Jun 27 09:38:05 CST 2022
    329. Name: 9.134.77.69:1004 (node07.data.com)
    330. Hostname: node07.data.com
    331. Rack: /default
    332. Decommission Status : Normal
    333. Configured Capacity: 411883184128 (383.60 GB)
    334. DFS Used: 131336716288 (122.32 GB)
    335. Non DFS Used: 94864969728 (88.35 GB)
    336. DFS Remaining: 164189937664 (152.91 GB)
    337. DFS Used%: 31.89%
    338. DFS Remaining%: 39.86%
    339. Configured Cache Capacity: 4294967296 (4 GB)
    340. Cache Used: 0 (0 B)
    341. Cache Remaining: 4294967296 (4 GB)
    342. Cache Used%: 0.00%
    343. Cache Remaining%: 100.00%
    344. Xceivers: 2
    345. Last contact: Mon Jun 27 13:50:40 CST 2022
    346. Last Block Report: Mon Jun 27 11:48:10 CST 2022
    347. Name: 9.134.80.60:1004 (node27.data.com)
    348. Hostname: node27.data.com
    349. Rack: /default
    350. Decommission Status : Normal
    351. Configured Capacity: 517572132864 (482.03 GB)
    352. DFS Used: 125220708352 (116.62 GB)
    353. Non DFS Used: 154762784768 (144.13 GB)
    354. DFS Remaining: 210728370176 (196.26 GB)
    355. DFS Used%: 24.19%
    356. DFS Remaining%: 40.71%
    357. Configured Cache Capacity: 4294967296 (4 GB)
    358. Cache Used: 0 (0 B)
    359. Cache Remaining: 4294967296 (4 GB)
    360. Cache Used%: 0.00%
    361. Cache Remaining%: 100.00%
    362. Xceivers: 2
    363. Last contact: Mon Jun 27 13:50:41 CST 2022
    364. Last Block Report: Mon Jun 27 08:58:05 CST 2022
    365. Name: 9.134.80.64:1004 (node29.data.com)
    366. Hostname: node29.data.com
    367. Rack: /default
    368. Decommission Status : Normal
    369. Configured Capacity: 517572132864 (482.03 GB)
    370. DFS Used: 134744162304 (125.49 GB)
    371. Non DFS Used: 154976854016 (144.33 GB)
    372. DFS Remaining: 200990846976 (187.19 GB)
    373. DFS Used%: 26.03%
    374. DFS Remaining%: 38.83%
    375. Configured Cache Capacity: 4294967296 (4 GB)
    376. Cache Used: 0 (0 B)
    377. Cache Remaining: 4294967296 (4 GB)
    378. Cache Used%: 0.00%
    379. Cache Remaining%: 100.00%
    380. Xceivers: 2
    381. Last contact: Mon Jun 27 13:50:41 CST 2022
    382. Last Block Report: Mon Jun 27 11:06:53 CST 2022
    383. Name: 9.134.81.127:1004 (node31.data.com)
    384. Hostname: node31.data.com
    385. Rack: /default
    386. Decommission Status : Normal
    387. Configured Capacity: 517572132864 (482.03 GB)
    388. DFS Used: 131076886528 (122.07 GB)
    389. Non DFS Used: 151701401600 (141.28 GB)
    390. DFS Remaining: 207812038245 (193.54 GB)
    391. DFS Used%: 25.33%
    392. DFS Remaining%: 40.15%
    393. Configured Cache Capacity: 4294967296 (4 GB)
    394. Cache Used: 0 (0 B)
    395. Cache Remaining: 4294967296 (4 GB)
    396. Cache Used%: 0.00%
    397. Cache Remaining%: 100.00%
    398. Xceivers: 4
    399. Last contact: Mon Jun 27 13:50:41 CST 2022
    400. Last Block Report: Mon Jun 27 08:35:59 CST 2022
    401. Name: 9.134.81.221:1004 (node30.data.com)
    402. Hostname: node30.data.com
    403. Rack: /default
    404. Decommission Status : Normal
    405. Configured Capacity: 517572132864 (482.03 GB)
    406. DFS Used: 126044688384 (117.39 GB)
    407. Non DFS Used: 141402562560 (131.69 GB)
    408. DFS Remaining: 223264612352 (207.93 GB)
    409. DFS Used%: 24.35%
    410. DFS Remaining%: 43.14%
    411. Configured Cache Capacity: 4294967296 (4 GB)
    412. Cache Used: 0 (0 B)
    413. Cache Remaining: 4294967296 (4 GB)
    414. Cache Used%: 0.00%
    415. Cache Remaining%: 100.00%
    416. Xceivers: 2
    417. Last contact: Mon Jun 27 13:50:41 CST 2022
    418. Last Block Report: Mon Jun 27 10:09:56 CST 2022
    419. Name: 9.134.83.33:1004 (node28.data.com)
    420. Hostname: node28.data.com
    421. Rack: /default
    422. Decommission Status : Normal
    423. Configured Capacity: 517572132864 (482.03 GB)
    424. DFS Used: 133375627264 (124.22 GB)
    425. Non DFS Used: 152426917888 (141.96 GB)
    426. DFS Remaining: 204909318144 (190.84 GB)
    427. DFS Used%: 25.77%
    428. DFS Remaining%: 39.59%
    429. Configured Cache Capacity: 4294967296 (4 GB)
    430. Cache Used: 0 (0 B)
    431. Cache Remaining: 4294967296 (4 GB)
    432. Cache Used%: 0.00%
    433. Cache Remaining%: 100.00%
    434. Xceivers: 2
    435. Last contact: Mon Jun 27 13:50:43 CST 2022
    436. Last Block Report: Mon Jun 27 08:24:57 CST 2022
    437. Dead datanodes (2):
    438. Name: 9.134.74.52:1004 (node06.data.com)
    439. Hostname: node06.data.com
    440. Decommission Status : Decommissioned
    441. Configured Capacity: 0 (0 B)
    442. DFS Used: 0 (0 B)
    443. Non DFS Used: 0 (0 B)
    444. DFS Remaining: 0 (0 B)
    445. DFS Used%: 100.00%
    446. DFS Remaining%: 0.00%
    447. Configured Cache Capacity: 0 (0 B)
    448. Cache Used: 0 (0 B)
    449. Cache Remaining: 0 (0 B)
    450. Cache Used%: 100.00%
    451. Cache Remaining%: 0.00%
    452. Xceivers: 0
    453. Last contact: Thu Jan 01 08:00:00 CST 1970
    454. Last Block Report: Never
    455. Name: 9.134.70.49:1004 (node04.data.com)
    456. Hostname: node04.data.com
    457. Decommission Status : Decommissioned
    458. Configured Capacity: 0 (0 B)
    459. DFS Used: 0 (0 B)
    460. Non DFS Used: 0 (0 B)
    461. DFS Remaining: 0 (0 B)
    462. DFS Used%: 100.00%
    463. DFS Remaining%: 0.00%
    464. Configured Cache Capacity: 0 (0 B)
    465. Cache Used: 0 (0 B)
    466. Cache Remaining: 0 (0 B)
    467. Cache Used%: 100.00%
    468. Cache Remaining%: 0.00%
    469. Xceivers: 0
    470. Last contact: Thu Jan 01 08:00:00 CST 1970
    471. Last Block Report: Never
    472. [root@worker01 /home/devuser]# df -h
    473. 文件系统 容量 已用 可用 已用% 挂载点
    474. /dev/vda1 99G 56G 39G 59% /
    475. devtmpfs 7.7G 0 7.7G 0% /dev
    476. tmpfs 7.8G 0 7.8G 0% /dev/shm
    477. tmpfs 7.8G 266M 7.5G 4% /run
    478. tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
    479. /dev/vdb1 394G 161G 214G 43% /data
    480. cm_processes 7.8G 66M 7.7G 1% /run/cloudera-scm-agent/process
    481. tmpfs 1.6G 0 1.6G 0% /run/user/1000
    482. 9.135.223.197:/ 15T 12T 2.5T 83% /data/share/files/cfs
    483. tmpfs 1.6G 0 1.6G 0% /run/user/0
    484. [root@worker01 /home/devuser]# df -h /data
    485. 文件系统 容量 已用 可用 已用% 挂载点
    486. /dev/vdb1 394G 161G 214G 43% /data
    487. [root@worker01 /home/devuser]#

  • 相关阅读:
    uniapp中用canvas实现小球碰撞的小动画
    传统社区如何进行数字化转型?快鲸智慧社区解决方案为你支招
    《安富莱嵌入式周报》第290期:开源静电便携测试仪,开源音频功放,CAN高波特率设计,超级铁电产品,小米Vela系统,65W USB PD充电器参考设计
    厨神之蛋糕制作
    算法训练营day17
    【蓝桥杯2025备赛】素数判断:从O(n^2)到O(n)学习之路
    【Iceberg+Alluxio】助力加速数据通道(下篇)
    WinForm,可能是Windows上手最快的图形框架了
    交换机/防火墙-基础配置-23.10.11
    (计算机组成原理)第五章中央处理器-第七节1:多处理器的基本概念
  • 原文地址:https://blog.csdn.net/cclovezbf/article/details/125479880