Skip to content

Commit 36a8fd7

Browse files
authored
Merge pull request #284616 from sreekzz/spark-la
Added Enable Spark Cluster Steps
2 parents 07a51c4 + 6a7030a commit 36a8fd7

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

articles/hdinsight/azure-monitor-agent.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure Monitor Agent (AMA) migration guide for Azure HDInsight clusters
33
description: Learn how to migrate to Azure Monitor Agent (AMA) in Azure HDInsight clusters.
44
ms.service: azure-hdinsight
55
ms.topic: how-to
6-
ms.date: 07/31/2024
6+
ms.date: 08/14/2024
77
---
88

99
# Azure Monitor Agent (AMA) migration guide for Azure HDInsight clusters
@@ -84,13 +84,29 @@ Activate the new integration by going to your cluster's portal page and scrollin
8484
1. Then, select Enable and you can choose the Log Analytics workspace that you want your logs to be sent to.
8585
:::image type="content" source="./media/azure-monitor-agent/monitor-integration.png" alt-text=" Screenshot showing Azure monitor integration." border="true" lightbox="./media/azure-monitor-agent/monitor-integration.png":::
8686

87-
1. Enable Azure Monitor Agent Integration with Log Analytics and select your workspace (existing workspace when you're migrating from your previous image to newer image)
87+
1. Enable Azure Monitor Agent Integration with Log Analytics and select your workspace (existing workspace when you're migrating from your previous image to newer image).
8888

8989
1. Once you confirm the workspace selection, precondition steps commence.
9090

9191
:::image type="content" source="./media/azure-monitor-agent/pre-condition.png" alt-text="Screenshot showing preconditions." border="true" lightbox="./media/azure-monitor-agent/pre-condition.png":::
9292

93-
1. Select Save once precondition steps are complete.
93+
1. Select Save once precondition steps are complete.
94+
95+
### Enable Azure Monitor Agent logging for Spark cluster
96+
97+
Azure HDInsight Spark clusters control AMA integration using a Spark configuration `spark.hdi.ama.enabled`, by default the value is set to false. This configuration controls whether the Spark specific logs will come up in the Log Analytics workspace. If you want to enable AMA in your Spark clusters and retrieve the Spark event logs in their LA workspaces, you need to perform an additional step to enable AMA for spark specific logs.
98+
99+
The following steps describe how customers can enable the new Azure Monitor Agent logging for their spark workloads.
100+
101+
1. Go to Ambari -> Spark Configs.
102+
103+
1. Navigate to **Custom Spark defaults** and search for config `spark.hdi.ama.enabled`, the default value of this config will be false. Set this value as **true**.
104+
105+
:::image type="content" source="./media/azure-monitor-agent/enable-spark.png" alt-text="Screenshot showing how to enable Azure Monitor Agent logging for Spark cluster." border="true" lightbox="./media/azure-monitor-agent/enable-spark.png":::
106+
107+
1. Click **save** and restart Spark services on all nodes.
108+
109+
1. Access the tables in LA workspace.
94110

95111
### Access the new tables
96112

14.8 KB
Loading

0 commit comments

Comments
 (0)