The RED scheduler can send email notifications when jobs fail or complete successfully. This section provides instructions on how to add the required configurations.
The Windows Scheduler installation wizard provides a configuration screen for adding all the required settings.
If you don't want to use an authenticated user for sending email notifications, deselect the Enable authentication option. |
To add email notifications when installing the scheduler on Linux, you need to add the required settings on both the web response file and executor response files.
Edit both response files, find the <emailConfig> element, and modify its child elements adding the required information.
<host>
In this element enter the mail server hostname or IP.
<port>
The port your email server is using for sending emails.
<user>
The username for the account that will send notifications. If useAuth is set to false you can leave this blank.
<password>
The password for the account that will send notifications. If you are using WALLET as password encryption, enter the string that represents the password in the WALLET, to learn more about WALLET passwords refer to the RED Scheduler Configuration section.
If useAuth is set to false you can leave this blank.
<sender>
The email address displayed as From: on the email client.
<tsl>
Set to true if you want to use tsl encryption. Set to false if you don't want to use tsl.
<useAuth>
Set to true if you want to authenticate the user that will send notifications. Set to false to send notifications without authentication.
If you didn't provide email settings during the scheduler installation, you can add them manually. You need to edit the azkaban.local.properties configuration file in the WEB_SERVER and EXEC_SERVER folders, these folders are located in the Scheduler installation folder, for example c:\pathtoscheduler\WEB_SERVER
in Windows and /path/to/scheduler/WEB_SERVER
in Linux.
Open azkaban.local.properties and change these parameters to add the email settings:
mail.tsl
Set this parameter to true if the mail server uses TSL, otherwise leave the value as false.
mail.host
In this parameter enter the mail host.
mail.port
Change its value to the port your mail server uses.
mail.password
In Windows, set this parameter to the encrypted password for the account that will send notifications. To learn more about encrypting the password refer to RED Scheduler Configuration and Encryption Utility.
In Linux, set this parameter to the string that represents the email password in the WALLET. To learn more about WALLET passwords refer to the RED Scheduler Configuration section.
mail.user
In this parameter enter the username for the account that will send notifications.
mail.sender
In this parameter enter the email address used for sending notifications.
mail.useAuth
Set the value to true to enable authentication.
Once you add your configurations to azkaban.local.properties in both WEB_SERVER and EXEC_SERVER, you need to restart the Azkaban Webserver and Executor. |
Once you have configured your email settings you also need to set up the recipient email address in RED.