Scenario: Apache Hive View times out when fetching a query result in Azure HDInsight
This article describes troubleshooting steps and possible resolutions for issues when using Interactive Query components in Azure HDInsight clusters.
When running certain queries from the Apache Hive view, the following error may be encountered:
result fetch timed out java.util.concurrent.TimeoutException: deadline passed
The Hive View default timeout value may not be suitable for the query you are running. The specified time period is too short for the Hive View to fetch the query result.
- Increase the Apache Ambari Hive View timeouts by setting the following properties in
/etc/ambari-server/conf/ambari.propertiesfor both headnodes.
views.ambari.request.read.timeout.millis=300000 views.request.read.timeout.millis=300000 views.ambari.hive.<HIVE_VIEW_INSTANCE_NAME>.result.fetch.timeout=300000
The value of
HIVE_VIEW_INSTANCE_NAME is available at the end of the Hive View URL.
- 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.
sudo ambari-server restart
If you didn't see your problem or are unable to solve your issue, visit one of the following channels for more support:
Get answers from Azure experts through Azure Community Support.
Connect with @AzureSupport - the official Microsoft Azure account for improving customer experience. Connecting the Azure community to the right resources: answers, support, and experts.
If you need more help, you can submit a support request from the Azure portal. Select Support from the menu bar or open the Help + support hub. For more detailed information, review How to create an Azure support request. Access to Subscription Management and billing support is included with your Microsoft Azure subscription, and Technical Support is provided through one of the Azure Support Plans.