![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hive
alphabeta12345
这个作者很懒,什么都没留下…
展开
-
在Hive中创建与mysql下相同的表
2、在Hive中创建employee表,与sqoop用户下的相同的表2.1在Linux的终端输入以下代码sqoop create-hive-table --connect jdbc:mysql://localhost:3306/sqoop --table employee --username sqoop--password sqoop --hive-table emplo原创 2014-06-04 14:27:38 · 1815 阅读 · 0 评论 -
hive的权限管理
在hive-site.xml文件中 hive.security.authorization.enabled true原创 2014-07-25 10:31:17 · 689 阅读 · 0 评论 -
hive交互模式
Hive Interactive Shell CommandsWhen $HIVE_HOME/bin/hive is run without either the -e or -f option, it enters interactive shell mode.Use ";" (semicolon) to terminate commands. Comments in scrip转载 2014-11-06 16:40:46 · 1480 阅读 · 0 评论 -
hive的非交互模式
1、非交互模式执行HQL语句$HIVE_HOME/bin/hive -e 'select * from movie limit 10'会现实mapreduce的进度,但不会进入hive的交互模式,最终现实查询结果原创 2014-11-06 15:27:31 · 1760 阅读 · 0 评论 -
在Hive 中如何使用复合数据结构 maps,array,structs
1. Array的使用 创建数据库表,以array作为数据类型 create table person(name string,work_locations array)ROW FORMAT DELIMITEDFIELDS TERMINATED BY '\t'COLLECTION ITEMS TERMINATED BY ',';转载 2015-01-15 20:10:51 · 641 阅读 · 0 评论 -
hive的数据类型和数据模型
在上篇文章里,我列举了一个简单的hive操作实例,创建了一张表test,并且向这张表加载了数据,这些操作和关系数据库操作类似,我们常把hive和关系数据库进行比较,也正是因为hive很多知识点和关系数据库类似。 关系数据库里有表(table),分区,hive里也有这些东西,这些东西在hive技术里称为hive的数据模型。今天本文介绍hive的数据类型,数据模型以及文件存储格式。这些知识大家可转载 2015-01-15 17:26:05 · 1001 阅读 · 0 评论