hive:访问hive

来源:互联网 发布:网络教育不考学位证 编辑:程序博客网 时间:2024/06/06 17:17

由于hive自身是类SQL语言,缺乏shell的灵活性和对过程的控制能力,所以采用shell+hive的开发模式非常常见,在shell中直接定义变量,在hive -e语句中就可以直接引用;
http://www.crazyant.net/1203.html

hive不支持offset
http://www.javali.org/document/how-to-query-limit-offset-count-in-hive.html

https://cwiki.apache.org/confluence/display/Hive/GettingStarted#GettingStarted-SELECTSandFILTERS

HiveServer和HiveServer2都有两种模式,分别为嵌入式和单机服务器模式,
对于嵌入式URI为”jdbc:hive://”或者”jdbc:hive2://”,单机服务器模式的URI为”jdbc:hive://host:port/dbname”或者”jdbc:hive2://host:port/dbname”。
HiveServer使用的JDBC驱动类为org.apache.hadoop.hive.jdbc.HiveDriver,而HiveServer2使用的驱动类为org.apache.hive.jdbc.HiveDriver。
参考:
http://blog.csdn.net/skywalker_only/article/details/38366347

0 0
原创粉丝点击