Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Hadoop highly available cluster hdfs command

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Hdfs haadmin View help Command

Hdfs haadmin View help Command [hadoop@ruozedata001 ~] $hdfs haadminUsage: DFSHAAdmin [- ns] [- transitionToActive [--forceactive]] [- transitionToStandby] [- failover [--forcefence] [--forceactive]] [- getServiceState] [- checkHealth] [- help]

Hdfs haadmin-getServiceState nn1 nn2

Note: where nn1 and nn2 are server id of namenode, not machine name

Find service id in hdfs.xml, and the configuration file is as follows

Dfs.nameservices cluster dfs.ha.namenodes.cluster nn1,nn2

Hdfs failover

Hdfs fsck command to do hdfs cluster health check, when files are corrupted

Hdfs fsck / check the cluster data from the root directory

Hdfs fsck /-delete deletes corrupted data files on hdfs

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report