![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
The Great Bear
这个作者很懒,什么都没留下…
展开
-
Hive中各种join对比案例分析
SQL语句执行顺序很多SQL的优化可以根据SQL语句的执行顺序来处理。创建表和插入数据将创建表和插入数据写到一个join.sql SQL文件中-- 使用db2数据库use db2;-- 如果存在,则删除表drop table if exists stu;drop table if exists score;-- 创建stu表create table if not exists stu(id int,name string)row format delimited fields原创 2020-09-07 15:32:22 · 253 阅读 · 0 评论 -
vivo笔试Hive
现有表 vivo 格式如下左图所示:params 为 map 类型数据,请将 params 解析为右图所示格式:创建表vivocreate table if not exists vivo(name string,params map<string,int>)row format delimitedfields terminated by '\t'collection items terminated by '&'map keys terminated by ':'原创 2020-05-22 15:57:49 · 170 阅读 · 0 评论 -
HiveQL基础必修50题(含答案)
数据:student.csv01 赵雷 1990-01-01 男02 钱电 1990-12-21 男03 孙风 1990-05-20 男04 李云 1990-08-06 男05 周梅 1991-12-01 女06 吴兰 1992-03-01 女07 郑竹 1989-07-01 女08 王菊 1990-01-20 女course.csv01 语文 0202 数学 0103...原创 2020-01-03 18:03:08 · 317 阅读 · 0 评论 -
hue整合MySQL/HDFS/Yarn/Hive/Zookeeper/HBase/OOZIE
4 整合mysql4.1 vi desktop/conf/hue.ini1231行。 mysql, oracle, or postgresql configuration. [[[mysql]]] # Name to show in the UI. nice_name="MySQL" # For MySQL and PostgreSQL, na...原创 2019-12-19 22:32:51 · 201 阅读 · 0 评论 -
数仓学习之路一
一、数据仓库的起源数据仓库,英文名称为Data Warehouse,可简写为DW或DWH。数据仓库之父比尔∙恩门(Bill Inmon)在1991年出版的“Building the Data Warehouse”(《建立数据仓库》)一书中所提出的定义被广泛接受——数据仓库(Data Warehouse)是一个面向主题的(Subject Oriented)、集成的(Integrated)、相对稳定...原创 2019-12-17 09:18:19 · 1394 阅读 · 0 评论 -
hive
hive 年龄 星座原创 2019-12-16 09:06:38 · 121 阅读 · 0 评论 -
Hive行列互转
1 多行转多列数据:张三 语文 90张三 数学 85张三 英语 92李四 语文 75李四 数学 90李四 英语 80王五 语文 95王五 数学 100王五 英语 98建表:create table stu(name string,subject string,score int)row format delimitedfields terminated...原创 2019-12-07 18:11:57 · 283 阅读 · 0 评论