In a stable cluster, usually all the datanodes report to all the namenodes
and mostly the information would be more or less same in all namenodes.
This isn't data which goes stale you might land up in  some mess, and
moreover these aren't user commands but Admin commands, it is pre assumed
that the admin would be having idea about the system and how it behaves,
and there are ways to get this detail from a specific Namenode, it can be
done if required, even each namenode UI gives details about the datanode
states and so.

>From the code point of view, I don't think it is a good idea to change or
something which is gonna get accepted.

-Ayush

On Thu, 10 Nov 2022 at 13:53, 尉雁磊 <[email protected]> wrote:

> hdfs dfsadmin  -printTopology Always get information from this namenode
> in the cluster,Whether the namenode is active or standby,I don't think
> this is normal, this command should always get information from the active
> namenode!
>

Reply via email to