hdfs diskbalancer -plan cdh192-22
plan.json
[hadoop@cdh192-22 ~]$ hdfs dfs -cat /system/diskbalancer/2022-Nov-17-10-21-45/cdh192-22.plan.json
{"volumeSetPlans":[{"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep","sourceVolume":{"path":"/dfs/data10/","capacity":999716507648,"storageType":"DISK","used":518103326696,"reserved":0,"uuid":"DS-4ea78bac-85e4-4d7a-92f6-72d02502e30f","failed":false,"volumeDataDensity":-0.0534,"skip":false,"transient":false,"readOnly":false},"destinationVolume":{"path":"/dfs/data7/","capacity":2399304445952,"storageType":"DISK","used":1115196706478,"reserved":0,"uuid":"DS-40172040-5a50-4f68-8201-208237f26d11","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"idealStorage":0.4648,"bytesToMove":338470576696,"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"},{"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep","sourceVolume":{"path":"/dfs/data11/","capacity":999716507648,"storageType":"DISK","used":464668232754,"reserved":0,"uuid":"DS-90f7fe25-1933-4167-8c14-2a9e2a143d0f","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"destinationVolume":{"path":"/dfs/data4/","capacity":2399304445952,"storageType":"DISK","used":1115196706478,"reserved":0,"uuid":"DS-b0cd02a7-2bf7-4457-abe9-14edd486d28e","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"idealStorage":0.4648,"bytesToMove":259615596345,"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"},{"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep","sourceVolume":{"path":"/dfs/data8/","capacity":999716507648,"storageType":"DISK","used":464668232754,"reserved":0,"uuid":"DS-176d5992-75bd-4767-9366-93df8a0fd159","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"destinationVolume":{"path":"/dfs/data3/","capacity":2399304445952,"storageType":"DISK","used":1115196706478,"reserved":0,"uuid":"DS-35e8ab71-a899-4ef7-be3f-d9c1f1c1561b","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"idealStorage":0.4648,"bytesToMove":243296795330,"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"},{"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep","sourceVolume":{"path":"/dfs/data9/","capacity":999716507648,"storageType":"DISK","used":464668232754,"reserved":0,"uuid":"DS-8b22a280-09ff-4f41-ae0a-55eaa62d300e","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"destinationVolume":{"path":"/dfs/data6/","capacity":2399304445952,"storageType":"DISK","used":1115196706478,"reserved":0,"uuid":"DS-5179da53-7b07-465e-b07e-b4a8795c85ce","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"idealStorage":0.4648,"bytesToMove":190630379536,"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"},{"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep","sourceVolume":{"path":"/dfs/data9/","capacity":999716507648,"storageType":"DISK","used":464668232754,"reserved":0,"uuid":"DS-8b22a280-09ff-4f41-ae0a-55eaa62d300e","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"destinationVolume":{"path":"/dfs/data2/","capacity":2399304445952,"storageType":"DISK","used":1107097449681,"reserved":0,"uuid":"DS-ad4ad5f7-4bc5-4cfd-80cb-cff8c6b837ca","failed":false,"volumeDataDensity":0.003400000000000014,"skip":false,"transient":false,"readOnly":false},"idealStorage":0.4648,"bytesToMove":181871783815,"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"},{"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep","sourceVolume":{"path":"/dfs/data8/","capacity":999716507648,"storageType":"DISK","used":464668232754,"reserved":0,"uuid":"DS-176d5992-75bd-4767-9366-93df8a0fd159","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"destinationVolume":{"path":"/dfs/data5/","capacity":2399304445952,"storageType":"DISK","used":1115196706478,"reserved":0,"uuid":"DS-183b713c-f95d-45f5-8f1e-530ea8a15ec1","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"idealStorage":0.4648,"bytesToMove":141152455299,"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"},{"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep","sourceVolume":{"path":"/dfs/data11/","capacity":999716507648,"storageType":"DISK","used":464668232754,"reserved":0,"uuid":"DS-90f7fe25-1933-4167-8c14-2a9e2a143d0f","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"destinationVolume":{"path":"/dfs/data1/","capacity":2399304445952,"storageType":"DISK","used":1070758333399,"reserved":0,"uuid":"DS-ccc089fe-bb80-40d5-983e-fe678e7607b3","failed":false,"volumeDataDensity":0.018600000000000005,"skip":false,"transient":false,"readOnly":false},"idealStorage":0.4648,"bytesToMove":140740287938,"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"},{"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep","sourceVolume":{"path":"/dfs/data10/","capacity":999716507648,"storageType":"DISK","used":518103326696,"reserved":0,"uuid":"DS-4ea78bac-85e4-4d7a-92f6-72d02502e30f","failed":false,"volumeDataDensity":-0.0534,"skip":false,"transient":false,"readOnly":false},"destinationVolume":{"path":"/dfs/data5/","capacity":2399304445952,"storageType":"DISK","used":1115196706478,"reserved":0,"uuid":"DS-183b713c-f95d-45f5-8f1e-530ea8a15ec1","failed":false,"volumeDataDensity":9.999999999998899E-5,"skip":false,"transient":false,"readOnly":false},"idealStorage":0.4648,"bytesToMove":47840136002,"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"}],"nodeName":"cdh192-22","nodeUUID":"13584e04-9fdd-468b-96da-59e6be03259b","port":9867,"timeStamp":1668651705345}
json格式化后
{
"volumeSetPlans":[
{
"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep",
"sourceVolume":{
"path":"/dfs/data10/",
"capacity":999716507648,
"storageType":"DISK",
"used":518103326696,
"reserved":0,
"uuid":"DS-4ea78bac-85e4-4d7a-92f6-72d02502e30f",
"failed":false,
"volumeDataDensity":-0.0534,
"skip":false,
"transient":false,
"readOnly":false
},
"destinationVolume":{
"path":"/dfs/data7/",
"capacity":2399304445952,
"storageType":"DISK",
"used":1115196706478,
"reserved":0,
"uuid":"DS-40172040-5a50-4f68-8201-208237f26d11",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"idealStorage":0.4648,
"bytesToMove":338470576696,
"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"
},
{
"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep",
"sourceVolume":{
"path":"/dfs/data11/",
"capacity":999716507648,
"storageType":"DISK",
"used":464668232754,
"reserved":0,
"uuid":"DS-90f7fe25-1933-4167-8c14-2a9e2a143d0f",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"destinationVolume":{
"path":"/dfs/data4/",
"capacity":2399304445952,
"storageType":"DISK",
"used":1115196706478,
"reserved":0,
"uuid":"DS-b0cd02a7-2bf7-4457-abe9-14edd486d28e",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"idealStorage":0.4648,
"bytesToMove":259615596345,
"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"
},
{
"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep",
"sourceVolume":{
"path":"/dfs/data8/",
"capacity":999716507648,
"storageType":"DISK",
"used":464668232754,
"reserved":0,
"uuid":"DS-176d5992-75bd-4767-9366-93df8a0fd159",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"destinationVolume":{
"path":"/dfs/data3/",
"capacity":2399304445952,
"storageType":"DISK",
"used":1115196706478,
"reserved":0,
"uuid":"DS-35e8ab71-a899-4ef7-be3f-d9c1f1c1561b",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"idealStorage":0.4648,
"bytesToMove":243296795330,
"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"
},
{
"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep",
"sourceVolume":{
"path":"/dfs/data9/",
"capacity":999716507648,
"storageType":"DISK",
"used":464668232754,
"reserved":0,
"uuid":"DS-8b22a280-09ff-4f41-ae0a-55eaa62d300e",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"destinationVolume":{
"path":"/dfs/data6/",
"capacity":2399304445952,
"storageType":"DISK",
"used":1115196706478,
"reserved":0,
"uuid":"DS-5179da53-7b07-465e-b07e-b4a8795c85ce",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"idealStorage":0.4648,
"bytesToMove":190630379536,
"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"
},
{
"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep",
"sourceVolume":{
"path":"/dfs/data9/",
"capacity":999716507648,
"storageType":"DISK",
"used":464668232754,
"reserved":0,
"uuid":"DS-8b22a280-09ff-4f41-ae0a-55eaa62d300e",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"destinationVolume":{
"path":"/dfs/data2/",
"capacity":2399304445952,
"storageType":"DISK",
"used":1107097449681,
"reserved":0,
"uuid":"DS-ad4ad5f7-4bc5-4cfd-80cb-cff8c6b837ca",
"failed":false,
"volumeDataDensity":0.003400000000000014,
"skip":false,
"transient":false,
"readOnly":false
},
"idealStorage":0.4648,
"bytesToMove":181871783815,
"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"
},
{
"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep",
"sourceVolume":{
"path":"/dfs/data8/",
"capacity":999716507648,
"storageType":"DISK",
"used":464668232754,
"reserved":0,
"uuid":"DS-176d5992-75bd-4767-9366-93df8a0fd159",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"destinationVolume":{
"path":"/dfs/data5/",
"capacity":2399304445952,
"storageType":"DISK",
"used":1115196706478,
"reserved":0,
"uuid":"DS-183b713c-f95d-45f5-8f1e-530ea8a15ec1",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"idealStorage":0.4648,
"bytesToMove":141152455299,
"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"
},
{
"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep",
"sourceVolume":{
"path":"/dfs/data11/",
"capacity":999716507648,
"storageType":"DISK",
"used":464668232754,
"reserved":0,
"uuid":"DS-90f7fe25-1933-4167-8c14-2a9e2a143d0f",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"destinationVolume":{
"path":"/dfs/data1/",
"capacity":2399304445952,
"storageType":"DISK",
"used":1070758333399,
"reserved":0,
"uuid":"DS-ccc089fe-bb80-40d5-983e-fe678e7607b3",
"failed":false,
"volumeDataDensity":0.018600000000000005,
"skip":false,
"transient":false,
"readOnly":false
},
"idealStorage":0.4648,
"bytesToMove":140740287938,
"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"
},
{
"@class":"org.apache.hadoop.hdfs.server.diskbalancer.planner.MoveStep",
"sourceVolume":{
"path":"/dfs/data10/",
"capacity":999716507648,
"storageType":"DISK",
"used":518103326696,
"reserved":0,
"uuid":"DS-4ea78bac-85e4-4d7a-92f6-72d02502e30f",
"failed":false,
"volumeDataDensity":-0.0534,
"skip":false,
"transient":false,
"readOnly":false
},
"destinationVolume":{
"path":"/dfs/data5/",
"capacity":2399304445952,
"storageType":"DISK",
"used":1115196706478,
"reserved":0,
"uuid":"DS-183b713c-f95d-45f5-8f1e-530ea8a15ec1",
"failed":false,
"volumeDataDensity":0.00009999999999998899,
"skip":false,
"transient":false,
"readOnly":false
},
"idealStorage":0.4648,
"bytesToMove":47840136002,
"volumeSetID":"9bbee851-9964-4d91-8a61-41ae86901e37"
}
],
"nodeName":"cdh192-22",
"nodeUUID":"13584e04-9fdd-468b-96da-59e6be03259b",
"port":9867,
"timeStamp":1668651705345
}
标签:false,skip,Hadoop,dfs,failed,readOnly,path,磁盘,节点
From: https://www.cnblogs.com/30go/p/16898570.html