![6a8136eef55308bc86105d3c35d382e7.png](https://img-blog.csdnimg.cn/img_convert/6a8136eef55308bc86105d3c35d382e7.png)
在上一篇文章中,我们已经完成了hive的安装,这里通过一个简单案例,展示本地文件上传hive的过程
一、创建本地文件数据
在/opt/module/目录下创建datas
cd /opt/module
mkdir datas
在/opt/module/datas/目录下创建test.txt文件并添加数据,分隔符是tab键
cd datas
touch test.txt
vim test.txt
1001 zhangsan
1002 lisi
1003 wanger
![8e0bb4514669efe3a96322bd36260277.png](https://img-blog.csdnimg.cn/img_convert/8e0bb4514669efe3a96322bd36260277.png)
二、hive操作
【1】启动hive
cd /opt/module/hive
bin/hive<