Skip to content

Commit 6398bab

Browse files
authored
Merge pull request #96854 from dagiro/freshness66
freshness66
2 parents 1b7cca3 + 5e0830c commit 6398bab

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

articles/hdinsight/hadoop/apache-hadoop-use-hive-beeline.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: hrasheed
66
ms.reviewer: jasonh
77
ms.service: hdinsight
88
ms.topic: conceptual
9-
ms.date: 10/03/2019
9+
ms.date: 11/21/2019
1010
---
1111

1212
# Use the Apache Beeline client with Apache Hive
@@ -66,9 +66,9 @@ or for private endpoint:
6666
beeline -u 'jdbc:hive2://clustername-int.azurehdinsight.net:443/;ssl=true;transportMode=http;httpPath=/hive2' -n <username> -p password
6767
```
6868

69-
Replace `clustername` with the name of your HDInsight cluster. Replace `<username>` with the cluster login account for your cluster. Note for ESP clusters use the full UPN (e.g. [email protected]). Replace `password` with the password for the cluster login account.
69+
Replace `clustername` with the name of your HDInsight cluster. Replace `<username>` with the cluster login account for your cluster. For ESP clusters, use the full UPN (e.g. [email protected]). Replace `password` with the password for the cluster login account.
7070

71-
Private endpoints point to a basic load balancer which can only be accessed from the VNETs peered in the same region. See [constraints on global VNet peering and load balancers](../../virtual-network/virtual-networks-faq.md#what-are-the-constraints-related-to-global-vnet-peering-and-load-balancers) for more info. You can use the `curl` command with `-v` option to troubleshoot any connectivity problems with public or private endpoints before using beeline.
71+
Private endpoints point to a basic load balancer, which can only be accessed from the VNETs peered in the same region. See [constraints on global VNet peering and load balancers](../../virtual-network/virtual-networks-faq.md#what-are-the-constraints-related-to-global-vnet-peering-and-load-balancers) for more info. You can use the `curl` command with `-v` option to troubleshoot any connectivity problems with public or private endpoints before using beeline.
7272

7373
---
7474

@@ -80,19 +80,19 @@ Apache Spark provides its own implementation of HiveServer2, which is sometimes
8080

8181
The connection string used is slightly different. Instead of containing `httpPath=/hive2` it's `httpPath/sparkhive2`:
8282

83-
```bash
83+
```bash
8484
beeline -u 'jdbc:hive2://clustername.azurehdinsight.net:443/;ssl=true;transportMode=http;httpPath=/sparkhive2' -n <username> -p password
8585
```
8686

8787
or for private endpoint:
8888

89-
```bash
89+
```bash
9090
beeline -u 'jdbc:hive2://clustername-int.azurehdinsight.net:443/;ssl=true;transportMode=http;httpPath=/sparkhive2' -n <username> -p password
9191
```
9292

93-
Replace `clustername` with the name of your HDInsight cluster. Replace `<username>` with the cluster login account for your cluster. Note for ESP clusters use the full UPN (e.g. [email protected]). Replace `password` with the password for the cluster login account.
93+
Replace `clustername` with the name of your HDInsight cluster. Replace `<username>` with the cluster login account for your cluster. For ESP clusters, use the full UPN (e.g. [email protected]). Replace `password` with the password for the cluster login account.
9494

95-
Private endpoints point to a basic load balancer which can only be accessed from the VNETs peered in the same region. See [constraints on global VNet peering and load balancers](../../virtual-network/virtual-networks-faq.md#what-are-the-constraints-related-to-global-vnet-peering-and-load-balancers) for more info. You can use the `curl` command with `-v` option to troubleshoot any connectivity problems with public or private endpoints before using beeline.
95+
Private endpoints point to a basic load balancer, which can only be accessed from the VNETs peered in the same region. See [constraints on global VNet peering and load balancers](../../virtual-network/virtual-networks-faq.md#what-are-the-constraints-related-to-global-vnet-peering-and-load-balancers) for more info. You can use the `curl` command with `-v` option to troubleshoot any connectivity problems with public or private endpoints before using beeline.
9696

9797
---
9898

@@ -188,7 +188,7 @@ This example is based on using the Beeline client from an SSH connection.
188188
GROUP BY t4;
189189
```
190190
191-
These statements perform the following actions:
191+
These statements do the following actions:
192192
193193
* `DROP TABLE` - If the table exists, it's deleted.
194194
@@ -250,7 +250,7 @@ This is a continuation from the prior example. Use the following steps to create
250250
INSERT OVERWRITE TABLE errorLogs SELECT t1, t2, t3, t4, t5, t6, t7 FROM log4jLogs WHERE t4 = '[ERROR]' AND INPUT__FILE__NAME LIKE '%.log';
251251
```
252252
253-
These statements perform the following actions:
253+
These statements do the following actions:
254254
255255
* **CREATE TABLE IF NOT EXISTS** - If the table doesn't already exist, it's created. Since the **EXTERNAL** keyword isn't used, this statement creates an internal table. Internal tables are stored in the Hive data warehouse and are managed completely by Hive.
256256
* **STORED AS ORC** - Stores the data in Optimized Row Columnar (ORC) format. ORC format is a highly optimized and efficient format for storing Hive data.
@@ -259,7 +259,7 @@ This is a continuation from the prior example. Use the following steps to create
259259
> [!NOTE]
260260
> Unlike external tables, dropping an internal table deletes the underlying data as well.
261261
262-
3. To save the file, use **Ctrl**+**_X**, then enter **Y**, and finally **Enter**.
262+
3. To save the file, use **Ctrl**+**X**, then enter **Y**, and finally **Enter**.
263263
264264
4. Use the following to run the file using Beeline:
265265
@@ -285,15 +285,10 @@ This is a continuation from the prior example. Use the following steps to create
285285
| 2012-02-03 | 18:55:54 | SampleClass1 | [ERROR] | incorrect | id | |
286286
| 2012-02-03 | 19:25:27 | SampleClass4 | [ERROR] | incorrect | id | |
287287
+---------------+---------------+---------------+---------------+---------------+---------------+---------------+--+
288-
3 rows selected (1.538 seconds)
288+
3 rows selected (0.813 seconds)
289289
290290
## <a id="summary"></a><a id="nextsteps"></a>Next steps
291291
292-
For more general information on Hive in HDInsight, see the following document:
293-
294-
* [Use Apache Hive with Apache Hadoop on HDInsight](hdinsight-use-hive.md)
295-
296-
For more information on other ways you can work with Hadoop on HDInsight, see the following documents:
292+
* For more general information on Hive in HDInsight, see [Use Apache Hive with Apache Hadoop on HDInsight](hdinsight-use-hive.md)
297293
298-
* [Use Apache Pig with Apache Hadoop on HDInsight](hdinsight-use-pig.md)
299-
* [Use MapReduce with Apache Hadoop on HDInsight](hdinsight-use-mapreduce.md)
294+
* For more information on other ways you can work with Hadoop on HDInsight, see [Use MapReduce with Apache Hadoop on HDInsight](hdinsight-use-mapreduce.md)

0 commit comments

Comments
 (0)