ALM-14036 NameNode Is In Safe Mode
Alarm Description
The system checks the NameNode process status every 30 seconds. This alarm is generated when the NameNode is in the safe mode.
This alarm is cleared when the process status recovers.
This alarm applies only to MRS 3.3.1 or later.
Alarm Attributes
Alarm ID |
Alarm Severity |
Auto Cleared |
---|---|---|
14036 |
Major |
Yes |
Alarm Parameters
Type |
Parameter |
Description |
---|---|---|
Location Information |
Source |
Specifies the cluster for which the alarm was generated. |
ServiceName |
Specifies the service for which the alarm was generated. |
|
RoleName |
Specifies the role for which the alarm was generated. |
|
HostName |
Specifies the host for which the alarm was generated. |
|
Additional Information |
Trigger Condition |
Specifies the alarm triggering condition. |
Impact on the System
After a NameNode enters the safe mode, data cannot be written to the NameNode.
Possible Causes
Block loss occurs when a user manually enters the safe mode or restarts the NameNode.
Handling Procedure
Check whether NameNode is in the security mode.
- Log in to FusionInsight Manager, click O&M, and choose Alarm > Alarms to view the alarm details. In the Location column, check the name of the host for which the alarm is generated.
- Choose Cluster > Services > HDFS, and click NameNode(host name recorded in 1,x) next to NameNode Web UI.
By default, the admin user does not have the permissions to manage other components. If the page cannot be opened or the displayed content is incomplete when you access the native UI of a component due to insufficient permissions, you can manually create a user with the permissions to manage that component.
- In the Basic Information area on the Dashboard page of HDFS (or in the NameService Summary area on the Dashboard page of HDFS), check whether the value of Safe Mode is ON.
ON indicates that the safe mode is enabled.
- Log in to the HDFS client.
- Log in to the node where the HDFS client is installed.
- If Kerberos authentication is enabled for the cluster (the cluster is in security mode), log in as the root user.
- If Kerberos authentication is disabled for the cluster (the cluster is in normal mode), log in as user omm and ensure that user omm has the execute permission on the client.
(Note that you need to decide with cluster security/normal mode, not the HDFS safe/common mode.)
- Run the following commands to go to the client installation directory and configure environment variables:
cd HDFS client installation directory
source bigdata_env
- If Kerberos authentication is enabled for the cluster (the cluster is in security mode), run the following command to authenticate the user. If Kerberos authentication is disabled for the cluster (the cluster is in normal mode), skip this step.
kinit hdfs
Enter the password as prompted. You can obtain the password from the MRS cluster administrator. Change the password upon the first authentication.
- Run the following command to exit from the safe mode:
- Log in to the node where the HDFS client is installed.
- Wait 5 minutes and check whether the alarm is cleared.
- In the Basic Information area on the Dashboard page of HDFS (or in the NameService Summary area on the Dashboard page of HDFS), check whether the value of Missing Blocks is 0.
- If yes, no further action is required.
- If no, check whether "ALM-14003 Number of Lost HDFS Blocks Exceeds the Threshold" is reported and rectify the fault according to the alarm help.
Collect fault information.
- On FusionInsight Manager, choose O&M. In the navigation pane on the left, choose Log > Download.
- Expand the drop-down list next to the Service field. In the Services dialog box that is displayed, select HDFS for the target cluster.
- Click the edit icon in the upper right corner, and set Start Date and End Date for log collection to 10 minutes ahead of and after the alarm generation time, respectively. Then, click Download.
- Contact O&M engineers and provide the collected logs.
Alarm Clearance
This alarm is automatically cleared after the fault is rectified.
Related Information
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