ALM-14011 HDFS DataNode Data Directory Is Not Configured Properly (For MRS 2.x or Earlier)
Description
The DataNode parameter dfs.datanode.data.dir specifies the DataNode data directory. This alarm is generated in any of the following scenarios:
- A configured data directory cannot be created.
- A data directory uses the same disk as other critical directories in the system.
- Multiple directories use the same disk.
This alarm is cleared when the DataNode data directory is configured properly and this DataNode is restarted.
Attribute
Alarm ID |
Alarm Severity |
Auto Clear |
---|---|---|
14011 |
Major |
Yes |
Parameters
Parameter |
Description |
---|---|
ServiceName |
Specifies the service for which the alarm is generated. |
RoleName |
Specifies the role for which the alarm is generated. |
HostName |
Specifies the host for which the alarm is generated. |
Impact on the System
If the DataNode data directory is mounted on critical directories such as the root directory, the disk space of the root directory will be used up after running for a long time. This causes a system fault.
If the DataNode data directory is not configured properly, HDFS performance will deteriorate.
Possible Causes
- The DataNode data directory fails to be created.
- The DataNode data directory uses the same disk as critical directories, such as / or /boot.
- Multiple directories in the DataNode data directory use the same disk.
Procedure
- Check the alarm cause and information about the DataNode for which the alarm is generated.
- On the MRS cluster details page, click Alarms. In the alarm list, click the alarm.
- In the Alarm Details area, view Alarm Cause to obtain the cause of the alarm. In HostName of Location, obtain the host name of the DataNode for which the alarm is generated.
- Delete directories that do not comply with the disk plan from the DataNode data directory.
- Choose Components > HDFS > Instances. In the instance list, click the DataNode instance on the node for which the alarm is generated.
- Click Instance Configuration and view the value of the DataNode parameter dfs.datanode.data.dir.
- Check whether all DataNode data directories are consistent with the disk plan.
- Modify the DataNode parameter dfs.datanode.data.dir and delete the incorrect directories.
- Choose Components > HDFS > Instances to restart the DataNode instance.
- Check whether the alarm is cleared.
- If yes, no further action is required.
- If no, go to 2.g.
- Log in to the DataNode for which the alarm is generated.
- If the alarm cause is "The DataNode data directory fails to be created", go to 3.a.
- If the alarm cause is "The DataNode data directory uses the same disk as critical directories, such / or /boot", go to 4.a.
- If the alarm cause is "Multiple directories in the DataNode data directory use the same disk", go to 5.a.
- Check whether the DataNode data directory fails to be created.
- Run the following commands to switch the user:
su - omm
- Run the ls command to check whether the directories exist in the DataNode data directory.
- Run the mkdir data directory command to create a directory and check whether the directory is successfully created.
- Click Alarms to check whether alarm ALM-12017 Insufficient Disk Capacity exists.
- Adjust the disk capacity and check whether alarm ALM-12017 Insufficient Disk Capacity is cleared. For details, see ALM-12017 Insufficient Disk Capacity (For MRS 2.x or Earlier).
- If yes, go to ALM-12017 Insufficient Disk Capacity (For MRS 2.x or Earlier).
- If no, go to 7.
- Check whether user omm has the rwx or x permission of all the upper-layer directories of the directory. (For example, for /tmp/abc/, user omm has the x permission for directory tmp and the rwx permission for directory abc.)
- Run the chmod u+rwx path or chmod u+x path command as the root user to add the rwx or x permission to the paths. Then, go to 3.c.
- Run the following commands to switch the user:
- Check whether the DataNode data directory uses the same disk as other critical directories in the system.
- Run the df command to obtain the disk mounting information of each directory in the DataNode data directory.
- Check whether the directories mounted to the disk are critical directories, such as / or /boot.
- Change the value of the DataNode parameter dfs.datanode.data.dir and delete the directories that use the same disk as critical directories.
- Go to 6.a.
- Check whether multiple directories in the DataNode data directory use the same disk.
- Run the df command to obtain the disk mounting information of each directory in the DataNode data directory. Record the mounted directory in the command output.
- Modify the DataNode node parameter dfs.datanode.data.dir to reserve one of the directories mounted on the same disk directory.
- Go to 6.a.
- Restart the DataNode and check whether the alarm is cleared.
- Choose Components > HDFS > Instances to restart the DataNode instance.
- Check whether the alarm is cleared.
- If yes, no further action is required.
- If no, go to 7.
- Collect fault information.
- On MRS Manager, choose .
- Contact the O&M engineers and send the collected logs.
Reference
None
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot