The SafeMode of Hadoop

Source: Internet
Author: User
Tags hadoop fs

When the cluster starts, it enters security mode first. The system checks the integrity of the data block in Safe mode. Assuming that we set the number of replicas (that is, parameter dfs.replication) is 5, then there should be 5 copies on the Datanode, assuming there are only 3 copies, then the ratio is 3/5=0.6. A minimum replica rate of 0.999 is defined in profile hdfs-default.xml, so the system automatically replicates the replica to the other Datanode, striving for the minimum replica rate of >=0.999. If there are 8 replicas in the system that exceed the 5 copies we set, the system will also delete more than 3 copies.

Command Hadoop fs–safemode Get view security mode status

Command Hadoop fs–safemode enter into Safe mode state

Command Hadoop fs–safemode leave leave Safe Mode state

The SafeMode of Hadoop

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.