Home >Database >Mysql Tutorial >hive hiveserver2

hive hiveserver2

WBOY
WBOYOriginal
2016-06-07 15:08:561743browse

1) 概念 基于Thrift RPC,是HiveServer的改进版,支持多线程以及认证 2) 配置 a. hive --service hiveserver -p 10000 在端口10000上启动hiveserver 连接的驱动名:org.apache.hadoop.hive.jdbc.HiveDriver 注册:jdbc:hive://192.168.50.128:10000/defaul

1) 概念

基于Thrift RPC,是HiveServer的改进版,支持多线程以及认证

2) 配置

a. hive --service hiveserver -p 10000

在端口10000上启动hiveserver

连接的驱动名: org.apache.hadoop.hive.jdbc.HiveDriver

注册:jdbc:hive://192.168.50.128:10000/default

b. hive --service hiveserver2   或者 hiveserver2

修改配置文件hive-site.xml  hive.server2.thrift.port=10001, hive.server2.thrift.bind.host=192.168.50.128

在端口10001上启动hiveserver2

驱动名: org.apache.hive.jdbc.HiveDriver

注册:jdbc:hive://192.168.50.128:10001/default

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn