Help Center/ MapReduce Service/ Troubleshooting/ Using HDFS/ A Large Number of Blocks Are Lost in HDFS due to the Time Change Using ntpdate
Updated on 2025-12-01 GMT+08:00
A Large Number of Blocks Are Lost in HDFS due to the Time Change Using ntpdate
Symptom
- A user uses ntpdate to change the time for a cluster that is not stopped. After the time is changed, HDFS enters the safe mode and cannot be started.
- After HDFS exits the safe mode and starts, about 1 TB data is lost during the hfck check.
Cause Analysis
- A large number of blocks are lost on the native NameNode page. Figure 1 Block loss
- DataNode information on the native page shows that the number of displayed DataNodes is 10 less than that of actual DataNodes. Figure 2 Checking the number of DataNodes
- Check the DataNode run log file /var/log/Bigdata/hdfs/dn/hadoop-omm-datanode-hostname.log. The following error information is displayed:
Major error information: Clock skew too great
Figure 3 DataNode run log error
Procedure
- Change the time of the 10 DataNodes that cannot be viewed on the native page.
- On Manager, restart the DataNode instances.
Parent topic: Using HDFS
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.