![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
大数据之hive
文章平均质量分 75
njyuxinag
这个作者很懒,什么都没留下…
展开
-
(大数据之hive)hive的自定义函数练习
0.要继承org.apache.hadoop.hive.ql.exec.UDF类实现evaluate 自定义函数调用过程: 1.添加jar包(在hive命令行里面执行) hive> add jar /root/NUDF.jar; 2.创建临时函数 hive> create temporary function getNation as 'cn.itcast.hive.u原创 2015-05-31 11:19:02 · 506 阅读 · 0 评论 -
(大数据之hive)hive利用mysql存储metastore
1.上传hive安装包 2.解压 3.配置 3.1安装mysql 查询以前安装的mysql相关包 rpm -qa | grep mysql 暴力删除这个包 rpm -e mysql-libs-5.1.66-2.el6_3.i686 --nodeps rpm -ivh MySQL-server-5.1.73-1.glibc23.i386.rpm rpm -i原创 2015-05-31 11:17:29 · 578 阅读 · 0 评论 -
(大数据之hive)hive安装
Hive只在一个节点上安装即可 1.上传tar包 2.解压 tar -zxvf hive-0.9.0.tar.gz -C /cloud/ 3.配置mysql metastore(切换到root用户) 配置HIVE_HOME环境变量 rpm -qa | grep mysql rpm -e mysql-libs-5.1.66-2.el6_3.i686 --nodeps r原创 2015-05-31 11:13:52 · 390 阅读 · 0 评论 -
(大数据之hive)hive联表查询、创建外部表练习
create table trade_detail(id bigint, account string, income double, expenses double, time string) row format delimited fields terminated by '\t'; create table user_info(id bigint, account string, nam原创 2015-05-31 11:18:37 · 989 阅读 · 0 评论 -
Hive常用操作命令
show databases; use hive; show tables; create table student(id int, name string) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t'; load data local inpath '/home/hadoop/data/student.txt' overwrite in...原创 2019-02-18 21:56:37 · 132 阅读 · 0 评论