In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.