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
description: Tutorial - Learn how to configure Apache Ranger policies for HBase in Azure HDInsight with Enterprise Security Package.
4
4
ms.service: hdinsight
5
5
ms.topic: tutorial
@@ -13,51 +13,49 @@ Learn how to configure Apache Ranger policies for Enterprise Security Package (E
13
13
In this tutorial, you learn how to:
14
14
15
15
> [!div class="checklist"]
16
-
> * Create domain users
17
-
> * Create Ranger policies
18
-
> * Create tables in an HBase cluster
19
-
> * Test Ranger policies
16
+
> * Create domain users.
17
+
> * Create Ranger policies.
18
+
> * Create tables in an HBase cluster.
19
+
> * Test Ranger policies.
20
20
21
21
## Before you begin
22
22
23
23
* If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/).
24
-
25
24
* Sign in to the [Azure portal](https://portal.azure.com/).
26
-
27
-
* Create a [HDInsight HBase cluster with Enterprise Security Package](apache-domain-joined-configure-using-azure-adds.md).
25
+
* Create an [HDInsight HBase cluster with Enterprise Security Package](apache-domain-joined-configure-using-azure-adds.md).
28
26
29
27
## Connect to Apache Ranger Admin UI
30
28
31
-
1. From a browser, connect to the Ranger Admin user interface using the URL `https://<ClusterName>.azurehdinsight.net/Ranger/`. Remember to change `<ClusterName>` to the name of your HBase cluster.
29
+
1. From a browser, connect to the Ranger Admin user interface (UI) by using the URL `https://<ClusterName>.azurehdinsight.net/Ranger/`. Remember to change `<ClusterName>` to the name of your HBase cluster.
32
30
33
-
> [!NOTE]
34
-
> Ranger credentials are not the same as Hadoop cluster credentials. To prevent browsers from using cached Hadoop credentials, use a new InPrivate browser window to connect to the Ranger Admin UI.
31
+
> [!NOTE]
32
+
> Ranger credentials aren't the same as Hadoop cluster credentials. To prevent browsers from using cached Hadoop credentials, use a new InPrivate browser window to connect to the Ranger Admin UI.
35
33
36
-
2. Sign in using your Microsoft Entra admin credentials. The Microsoft Entra admin credentials aren't the same as HDInsight cluster credentials or Linux HDInsight node SSH credentials.
34
+
1. Sign in by using your Microsoft Entra admin credentials. The Microsoft Entra admin credentials aren't the same as HDInsight cluster credentials or Linux HDInsight node Secure Shell (SSH) credentials.
37
35
38
36
## Create domain users
39
37
40
-
Visit [Create a HDInsight cluster with Enterprise Security Package](./apache-domain-joined-configure-using-azure-adds.md), to learn how to create the **sales_user1** and **marketing_user1** domain users. In a production scenario, domain users come from your Active Directory tenant.
38
+
To learn how to create the **sales_user1** and **marketing_user1** domain users, see [Create an HDInsight cluster with Enterprise Security Package](./apache-domain-joined-configure-using-azure-adds.md). In a production scenario, domain users come from your Active Directory tenant.
41
39
42
40
## Create HBase tables and import sample data
43
41
44
42
You can use SSH to connect to HBase clusters and then use [Apache HBase Shell](https://hbase.apache.org/0.94/book/shell.html) to create HBase tables, insert data, and query data. For more information, see [Use SSH with HDInsight](../hdinsight-hadoop-linux-use-ssh-unix.md).
45
43
46
-
### To use the HBase shell
44
+
### Use the HBase shell
47
45
48
46
1. From SSH, run the following HBase command:
49
47
50
48
```bash
51
49
hbase shell
52
50
```
53
51
54
-
2. Create an HBase table `Customers` with two-column families: `Name` and `Contact`.
52
+
1. Create an HBase table `Customers` with two column-families: `Name` and `Contact`.
55
53
56
54
```hbaseshell
57
55
create 'Customers', 'Name', 'Contact'
58
56
list
59
57
```
60
-
3. Insert some data:
58
+
1. Insert some data:
61
59
62
60
```hbaseshell
63
61
put 'Customers','1001','Name:First','Alice'
@@ -75,29 +73,29 @@ You can use SSH to connect to HBase clusters and then use [Apache HBase Shell](h
:::image type="content" source="./media/apache-domain-joined-run-hbase/apache-ranger-admin-login.png" alt-text="Screenshot that shows the HDInsight Apache Ranger Admin UI." border="true":::
93
91
94
-
2. The **List of Policies** screen will display all Ranger policies created for this cluster. One pre-configured policy may be listed. Click**Add New Policy**.
92
+
1. The **List of Policies** screen shows all Ranger policies created for this cluster. One preconfigured policy might be listed. Select**Add New Policy**.
:::image type="content" source="./media/apache-domain-joined-run-hbase/apache-ranger-hbase-policy-create-marketing.png" alt-text="Screenshot that shows the Apache Ranger policy Create marketing." border="true":::
135
133
136
-
6. Click**Add** to save the policy.
134
+
1. Select **Add** to save the policy.
137
135
138
136
## Test the Ranger policies
139
137
140
-
Based on the Ranger policies configured, **sales_user1** can view all of the data forthe columnsin both the `Name` and `Contact` column families. The **marketing_user1** can only view data in the `Contact` column family.
138
+
Based on the Ranger policies configured, **sales_user1** can view all the data for the columns in both the `Name` and `Contact` column families. The **marketing_user1** can view data only in the `Contact` column family.
141
139
142
140
### Access data as sales_user1
143
141
@@ -147,20 +145,20 @@ Based on the Ranger policies configured, **sales_user1** can view all of the dat
1. Use the kinit command to change to the context of our desired user.
148
+
1. Use the `kinit` command to change to the context of the desired user:
151
149
152
150
```bash
153
151
kinit sales_user1
154
152
```
155
153
156
-
2. Open the HBase shell and scan the table `Customers`.
154
+
1. Open the HBase shell and scan the table `Customers`:
157
155
158
156
```hbaseshell
159
157
hbase shell
160
158
scan `Customers`
161
159
```
162
160
163
-
3. Notice that the sales user can view all columns of the `Customers` table including the two columns in the `Name` column-family, as well as the five columns in the `Contact` column-family.
161
+
1. Notice that the sales user can view all columns of the `Customers` table. The user can see the two columns in the `Name` column-family and the five columns in the `Contact` column-family.
164
162
165
163
```hbaseshell
166
164
ROW COLUMN+CELL
@@ -189,7 +187,7 @@ Based on the Ranger policies configured, **sales_user1** can view all of the dat
0 commit comments