How can we exclude some data nodes only from one namespace in hdfs federation?

253 views Asked by At

I was checking the hadoop federation. Here the data nodes are common, only namespace will be different. How can we exclude some datanodes only from one namespace.

2

There are 2 answers

2
Vin On

In decommissioning the nodes that need to be decommissioned are added to the exclude file at all of the Namenodes. Each Namenode decommissions its Block Pool. When all the Namenodes finish decommissioning a Datanode, the Datanode is considered decommissioned.

For more details, you can have a look at: https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/Federation.html#Decommissioning

0
yongtao liao On

You can just decommissioning a DataNode from one of the Namespace.