在 Azure HDInsight 群集上缩放 HiveServer2 以实现高可用性Scale HiveServer2 on Azure HDInsight Clusters for High Availability

了解如何在群集中另外部署一个 HiveServer2,以提升可用性和负载分配。Learn how to deploy an additional HiveServer2 into your cluster to increase availability and load distribution. 当不需要增加头节点的大小时,也可以使用边缘节点来部署 HiveServer2。When increasing the headnode size isn't desired, you can also use edge nodes to deploy HiveServer2.

备注

根据使用情况,增加 HiveServer2 的数量可能会增加 Hive 元存储连接的数量。Depending on your usage, increasing the number of HiveServer2 may increase the number of connections to the Hive metastore. 另外请确保 Azure SQL 数据库大小适当。Also ensure your Azure SQL database is properly sized.

先决条件Prerequisites

若要使用本指南,需要了解以下文章:To use this guide, you'll need to understand the following article:

安装 HiveServer2Install HiveServer2

在本部分中,你将在目标主机上另外安装一个 HiveServer2。In this section, you'll install an additional HiveServer2 onto your target hosts.

  1. 在浏览器中打开 Ambari,并单击目标主机。Open Ambari in your browser and click on your target host.

Ambari 的“主机”菜单。

  1. 单击“添加”按钮,然后单击“HiveServer2”Click the add button and click on HiveServer2

主机的“添加 HiveServer2”面板。

  1. 确认,然后该进程将会运行。Confirm and the process will run. 对所有需要的主机重复步骤 1-3。Repeat 1-3 for all desired hosts.

  2. 完成安装后,请使用过时配置重新启动所有服务并启动 HiveServer2。When you have finished installing, restart all services with stale configs and start HiveServer2.

“启动 HiveServer2”面板。

后续步骤Next steps

本文介绍了如何在群集上安装 HiveServer2。In this article, you've learned how to install HiveServer2 onto your cluster. 若要详细了解边缘节点和应用程序,请参阅以下文章:To learn more about edge nodes and applications, see the following articles: