1. Objectives of this chapter
- In the demonstrated
Dolphinscheduler
alarm notification function,SQL
the result set returned by the task component query is specified as the email notification content (supports three templates: table, attachment, or table attachment).
2. Preconditions
Dolphinscheduler
Deployment completed- For K8S cluster deployment, please refer to the article: K8S Application Notes - Deploying Dolphinscheduler and Simple Applications (1)
- For other deployment forms, please refer to the official website: Deployment Guide
- For K8S cluster deployment, please refer to the article: K8S Application Notes - Deploying Dolphinscheduler and Simple Applications (1)
3. Prepare the mailbox
To use DolphinScheduler
the email alarm notification function of , you need to prepare an email account and enable SMTP
the service.
This article takes
3.1 Open SMTP service
Drag the progress bar to find the content shown in the figure below at the bottom of the page, and start POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务
any service.
3.2 Obtain an authorization code
Follow the instructions to bind the mobile phone or send verification, and finally get the following authorization code:
Four, Dolphinscheduler configuration
4.1 Create an alarm instance
Switch to administrator user login, in Security Center - Alarm Instance Management - Create Alarm Instance.
Notes (take
SMTP端口
:587SMTP服务器
:smtp.qq.com
4.2 Configure alarm group
In Security Center - Alarm Group Management - create/modify alarm instances.
Edit the alarm group name, select an alarm group instance, and add an alarm group description.
4.3 SQL task component configuration
Use the content of the previous chapter: Deploying Dolphinscheduler and simple applications based on the K8S environmentSQL
to modify the task components in the process definition :