什么是HiveServer和Thrift服务器 [英] what is HiveServer and Thrift server

查看:92
本文介绍了什么是HiveServer和Thrift服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始学习Hive,我经常在Hive书籍或Hive教程中看到三个术语.Hive服务器,Hive服务和Thrift服务器.这些是什么 ?它们是如何关联的?有什么区别 ?.什么时候使用这些?请解释

I just started learning Hive.There are three terms which often I seen in Hive books or Hive tutorials. Hive Server,Hive Service and Thrift Server. What is these ? how they are related ?. what is the difference ?. when each of these are used? please explain

推荐答案

  1. HiveServer2(HS2)是一项使客户端能够执行的服务针对Hive的查询.HiveServer2是HiveServer1的后继者已不推荐使用.HS2支持多客户端并发和验证.它旨在为开放提供更好的支持API客户端(如JDBC和ODBC).您可以在 https://cwiki.apache.org/confluence中找到有关hiveserver的更多详细信息./display/Hive/HiveServer2 +概述
  2. Hive服务只不过是在您的客户端节点上运行的守护程序将请求发送到Hive服务器.

  1. HiveServer2 (HS2) is a service that enables clients to execute queries against Hive. HiveServer2 is the successor to HiveServer1 which has been deprecated. HS2 supports multi-client concurrency and authentication. It is designed to provide better support for open API clients like JDBC and ODBC. You can find more details about hiveserver at https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Overview
  2. Hive Service is nothing but daemon which runs on your client node which sends requests to Hive Server.

Thrift是一个用于构建跨平台服务的RPC框架.它的堆栈由4层组成:服务器,传输,协议和处理器.您可以在以下位置找到有关图层的更多详细信息 https://thrift.apache.org/docs/concepts .

Thrift is an RPC framework for building cross-platform services. Its stack consists of 4 layers: Server, Transport, Protocol, and Processor. You can find more details about the layers at https://thrift.apache.org/docs/concepts.

所有这些之间的关系:

  • 基于Thrift的Hive服务是HS2的核心,并负责服务于Hive查询(例如,来自Beeline).简而言之,Hive服务器基于节俭协议,该协议从hive发送查询客户端,即您的命令行界面或从HUE界面到可以位于您的HDFS或任何其他数据源中的基础数据.

用法:

  • 在后台查询任何配置单元表或数据库时您的请求会自动在蜂巢服务和蜂巢服务器
  • 当您要创建自己的服务或项目时,可以使用节俭的协议,这将有助于您创建图层,请考虑一下当您使用库创建用户定义的函数时,在这种情况下,图书馆将很节俭.

什么是Apache Thrift:是用于跨语言服务开发的可伸缩框架.

What is Apache Thrift: It is framework for scalable for cross-language service development.

当我们可以使用Apache Thrift时:开发Web服务,该服务使用以一种语言进行开发的服务访问另一种语言.

When we can use Apache Thrift: Developing web-service that uses service developed in one language access that is in another language.

什么是HiveServer::这项服务允许远程客户端向hive提交请求.使用多种编程语言,并检索结果.

What is HiveServer : It is a service that allows a remote client to submit requests to hive. Using a variety of programming languages, and retrieve results.

这篇关于什么是HiveServer和Thrift服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆