hive
weixin_45515429
这个作者很懒,什么都没留下…
展开
-
hive常用函数
1.1、partitioned by (fiels string…)CREATE TABLE dept_partition( deptno int, dname string, loc string)PARTITIONED BY (day string)ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t'LOAD DATA LOCAL INPATH '/home/hadoop/data/dept.txt' OVERWRITE INTO TABLE de原创 2020-12-15 21:55:49 · 191 阅读 · 0 评论 -
1.2 Hive常见命令
1.“-e”不进入hive的交互窗口执行sql语句[root@hadoop102 hive]# bin/hive -e "select id from student;"2.“-f”执行脚本中sql语句(1)在/opt/module/datas目录下创建hivef.sql文件[root@hadoop102 datas]# touch hivef.sql文件中写入正确的sql语句se...原创 2020-04-25 08:22:02 · 111 阅读 · 0 评论 -
1.1、linux环境下hive部署安装
一、linux环境下hive部署安装1 hive部署2 Hadoop集群配置3 MySql安装4 Hive元数据配置到MySql1 hive部署(1)把apache-hive-1.2.1-bin.tar.gz上传到linux的/opt/software目录下(2)解压apache-hive-1.2.1-bin.tar.gz到/opt/module/目录下面[atguigu@hadoop10...原创 2020-04-25 07:54:55 · 282 阅读 · 0 评论