hive 笔记
作者:
shenmou | 来源:发表于
2020-03-29 11:51 被阅读0次
# 登录容器
docker-compose exec some_name bash
# 1. 新建个txt 文件 stutent2.txt
# 2. 上传到 hdfs 中
hadoop fs -put stuent2.txt /user/hive/warehouse/student #最后跟的是hdfs路径
# 新建student3.txt
8 springmvc
9 springboot
hadoop fs -put student3.txt /
load data inpath 'student3.txt' into table student; # 需要先进入 hive 命令行界面
load data inpath 'hdfs://namenode:8020/student3.txt' into table student;
# 在hive中查询
select * from student;
本文标题:hive 笔记
本文链接:https://www.haomeiwen.com/subject/rbmyuhtx.html
网友评论