Skip to content

Commit 1b967d6

Browse files
authored
Merge pull request #104285 from dagiro/freshness190
freshness190
2 parents 90b039a + 5d711dd commit 1b967d6

File tree

2 files changed

+6
-49
lines changed

2 files changed

+6
-49
lines changed

articles/hdinsight/hdinsight-administer-use-portal-linux.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -225,18 +225,6 @@ The password is changed on all nodes in the cluster.
225225

226226
6. Select **Create** to apply the script. Once the script finishes, you're able to connect to the cluster using SSH with the new password.
227227
228-
## Grant/revoke access
229-
230-
HDInsight clusters have the following HTTP web services (all of these services have RESTful endpoints):
231-
232-
- ODBC
233-
- JDBC
234-
- Ambari
235-
- Oozie
236-
- Templeton
237-
238-
By default, these services are granted for access. You can revoke/grant the access using [Azure PowerShell](hdinsight-administer-use-powershell.md#grantrevoke-access).
239-
240228
## Find the subscription ID
241229
242230
Each cluster is tied to an Azure subscription. The Azure subscription ID is visible from the [cluster home page](#homePage).

articles/hdinsight/hdinsight-administer-use-powershell.md

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.reviewer: jasonh
77
ms.service: hdinsight
88
ms.topic: conceptual
99
ms.custom: hdinsightactive
10-
ms.date: 12/09/2019
10+
ms.date: 02/13/2020
1111
---
1212

1313
# Manage Apache Hadoop clusters in HDInsight by using Azure PowerShell
@@ -68,48 +68,17 @@ Set-AzHDInsightClusterSize -ClusterName <Cluster Name> -TargetInstanceCount <New
6868

6969
For more information about scaling clusters, see [Scale HDInsight clusters](./hdinsight-scaling-best-practices.md).
7070

71-
## Grant/revoke access
72-
73-
HDInsight clusters have the following HTTP web services (all of these services have RESTful endpoints):
74-
75-
* ODBC
76-
* JDBC
77-
* Ambari
78-
* Oozie
79-
* Templeton
80-
81-
By default, these services are granted for access. You can revoke/grant the access. To revoke:
82-
83-
```powershell
84-
Revoke-AzHDInsightHttpServicesAccess -ClusterName <Cluster Name>
85-
```
71+
## Update HTTP user credentials
8672

87-
To grant:
73+
[Set-AzHDInsightGatewayCredential](https://docs.microsoft.com/powershell/module/az.hdinsight/set-azhdinsightgatewaycredential) sets the gateway HTTP credentials of an Azure HDInsight cluster.
8874

8975
```powershell
90-
$clusterName = "<HDInsight Cluster Name>"
76+
$clusterName = "CLUSTERNAME"
77+
$credential = Get-Credential -Message "Enter the HTTP username and password:" -UserName "admin"
9178
92-
# Credential option 1
93-
$hadoopUserName = "admin"
94-
$hadoopUserPassword = '<Enter the Password>'
95-
$hadoopUserPW = ConvertTo-SecureString -String $hadoopUserPassword -AsPlainText -Force
96-
$credential = New-Object System.Management.Automation.PSCredential($hadoopUserName,$hadoopUserPW)
97-
98-
# Credential option 2
99-
#$credential = Get-Credential -Message "Enter the HTTP username and password:" -UserName "admin"
100-
101-
Grant-AzHDInsightHttpServicesAccess -ClusterName $clusterName -HttpCredential $credential
79+
Set-AzHDInsightGatewayCredential -ClusterName $clusterName -HttpCredential $credential
10280
```
10381

104-
> [!NOTE]
105-
> By granting/revoking the access, you reset the cluster user name and password.
106-
107-
Granting and revoking access can also be done via the portal. See [Manage Apache Hadoop clusters in HDInsight by using the Azure portal](hdinsight-administer-use-portal-linux.md).
108-
109-
## Update HTTP user credentials
110-
111-
It's the same procedure as Grant/revoke HTTP access. If the cluster has been granted the HTTP access, you must first revoke it. And then grant the access with new HTTP user credentials.
112-
11382
## Find the default storage account
11483

11584
The following PowerShell script demonstrates how to get the default storage account name and the related information:

0 commit comments

Comments
 (0)