Hadoop: you need to delete one data directory from all data nodes

I need to return disk space from all my hadop HDFS datanodes. Each of them is configured as follows:

<property>
    <name>dfs.data.dir</name>
    <value>/d01,/d02,/d03</value>
</property>

How can I safely remove the / d 03 file system from all nodes and rebalance them? I experimented with decommissioning a node, deleting a directory and re-commissioning, but it is very slow and I wonder if there is a better way?

+4
source share
1 answer

, , HDFS. - , . datanode , .

NameNode WebUI " ", , .

.

:

,

  • , : http://<name-node>:50070,

  • ,

  • 2, , . .

+5

All Articles