Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure an alert mailbox for a CDH cluster

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to configure an alarm mailbox for a CDH cluster". The explanation in the article is simple and clear, and is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to configure an alarm mailbox for a CDH cluster".

1. Purpose of the article

In most cases, developers do not pay much attention to the status of the services in the cluster, resulting in the failure to find the cause when reporting an error during the job. As for the operation and maintenance personnel, there are too many clusters managed, so it is not convenient and timely to view the cluster status information on the CM management interface. In CDH cluster, Cloudera Manager provides mail alarm to help operation and maintenance. This article mainly describes how to configure alarm mailbox in CDH cluster.

two。 System environment

CDH version: cdh 5.13.1

CM version: cm 5.13.1

Operating system version: redhat 7.2

CM management interface role requirements: Full Administrator

3. Operation steps

3.1. Confirm Alert Publisher service

In the Cloudera Management Service > instance, verify that the Alert Publisher service is installed and the status is normal.

Confirm that other services are enabled to collect alert information in the Management > Alerts interface. You can set the level of alert information and some alerts with more details, including host status, configuration changes, etc., according to your own needs.

3.2. Configure email alert information

Filter Alert Publisher in the Cloudera Management Service > configuration > scope

Configuration instructions:

1. Mail server host name:

It can be IP or hostname (for example, the smtp address of 263 mailbox is: smtpcom.263xmail.com

The email address of IP 183.61.151.35 Magi QQ is smtp.qq.com, which can be found on IP 14.18.245.164. Make sure that the host where the Alert Publisher service is located can ping with the mail server host, and that port 25 is not restricted.

two。 User name and password of the mail server

Make sure that you can log in to the mailbox properly with this user name and password

3. Mail recipient

Message recipients can be multiple, separated by commas

4. Message format

It is sent in HTML format by default, and can be modified to Text or json format

3.3. Post-configuration testing

After the configuration is completed, you can send test alerts in Management > Alerts.

If you view the log in the / var/log/cloudera-scm-alertpublisher/ directory, you can see the following message, indicating that the message was sent successfully.

The test email is received as follows, and the date is determined according to the time of the Alert Publisher server.

ZooKeeper service canary failed alarm due to unknown reason after startup

The log information is as follows: here we can see that the information sent by the mail is stored in the log in json format.

HMaster process test for manual Kill HBase:

[root@hdp01 cloudera-scm-alertpublisher] # jps

[root@hdp01 cloudera-scm-alertpublisher] # kill-9 1270

(can slide left and right)

View the service status in CM:

/ var/log/cloudera-scm-alertpublisher/ view log information:

Log message after manually restarting the HMaster service: there is an alarm that there was an unexpected exit 5 minutes ago. The log shows that batch alerts are passed to the alarm side

Email message:

4. Problem handling

The exception information is as follows:

Check whether the Alert Publisher server node can communicate with the mail host server ping, and confirm that port 25 can be accessed properly.

Thank you for your reading. the above is the content of "how to configure alarm mailboxes for CDH clusters". After the study of this article, I believe you have a deeper understanding of how to configure alarm mailboxes for CDH clusters, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report