org.apache.hive.jdbc.HiveDriver和org.apache.hadoop.hive.jdbc.HiveDriver有什么区别? [英] what is difference between org.apache.hive.jdbc.HiveDriver and org.apache.hadoop.hive.jdbc.HiveDriver?

查看:1222
本文介绍了org.apache.hive.jdbc.HiveDriver和org.apache.hadoop.hive.jdbc.HiveDriver有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

org.apache.hive.jdbc.HiveDriver和org.apache.hadoop.hive.jdbc.HiveDriver有什么区别?



使用哪一个写一个用于连接到配置单元的JDBC客户端?

解决方案

Hive 0.11包含一个新的JDBC驱动程序,可与HiveServer2配合使用,针对Hive的应用程序。应用程序需要使用JDBC驱动程序类并在连接URL中指定网络地址和端口才能连接到Hive。
HiveServer2(HIVE-2935)为Hive授权提供并发,身份验证和基础
HiveServer2是支持Kerberos身份验证和多客户端并发性并使用驱动程序组织的HiveServer的改进版本。 apache.hive.jdbc.HiveDriver

HiveServer1或Thrift服务器无法处理来自多个客户端的并发请求。这实际上是由HiveServer导出的Thrift接口施加的限制,无法通过修改HiveServer代码来解决。 Hive Server的驱动程序org.apache.hadoop.hive.jdbc.HiveDriver



请找到可帮助您了解更多信息的链接。
org.apache.hadoop.hive.jdbc.HiveDriver 和< a href =https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients =nofollow> org.apache.hive.jdbc.HiveDriver



要使用它,它取决于你所需的版本以及你如何完成Hive配置的要求。

what is difference between org.apache.hive.jdbc.HiveDriver and org.apache.hadoop.hive.jdbc.HiveDriver ?

Which one to use to Write a JDBC Client to connect to hive ?

解决方案

Hive 0.11 includes a new JDBC driver that works with HiveServer2, enabling users to write JDBC applications against Hive. The application needs to use the JDBC driver class and specify the network address and port in the connection URL in order to connect to Hive. HiveServer2 (HIVE-2935), brings concurrency, authentication, and a foundation for authorization to Hive HiveServer2 is an improved version of HiveServer that supports Kerberos authentication and multi-client concurrency and use the driver "org.apache.hive.jdbc.HiveDriver"

HiveServer1 or Thrift server cannot handle concurrent requests from more than one client. This is actually a limitation imposed by the Thrift interface that HiveServer exports, and can't be resolved by modifying the HiveServer code. The Driver which Hive Server "org.apache.hadoop.hive.jdbc.HiveDriver"

Please find the links which will help you to understand more. org.apache.hadoop.hive.jdbc.HiveDriver and org.apache.hive.jdbc.HiveDriver

To work with, it depend on ur requirement which version you are having and how you have done Hive Configuration.

这篇关于org.apache.hive.jdbc.HiveDriver和org.apache.hadoop.hive.jdbc.HiveDriver有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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