![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
weixin_42333583
有啥好说的,还在学习阶段。
展开
-
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表示直接写...原创 2018-10-20 23:58:17 · 4430 阅读 · 0 评论 -
hive的基本操作
Hive的基本操作 数据库的操作 1 创建数据库操作create database if not exits myhive; 默认将数据库和数据表放在hdfs的/user/hive/warehouse 目录下 2 创建数据库或表,自定义在hdfs存放位置 create database if not exi...原创 2018-10-21 00:06:24 · 182 阅读 · 0 评论 -
hive加载数据的几种形式
hive的数据导入 1 直接插入,效率低 insert into table XXX values(); 如果有分区的话就可以加上 partition(month='201809') 2 通过load方式加载数据 load data local inpath '/export/servers/hive-study-data/score.csv' overwrite into table sc...原创 2018-10-21 00:11:39 · 1546 阅读 · 0 评论