testbook

HiveServer2

HiveServer2可以让用户远程操作Inceptor来执行SQL。HiveServer2基于Thrift RPC,支持多租户并发和权限认证。它是为更好地支持开放的API(比如JDBC和ODBC)设计的。HiveServer2使用的Thrift界面定义语言(IDL)可以在下面地址找到:
https://github.com/apache/hive/blob/trunk/service/if/TCLIService.thrift
Thrift的使用手册可以在下面地址找到:
http://thrift.apache.org/docs/

基于SQL标准的Inceptor授权

HiveServer2支持基于SQL标准的Inceptor授权,使用和SQL中一样的grant/revoke语法,可以进行细粒度的授权控制。授权的语法在Inceptor SQL使用指南的数据定义语言章节有具体介绍。

本节目录

HiveServer2的配置

  • 配置
    • hive-site.xml文件中的配置属性
    • 在HTTP模式下运行
    • 可选的环境设置
    • 可选的全局Init文件
  • 启动
    • 使用消息
  • 认证/安全配置
    • 配置
    • Impersonation
    • Integrity/Confidentiality Protection
    • SSL Encryption
    • Pluggable Authentication Modules (PAM)
  • Python Client Driver
  • Ruby Client Driver
Client Documents
    Beeline – New Command Line Shell Beeline Example Beeline Commands Beeline Hive Commands Beeline Command Options Separated-Value Output Formats JDBC Connection URLs Connection URL for Remote or Embedded Mode Connection URL When HiveServer2 Is Running in HTTP Mode Connection URL When SSL Is Enabled in HiveServer2 Using JDBC JDBC Client Sample Code Running the JDBC Sample Code JDBC Data Types JDBC Client Setup for a Secure Cluster Multi-User Scenarios and Programmatic Login to Kerberos KDC Using Kerberos with a Pre-Authenticated Subject Python Client Ruby Client Integration with SQuirrel SQL Client