hive的三种连接方式

使用hive的三种方式
第一种:hive的shell操作方式
bin/hive
第二种:Hive JDBC服务
nohup bin/hive --service hiveserver2 &
bin/beeline
!connect jdbc:hive2://node03:10000
第三种方式:hive命令
bin/hive -e "HQL语句,多个语句用;隔开";   //-e表示直接写HQL
hive-1.1.0-cdh5.14.0]# bin/hive -f /export/servers/hive-study-data/hive-mingling 
-f:表示执行的是sql文件

猜你喜欢

转载自blog.csdn.net/weixin_42333583/article/details/83218328