![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hive
Can I date you?
优秀是一种习惯
展开
-
org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask - I/O error in redirector thread.
hive随笔原创 2023-03-11 23:38:06 · 419 阅读 · 0 评论 -
crontab hive: command not found
hive原创 2022-12-26 17:47:57 · 187 阅读 · 0 评论 -
批量修复hive数据表 msck repair table tablename;
hive修复数据表原创 2022-10-31 18:14:21 · 588 阅读 · 0 评论 -
CDH环境下关于Hive的部分命令(一)
创建student表, 并声明文件分隔符’\t’create table stu(id int, sex string) row format delimited fields terminated BY '\t';加载本地/run1/stu.txt 文件到stu数据库表中。load data local inpath '/run1/stu.txt' into table stu;如何...原创 2019-05-30 21:45:14 · 1119 阅读 · 0 评论 -
CDH环境下关于Hive的部分命令(二)
1.集合数据类型数据格式:xiaobing,basketball_volleyball,phone1:18_phone2:19,zhongyunqu_zhengzhouxiaocheng,basketball_badminton,phone1:18_phone2:19,fugouxian_zhoukou创表语法:create table demo(name string,like ...原创 2019-06-06 12:05:35 · 302 阅读 · 0 评论 -
CDH环境下关于Hive的部分命令(三)
1.创建二级分区表create table stu(id int, name string)partitioned by (month string, day string)row format delimited fields terminated by '\t';2.为二级分区表加载数据load data local inpath '/run1/f.txt' into table...原创 2019-06-15 22:13:59 · 227 阅读 · 0 评论 -
CDH环境下关于Hive的部分命令(四)
1.全表查询select * from stu;2.查询指定的列select id,age from stu;3.列别名select id i from stu;4.求总行数select count(*) from stu;5.求最大值select max(age) max_age from stu;6.求最小值select min(age) min_age fro...原创 2019-06-17 16:51:43 · 299 阅读 · 0 评论 -
Hive的架构原理
hive的架构Hive接收到用户的指令(HQL)以后,使用自己的Driver和元数据(Meta Store),将这些HQL解析为MapReduce,提交到Hadoop中执行,执行结束后将结果返回到用户交互接口。1.ClientHive的用户接口层,CLI即Shell命令行,CLI最常用。...原创 2019-06-06 19:52:20 · 474 阅读 · 0 评论