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/interactive-query/interactive-query-troubleshoot-view-time-out.md
+53-27Lines changed: 53 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,34 +3,50 @@ title: Apache Hive View times out from query result - Azure HDInsight
3
3
description: Apache Hive View times out when fetching a query result in Azure HDInsight
4
4
ms.service: hdinsight
5
5
ms.topic: troubleshooting
6
-
ms.date: 07/30/2019
6
+
ms.date: 02/11/2022
7
7
---
8
8
9
9
# Scenario: Apache Hive View times out when fetching a query result in Azure HDInsight
10
10
11
-
This article describes troubleshooting steps and possible resolutions for issues when using Interactive Query components in Azure HDInsight clusters.
11
+
This article describes troubleshooting steps and possible resolutions for issues when using Interactive Query components in Azure HDInsight clusters. The default timeout was 1 minute in HDI 3.6 and HDI 4.0 clusters.
12
12
13
13
## Issue
14
14
15
15
When running certain queries from the Apache Hive view, the following error may be encountered:
16
16
17
17
```
18
-
Result fetch timed out
18
+
ERROR [ambari-client-thread-1] [HIVE 2.0.0 AUTO_HIVE20_INSTANCE] NonPersistentCursor:131 - Result fetch timed out
at akka.actor.dsl.Inbox$InboxActor$$anonfun$receive$1.applyOrElse(Inbox.scala:117)
22
-
at scala.PartialFunction$AndThen.applyOrElse(PartialFunction.scala:189)
23
-
at akka.actor.Actor$class.aroundReceive(Actor.scala:467)
24
-
at akka.actor.dsl.Inbox$InboxActor.aroundReceive(Inbox.scala:62)
25
-
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
26
-
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
27
-
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
28
-
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
29
-
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)
30
-
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
31
-
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
32
-
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
33
-
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
37
+
at akka.actor.dsl.Inbox$InboxActor$$anonfun$receive$1.applyOrElse(Inbox.scala:117)
38
+
at scala.PartialFunction$AndThen.applyOrElse(PartialFunction.scala:189)
39
+
at akka.actor.Actor$class.aroundReceive(Actor.scala:467)
40
+
at akka.actor.dsl.Inbox$InboxActor.aroundReceive(Inbox.scala:62)
41
+
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
42
+
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
43
+
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
44
+
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
45
+
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)
46
+
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
47
+
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
48
+
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
49
+
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
34
50
```
35
51
36
52
## Cause
@@ -40,17 +56,27 @@ The Hive View default timeout value may not be suitable for the query you are ru
40
56
## Resolution
41
57
42
58
1. Increase the Apache Ambari Hive View timeouts by setting the following properties in `/etc/ambari-server/conf/ambari.properties` for **both headnodes**.
The value of `HIVE_VIEW_INSTANCE_NAME` is available by clicking YOUR_USERNAME > Manage Ambari > Views > Names column. Do not use the URL name.
49
-
50
-
2. Restart the active Ambari server by running the following. If you get an error message saying it's not the active Ambari server, just ssh into the next headnode and repeat this step.
Confirm the Hive View instance name `AUTO_HIVE20_INSTANCE` by going to YOUR_USERNAME > Manage Ambari > Views. Get the instance name from the Name column. If it doesn't match, then replace this value. **Do not use the URL Name column**.
63
+
64
+
2. Restart the active Ambari server by running the following. If you get an error message saying it's not the active Ambari server, just ssh into the next headnode and repeat this step. Note down the PID of the current Ambari server process.
65
+
```
66
+
sudo ambari-server status
67
+
sudo systemctl restart ambari-server
68
+
```
69
+
3. Confirm Ambari server actually restarted. If you followed the steps, you will notice the PID has changed.
70
+
```
71
+
sudo ambari-server status
72
+
```
73
+
74
+
## Notes
75
+
If you get a 502 error, then that is coming from the HDI gateway. You can confirm by opening web inspector, go to network tab, then re-submit query. You'll see a request fail, returning a 502 status code, and the time will show 2 mins elapsed.
76
+
77
+
The query is not suited for Hive View. It is recommended that you either try the following instead:
0 commit comments