|
| 1 | +--- |
| 2 | +title: 'Tutorial: Configure Apache Ambari email notifications in Azure HDInsight' |
| 3 | +description: This article describes how to use SendGrid with Apache Ambari for email notifications. |
| 4 | +author: hrasheed-msft |
| 5 | +ms.author: hrasheed |
| 6 | +ms.reviewer: hrasheed |
| 7 | +ms.service: hdinsight |
| 8 | +ms.topic: tutorial |
| 9 | +ms.date: 03/10/2020 |
| 10 | + |
| 11 | +#Customer intent: As a HDInsight user, I want to configure Apache Ambari to send email notifications. |
| 12 | +--- |
| 13 | + |
| 14 | +# Tutorial: Configure Apache Ambari email notifications in Azure HDInsight |
| 15 | + |
| 16 | +In this tutorial, you'll configure Apache Ambari email notifications using SendGrid. [Apache Ambari](./hdinsight-hadoop-manage-ambari.md) simplifies the management and monitoring of an HDInsight cluster by providing an easy to use web UI and REST API. Ambari is included on HDInsight clusters, and is used to monitor the cluster and make configuration changes. [SendGrid](https://sendgrid.com/solutions/) is a free cloud-based email service that provides reliable transactional email delivery, scalability, and real-time analytics along with flexible APIs that make custom integration easy. Azure customers can unlock 25,000 free emails each month. |
| 17 | + |
| 18 | +In this tutorial, you learn how to: |
| 19 | + |
| 20 | +> [!div class="checklist"] |
| 21 | +> * Obtain Sendgrid Username |
| 22 | +> * Configure Apache Ambari email notifications |
| 23 | +
|
| 24 | +## Prerequisites |
| 25 | + |
| 26 | +* A SendGrid email account. See [How to Send Email Using SendGrid with Azure](https://docs.microsoft.com/azure/sendgrid-dotnet-how-to-send-email) for instructions. |
| 27 | + |
| 28 | +* An HDInsight cluster. See [Create Apache Hadoop clusters using the Azure portal](./hdinsight-hadoop-create-linux-clusters-portal.md). |
| 29 | + |
| 30 | +## Obtain SendGrid Username |
| 31 | + |
| 32 | +1. From the [Azure portal](https://portal.azure.com), navigate to your SendGrid resource. |
| 33 | + |
| 34 | +1. From the Overview page, select **Manage**, to go the SendGrid webpage for your account. |
| 35 | + |
| 36 | +  |
| 37 | + |
| 38 | +1. From the left menu, navigate to your account name and then **Account Details**. |
| 39 | + |
| 40 | +  |
| 41 | + |
| 42 | +1. From the **Account Details** page, record the **Username**. |
| 43 | + |
| 44 | +  |
| 45 | + |
| 46 | +## Configure Ambari e-mail notification |
| 47 | + |
| 48 | +1. From a web browser, navigate to `https://CLUSTERNAME.azurehdinsight.net/#/main/alerts`, where `CLUSTERNAME` is the name of your cluster. |
| 49 | + |
| 50 | +1. From the **Actions** drop-down list, select **Manage Notifications**. |
| 51 | + |
| 52 | +1. From the **Manage Alert Notifications** window, select the **+** icon. |
| 53 | + |
| 54 | +  |
| 55 | + |
| 56 | +1. From the **Create Alert Notification** dialog, provide the following information: |
| 57 | + |
| 58 | + |Property |Description | |
| 59 | + |---|---| |
| 60 | + |Name|Provide a name for the notification.| |
| 61 | + |Groups|Configure as desired.| |
| 62 | + |Severity|Configure as desired.| |
| 63 | + |Description|Optional.| |
| 64 | + |Method|Leave at **EMAIL**.| |
| 65 | + |Email To|Provide e-mail(s) to receive notifications, separated by a comma.| |
| 66 | + |SMTP Server|`smtp.sendgrid.net`| |
| 67 | + |SMTP Port|25 or 587 (for unencrypted/TLS connections).| |
| 68 | + |Email From|Provide an email address. The address doesn't need to be authentic.| |
| 69 | + |Use authentication|Select this check box.| |
| 70 | + |Username|Provide the SendGrid username.| |
| 71 | + |Password|Provide the password you used when you created the SendGrid resource in Azure.| |
| 72 | + |Password Confirmation|Reenter password.| |
| 73 | + |Start TLS|Select this check box| |
| 74 | + |
| 75 | +  |
| 76 | + |
| 77 | + Select **Save**. You'll return to the **Manage Alert Notifications** window. |
| 78 | + |
| 79 | +1. From the **Manage Alert Notifications** window, select **Close**. |
| 80 | + |
| 81 | +## Next steps |
| 82 | + |
| 83 | +In this tutorial, you learned how to configure Apache Ambari email notifications using SendGrid. Use the following to learn more about Apache Ambari: |
| 84 | + |
| 85 | +* [Manage HDInsight clusters by using the Apache Ambari Web UI](./hdinsight-hadoop-manage-ambari.md) |
| 86 | + |
| 87 | +* [Create an alert notification](https://docs.cloudera.com/HDPDocuments/Ambari-latest/managing-and-monitoring-ambari/content/amb_create_an_alert_notification.html) |
0 commit comments