Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ MapReduce Service/ User Guide/ MRS Cluster O&M/ MRS Cluster Alarm Handling Reference/ ALM-19036 Bad Blocks Exist in HBase Key Directory Data

ALM-19036 Bad Blocks Exist in HBase Key Directory Data

Updated on 2024-11-13 GMT+08:00

Alarm Description

The system checks for bad blocks in HBase key directories every 5 minutes, including the hbase.version file and the hbase:meta and master:store table directories. This alarm is generated when a bad block is detected.

This alarm is cleared when the system detects that no bad blocks exist in the HBase key directories.

This alarm applies only to MRS 3.5.0 or later.

Alarm Attributes

Alarm ID

Alarm Severity

Auto Cleared

19036

Critical

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.

Impact on the System

If block loss occurs in HBase key directories, the HBase service becomes unavailable, causing service request stacking or interruptions.

Possible Causes

HDFS is faulty.

Handling Procedure

NOTICE:

Handling bad blocks in key directory data involves operations that quickly restore the HBase service, such as stopping the HBase service. Be mindful that these operations will interrupt services. Also, be aware of any data stacking on the services.

Check whether the HDFS service is normal.

  1. Log in to FusionInsight Manager, choose Cluster > Services > HDFS, and check whether the HDFS running status is Normal.

    • If yes, go to 3.
    • If no, go to 2.

  2. Restore the HDFS running status to Normal by following the instructions provided in the alarm help, and go to 3.

Rebuild key directory data.

  1. Log in to FusionInsight Manager, choose O&M > Alarm > Alarms, check the cause of the alarm whose Alarm ID is 19036, and identify the directory with block loss.
  2. Perform the restoration operations based on the directory where block loss has occurred.

    • If Alarm Cause indicates that bad blocks exist in the hbase.version file, go to 5 to restore the hbase.version file.
    • If Alarm Cause indicates that bad blocks exist in the hbase:meta table directory, go to 6 to restore the hbase meta table directory files.
    • If Alarm Cause indicates that bad blocks exist in the master:store table directory, go to 7 to restore the master store table directory files.

  3. Restore the hbase.version file.

    1. Log in to the node where the client is installed as the client installation user.
    2. Run the following command to go to the client installation directory:

      cd Client installation directory

    3. Run the following commands to configure environment variables:

      source bigdata_env

      source HBase/component_env

    4. Kerberos authentication is enabled for the cluster (the cluster is in security mode): Run the following command to authenticate as the HBase built-in user. If this is your first-time authentication, enter the default password and change it.

      kinit hbase

      Kerberos authentication is disabled for the cluster (the cluster is in normal mode): Run the following command to set the Hadoop username:

      export HADOOP_USER_NAME=hbase

    5. Run the following command to create a backup directory that does not exist in HDFS, for example, /tmp/hbase_bak:

      hdfs dfs -mkdir /tmp/hbase_bak

    6. Run the following command to back up the old file:

      hdfs dfs -mv /hbase/hbase.version /tmp/hbase_bak

    7. Run the following command to restore the hbase.version file:

      hbase hbck -j ${HBASE_HOME}/tools/hbase-hbck2-*.jar filesystem -fixVersionFile

      • After the command is executed successfully, run the following command to view the restored hbase.version file:

        hdfs dfs -ls /hbase

      • If the command fails to be executed, go to 8.
    8. Log in to FusionInsight Manager, choose Cluster > Services > HBase > Instances, select all HMaster instances, click More, and select Instance Rolling Restart. In the dialog box that is displayed, enter the password of the current user, and click OK to perform a rolling restart of all HMaster instances.
    9. After the HMaster instances are restarted, check whether the alarm is cleared in the alarm list.
      • If yes, no further action is required.
      • If no, go to 8.

  4. Restore the hbase meta table directory files.

    1. Log in to FusionInsight Manager, choose Cluster > Services > HBase, and click Stop Service in the upper right corner of the Dashboard page. In the dialog box that is displayed, enter the password of the current user and click OK to stop the HBase service.
    2. Log in to the node where the client is installed as the client installation user.
    3. Run the following command to go to the client installation directory:

      cd Client installation directory

    4. Run the following commands to configure environment variables:

      source bigdata_env

      source HBase/component_env

    5. Kerberos authentication is enabled for the cluster (the cluster is in security mode): Run the following command to authenticate as the HBase built-in user. If this is your first-time authentication, enter the default password and change it.

      kinit hbase

      Kerberos authentication is disabled for the cluster (the cluster is in normal mode): Run the following command to set the Hadoop username:

      export HADOOP_USER_NAME=hbase

    6. Run the following commands to regenerate the meta table data:

      export HBASE_CLASSPATH=${HBASE_CLASSPATH}:${HBASE_HOME}/tools/*

      hbase org.apache.hbase.hbck1.OfflineMetaRepair -details

      If Success is displayed, the command is successfully executed. In this case, go to 6.g. If the command fails to be executed, go to 8.

    7. Run the following command to create a backup directory that does not exist in HDFS, for example, /tmp/hbase_bak:

      hdfs dfs -mkdir /tmp/hbase_bak

    8. Run the following command to back up and clear HMaster data:

      hdfs dfs -mv /hbase/MasterData/* /tmp/hbase_bak

    9. Run the following commands to clear the location information of the meta table:

      hbase zkcli

      deleteall /hbase/meta-region-server

      quit

    10. Log in to FusionInsight Manager, choose Cluster > Services > HBase, and click Start Service in the upper right corner of the Dashboard page to start the HBase service.
    11. After the HBase service is started, check whether the alarm is cleared in the alarm list.
      • If yes, no further action is required.
      • If no, go to 8.

  5. Restore the master store table directory files.

    1. Log in to FusionInsight Manager, choose Cluster > Services > HBase, and click Stop Service in the upper right corner of the Dashboard page. In the dialog box that is displayed, enter the password of the current user and click OK to stop the HBase service.
    2. Log in to the node where the client is installed as the client installation user.
    3. Run the following command to go to the client installation directory:

      cd Client installation directory

    4. Run the following commands to configure environment variables:

      source bigdata_env

      source HBase/component_env

    5. Kerberos authentication is enabled for the cluster (the cluster is in security mode): Run the following command to authenticate as the HBase built-in user. If this is your first-time authentication, enter the default password and change it.

      kinit hbase

      Kerberos authentication is disabled for the cluster (the cluster is in normal mode): Run the following command to set the Hadoop username:

      export HADOOP_USER_NAME=hbase

    6. Run the following command to create a backup directory that does not exist in HDFS, for example, /tmp/hbase_bak:

      hdfs dfs -mkdir /tmp/hbase_bak

    7. Run the following command to back up and clear HMaster data:

      hdfs dfs -mv /hbase/MasterData/* /tmp/hbase_bak

    8. Run the following commands to clear the location information of the meta table:

      hbase zkcli

      deleteall /hbase/meta-region-server

      quit

    9. Log in to FusionInsight Manager, choose Cluster > Services > HBase, and click Start Service in the upper right corner of the Dashboard page to start the HBase service.
    10. After the HBase service is started, check whether the alarm is cleared in the alarm list.
      • If yes, no further action is required.
      • If no, go to 8.

NOTE:

After the HBase service is restored, observe the service for a period of time. After confirming that HBase and related services are normal, you are advised to run the following command to delete the backup directory to prevent residual useless files:

hdfs dfs -rm -r /tmp/hbase_bak

Collect fault information.

  1. On FusionInsight Manager, choose O&M. In the navigation pane on the left, choose Log > Download.
  2. Expand the Service drop-down list, and select HBase for the target cluster.
  3. Click the edit icon in the upper right corner, and set Start Date and End Date for log collection to 30 minutes ahead of and after the alarm generation time, respectively. Then, click Download.
  4. Contact O&M engineers and provide the collected logs.

Alarm Clearance

This alarm is automatically cleared after the fault is rectified.

Related Information

None.

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback