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
Copy file name to clipboardExpand all lines: articles/hdinsight/hbase/apache-hbase-tutorial-get-started-linux.md
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,13 @@
1
1
---
2
2
title: Tutorial - Use Apache HBase in Azure HDInsight
3
3
description: Follow this Apache HBase tutorial to start using hadoop on HDInsight. Create tables from the HBase shell and query them using Hive.
4
-
keywords: hbasecommand,hbase example
5
4
author: hrasheed-msft
5
+
ms.author: hrasheed
6
6
ms.reviewer: jasonh
7
7
ms.service: hdinsight
8
-
ms.custom: hdinsightactive,hdiseo17may2017
9
8
ms.topic: tutorial
10
-
ms.date: 06/25/2019
11
-
ms.author: hrasheed
9
+
ms.custom: hdinsightactive,hdiseo17may2017
10
+
ms.date: 04/14/2020
12
11
---
13
12
14
13
# Tutorial: Use Apache HBase in Azure HDInsight
@@ -28,17 +27,17 @@ In this tutorial, you learn how to:
28
27
29
28
* An SSH client. For more information, see [Connect to HDInsight (Apache Hadoop) using SSH](../hdinsight-hadoop-linux-use-ssh-unix.md).
30
29
31
-
* Bash. The examples in this article use the Bash shell on Windows 10 for the curl commands. See [Windows Subsystem for Linux Installation Guide for Windows 10](https://docs.microsoft.com/windows/wsl/install-win10) for installation steps. Other [Unix shells](https://www.gnu.org/software/bash/) will work as well. The curl examples, with some slight modifications, can work on a Windows Command prompt. Alternatively, you can use the Windows PowerShell cmdlet [Invoke-RestMethod](https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-restmethod).
30
+
* Bash. The examples in this article use the Bash shell on Windows 10 for the curl commands. See [Windows Subsystem for Linux Installation Guide for Windows 10](https://docs.microsoft.com/windows/wsl/install-win10) for installation steps. Other [Unix shells](https://www.gnu.org/software/bash/) will work as well. The curl examples, with some slight modifications, can work on a Windows Command prompt. Or you can use the Windows PowerShell cmdlet [Invoke-RestMethod](https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-restmethod).
32
31
33
32
## Create Apache HBase cluster
34
33
35
-
The following procedure uses an Azure Resource Manager template to create an HBase cluster and the dependent default Azure Storage account. To understand the parameters used in the procedure and other cluster creation methods, see [Create Linux-based Hadoop clusters in HDInsight](../hdinsight-hadoop-provision-linux-clusters.md).
34
+
The following procedure uses an Azure Resource Manager template to create an HBase cluster. The template also creates the dependent default Azure Storage account. To understand the parameters used in the procedure and other cluster creation methods, see [Create Linux-based Hadoop clusters in HDInsight](../hdinsight-hadoop-provision-linux-clusters.md).
36
35
37
36
1. Select the following image to open the template in the Azure portal. The template is located in [Azure quickstart templates](https://azure.microsoft.com/resources/templates/).
38
37
39
38
<ahref="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-hdinsight-hbase-linux%2Fazuredeploy.json"target="_blank"><imgsrc="./media/apache-hbase-tutorial-get-started-linux/hdi-deploy-to-azure1.png"alt="Deploy to Azure button for new cluster"></a>
40
39
41
-
2. From the **Custom deployment**blade, enter the following values:
40
+
2. From the **Custom deployment**dialog, enter the following values:
42
41
43
42
|Property |Description |
44
43
|---|---|
@@ -51,7 +50,7 @@ The following procedure uses an Azure Resource Manager template to create an HBa
51
50
52
51
Other parameters are optional.
53
52
54
-
Each cluster has an Azure Storage account dependency. After you delete a cluster, the data retains in the storage account. The cluster default storage account name is the cluster name with "store" appended. It is hardcoded in the template variables section.
53
+
Each cluster has an Azure Storage account dependency. After you delete a cluster, the data stays in the storage account. The cluster default storage account name is the cluster name with "store" appended. It's hardcoded in the template variables section.
55
54
56
55
3. Select **I agree to the terms and conditions stated above**, and then select **Purchase**. It takes about 20 minutes to create a cluster.
57
56
@@ -118,7 +117,7 @@ In HBase (an implementation of [Cloud BigTable](https://cloud.google.com/bigtabl
118
117
get 'Contacts', '1000'
119
118
```
120
119
121
-
You see similar results as using the `scan` command because there is only one row.
120
+
You see similar results as using the `scan` command because there's only one row.
122
121
123
122
For more information about the HBase table schema, see [Introduction to Apache HBase Schema Design](http://0b4af6cdc2f0c5998459-c0245c5c937c5dedcca3f1764ecc9b2f.r43.cf2.rackcdn.com/9353-login1210_khurana.pdf). For more HBase commands, see [Apache HBase reference guide](https://hbase.apache.org/book.html#quickstart).
124
123
@@ -175,7 +174,7 @@ You can query data in HBase tables by using [Apache Hive](https://hive.apache.or
175
174
176
175
For more information about Beeline, see [Use Hive with Hadoop in HDInsight with Beeline](../hadoop/apache-hadoop-use-hive-beeline.md).
177
176
178
-
1. Run the following [HiveQL](https://cwiki.apache.org/confluence/display/Hive/LanguageManual) script to create a Hive table that maps to the HBase table. Make sure that you have created the sample table referenced earlier in this article by using the HBase shell before you run this statement.
177
+
1. Run the following [HiveQL](https://cwiki.apache.org/confluence/display/Hive/LanguageManual) script to create a Hive table that maps to the HBase table. Make sure that you've created the sample table referenced earlier in this article by using the HBase shell before you run this statement.
@@ -198,7 +197,7 @@ You can query data in HBase tables by using [Apache Hive](https://hive.apache.or
198
197
199
198
The REST API is secured via [basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication). You shall always make requests by using Secure HTTP (HTTPS) to help ensure that your credentials are securely sent to the server.
200
199
201
-
1. Initiate environment variable for ease of use. Edit the commands below by replacing `MYPASSWORD` with the cluster login password. Replace `MYCLUSTERNAME` with the name of your HBase cluster. Then enter the commands.
200
+
1. Set environment variable for ease of use. Edit the commands below by replacing `MYPASSWORD` with the cluster login password. Replace `MYCLUSTERNAME` with the name of your HBase cluster. Then enter the commands.
202
201
203
202
```bash
204
203
export password='MYPASSWORD'
@@ -235,10 +234,10 @@ The REST API is secured via [basic authentication](https://en.wikipedia.org/wiki
235
234
-v
236
235
```
237
236
238
-
You must base64 encode the values specified in the -d switch. In the example:
237
+
Base64 encode the values specified in the -d switch. In the example:
239
238
240
239
* MTAwMA==: 1000
241
-
* UGVyc29uYWw6TmFtZQ==: Personal:Name
240
+
* UGVyc29uYWw6TmFtZQ==: Personal:Name
242
241
* Sm9obiBEb2xl: John Dole
243
242
244
243
[false-row-key](https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/rest/package-summary.html#operation_cell_store_single) allows you to insert multiple (batched) values.
@@ -301,7 +300,7 @@ To avoid inconsistencies, we recommend that you disable the HBase tables before
301
300
302
301
## Next steps
303
302
304
-
In this tutorial, you learned how to create an Apache HBase cluster and how to create tables and view the data in those tables from the HBase shell. You also learned how to use a Hive query on data in HBase tables and how to use the HBase C# REST APIs to create an HBase table and retrieve data from the table. To learn more, see:
303
+
In this tutorial, you learned how to create an Apache HBase cluster. And how to create tables and view the data in those tables from the HBase shell. You also learned how to use a Hive query on data in HBase tables. And how to use the HBase C# REST APIs to create an HBase table and retrieve data from the table. To learn more, see:
0 commit comments