Help Center/ MapReduce Service/ User Guide/ Managing Clusters/ Managing MRS Cluster Jobs/ Configuring Notification Rules for MRS Jobs
Updated on 2024-09-23 GMT+08:00

Configuring Notification Rules for MRS Jobs

MRS uses SMN to offer a publish/subscribe model to achieve one-to-multiple message subscriptions and notifications in a variety of message types (SMSs and emails). You can configure job notification rules to receive notifications immediately upon a job execution success or failure.

  1. Log in to the management console.
  2. Click Service List. Under Management & Governance, click Simple Message Notification.
  3. Create a topic and add subscriptions to the topic. For details, see Configuring Notifications for MRS Cluster Alarms and Events.
  4. Go to the MRS management console, and click the cluster name to go to the cluster details page.
  5. Click the Alarms tab, and choose Notification Rules > Add Notification Rule.

    Figure 1 Adding a notification rule

  6. Configure a notification rule for sending job execution results to subscribers.

    Table 1 Parameters of adding a notification rule

    Parameter

    Description

    Rule Name

    User-defined notification rule name. Only digits, letters, hyphens (-), and underscores (_) are allowed.

    Message Notification

    If you enable this function, subscription messages will be sent to subscribers.

    Topic Name

    Select an existing topic or click Create Topic to create a topic.

    Notification Type

    Select Event.

    Subscription Items

    1. Click next to Suggestion.
    2. Click next to Manager.
    3. Select Job Running Succeeded and Job Running Failed.