hive的启动
来源:互联网 发布:钻戒哪个牌子好 知乎 编辑:程序博客网 时间:2024/06/08 15:06
一、通过Hive CLI(command line interface)方式启动
$ bin/hive15/10/20 15:12:01 INFO Configuration.deprecation: mapred.input.dir.recursive is deprecated. Instead, use mapreduce.input.fileinputformat.input.dir.recursive......hive>
二、通过HiveServer2 and Beeline方式启动
1、先启动HiveServer2
$ bin/hive --service hiveserver2Starting HiveServer215/10/20 15:24:49 INFO Configuration.deprecation: mapred.input.dir.recursive is deprecated. Instead, use mapreduce.input.fileinputformat.input.dir.recursive......或者
$ bin/hiveserver2
这里采用了hive的默认配置,也就是hive.server2.thrift.port为10000,hive.server2.thrift.bind.host为localhost
2、接着就能使用java去连接,也可以使用HiveServer2的CLI去连接语法:bin/beeline -u jdbc:hive2://$HS2_HOST:$HS2_PORT
$ bin/beeline -u jdbc:hive2://localhost:10000scan complete in 3msConnecting to jdbc:hive2://localhost:10000......Connected to: Hive (version 0.12.0)Driver: Hive (version 0.12.0)Transaction isolation: TRANSACTION_REPEATABLE_READBeeline version 0.12.0 by Apache Hive0: jdbc:hive2://localhost:10000>
连接成功,测试一下:
0: jdbc:hive2://localhost:10000> show databases;+----------------+| database_name |+----------------+| default || study || study2 |+----------------+3 rows selected (0.458 seconds)
三、总结
HiveServer2是 Hive 0.11版本开始有的,HiveServer2是HiveServer的升级版,它们都是以Thrift框架为基础。HiveServer2相对于HiveServer和Hive CLI,HiveServer2增加了新的功能,它支持多客户端的并发和认证,而且为开放API,如JDBC、ODBC提供了更好的支持。所以推荐使用的是HiveServer2。
参考资料
https://cwiki.apache.org/confluence/display/Hive/GettingStarted
https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2
0 0
- hive的启动方式
- hive的启动
- hive的启动
- [Hive]关于Hive的启动问题
- 启动HIVE
- HIVE 启动
- hive启动失败的小问题总结以及hive
- HDFS YARN zookeeper HBASE HIVE HIVE hwi的启动
- HDFS YARN zookeeper HBASE HIVE HIVE hwi的启动
- 两个Hive无法启动问题的解决
- Hive的启动问题和解决办法
- hive service的启动及关闭
- hive的三种启动模式
- hive启动过程遇到的问题
- 启动hive报SafeModeException的错误
- hive启动时遇到的问题
- HIVE Service自动启动
- hive启动错误
- Git 基础
- 2015年imac一体机安装双系统问题及解决技巧
- android -- Can't create handler inside thread that has not called Looper.prepare()
- CABasicAnimation用法
- createDialog
- hive的启动
- 可以实现pdf转换成txt格式的方法
- android数据库支持的数据类型
- Linux进程和内核级进程的一些知识
- windows 命令行查找字符串 和 文件(find & findstr & for)
- GitHub最火的Android开源项目
- POJ 1056 IMMEDIATE DECODABILITY 字典树
- storm入门原理
- Mapreduce实例-Top Key