You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -75,7 +75,7 @@ The following sections describe how customers can use the new Azure Monitor Agen
75
75
>
76
76
> For more information about how to create a Log Analytics workspace, see [Create a Log Analytics workspace in the Azure portal](/azure/azure-monitor/logs/quick-create-workspace).
77
77
78
-
### Enable Azure monitor agent using Portal
78
+
### Approach 1: Enable Azure monitor agent using Portal
79
79
80
80
Activate the new integration by going to your cluster's portal page and scrolling down the menu on the left until you reach the Monitoring section.
81
81
@@ -92,6 +92,309 @@ Activate the new integration by going to your cluster's portal page and scrollin
92
92
93
93
1. Select Save once precondition steps are complete.
94
94
95
+
### Approach 2: Enable Azure monitor agent using Azure PowerShell
96
+
97
+
1. Enable system-assigned MSI
98
+
99
+
1. First get cluster information to check the MSI of cluster.
1. If this cluster already system assigned MSI, no need to anything.
119
+
120
+
121
+
1. Creation of DCR
122
+
123
+
For more information, see [Create and edit data collection rules (DCRs)](/azure/azure-monitor/essentials/data-collection-rule-create-edit?tabs=powershell#create-a-dcr).
124
+
125
+
```
126
+
# The URL of the DCR template file, change {HDIClusterType} to your cluster type.
For more information, see [Set up the Azure Monitor agent on Windows client devices](/azure/azure-monitor/agents/azure-monitor-agent-windows-client#create-and-associate-a-monitored-object).
1. If this cluster already system assigned MSI, no need to anything.
263
+
264
+
265
+
1. Creation of DCR.
266
+
267
+
For more information, see [Create and edit data collection rules (DCRs)](/azure/azure-monitor/essentials/data-collection-rule-create-edit?tabs=CLI#create-a-dcr)
268
+
269
+
```
270
+
# The URL of the DCR template file, change {HDIClusterType} to your cluster type.
az monitor data-collection rule association create --association-name $dcrAssociationName --resource $hdinsightClusterResourceId --data-collection-rule-id $dcrId
364
+
```
365
+
366
+
367
+
1. Enabling Azure Monitor Agent
368
+
369
+
```
370
+
# set variables
371
+
372
+
export resourceGroup=RESOURCEGROUPNAME
373
+
374
+
export cluster=CLUSTERNAME
375
+
376
+
export LAW=LOGANALYTICSWORKSPACENAME
377
+
378
+
379
+
380
+
# Enable the Azure Monitor Agent logs integration on an HDInsight cluster.
381
+
382
+
az hdinsight azure-monitor-agent enable --name $cluster --resource-group $resourceGroup --workspace $LAW
383
+
384
+
385
+
386
+
# Get the status of Azure Monitor Agent logs integration on an HDInsight cluster.
387
+
388
+
az hdinsight azure-monitor-agent show --name $cluster --resource-group $resourceGroup
389
+
```
390
+
391
+
392
+
1. (Optional) disabling Azure Monitor Agent.
393
+
394
+
```
395
+
az hdinsight azure-monitor-agent disable --name $cluster --resource-group $resourceGroup
396
+
```
397
+
95
398
### Enable Azure Monitor Agent logging for Spark cluster
96
399
97
400
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.
@@ -112,7 +415,7 @@ The following steps describe how customers can enable the new Azure Monitor Agen
112
415
113
416
There are two ways you can access the new tables.
114
417
115
-
#### Approach 1:
418
+
#### Approach 1
116
419
117
420
1. The first way to access the new tables is through the Log Analytics workspace.
118
421
@@ -127,7 +430,7 @@ There are two ways you can access the new tables.
127
430
> [!NOTE]
128
431
>This process describes how the logs were accessed in the old integration. This requires the user to have access to the workspace.
129
432
130
-
#### Approach 2:
433
+
#### Approach 2
131
434
132
435
The second way to access the new tables is through Cluster portal access.
133
436
@@ -187,7 +490,7 @@ We provide a [mapping table](./log-analytics-migration.md#appendix-table-mappi
187
490
188
491
### Update dashboards for HDInsight clusters
189
492
190
-
If you build multiple dashboards to monitor your HDInsight clusters, you need to adjust the query behind the table once you enable the new Azure Monitor integration. The table name or the field name might change in the new integration, but all the information you have in old integration is included.
493
+
If you build multiple dashboards to monitor your HDInsight clusters, you need to adjust the query behind the table once you enable the new Azure Monitor integration. The table name or the field name might change in the new integration, but all the information you have in old integration is included.
191
494
192
495
Refer to the [mapping table](log-analytics-migration.md#appendix-table-mapping) between the old table/schema to the new table/schema to update the query behind the dashboards
# Use Azure Monitor logs to monitor HDInsight clusters
@@ -20,8 +20,7 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
20
20
#### [New Azure monitor experience](#tab/new)
21
21
22
22
> [!Important]
23
-
> New Azure Monitor experience is available in all the regions as a preview feature.
24
-
>
23
+
> Azure Monitor experience (preview) in HDInsight is retiring by February 1, 2025. For more information, see [Retirement: Azure Monitor experience (preview) in HDInsight is retiring by February 1, 2025](https://azure.microsoft.com/updates/v2/HDInsight-Azure-Monitor-experience-retirement).
0 commit comments