Hive_Hive Metastore Server 与 HiveServer2

 

There are two services for data access in Hive, Metastore Server and HiveServer2.

Note: These two services are different, in a nutshell: Metastore Server is responsible for access to metadata, namely table structure, library information. Such as: SHOW DATABASES; and HiveServer2 is responsible for accessing the specific data in the Hive table.

 

 

Metastore Server and HiveServer2 are two independent services

 

Metastore Server:


    The Hive metadata access portal uses the Thrift protocol to
provide cross-language access to hive metadata.

 

 

HiveServer2:


    The access portal for data in the Hive library is also applicable to the thrift protocol, which provides cross-language access to data in Hive, such as common python, java and other remote access to hive data. The beeline client also accesses data through HiveServer2.

 

 


Relatively speaking, if there is a table in Hive. Access the information in this table through Metastore Server

Access the specific content of the table, through HiveServer2


 

 


 

Published 519 original articles · praised 1146 · 2.83 million views

Guess you like

Origin blog.csdn.net/u010003835/article/details/105257097