HIVE数据导入
来源:互联网 发布:冒险岛2激活码淘宝 编辑:程序博客网 时间:2024/06/03 11:12
1. text数据文件导出text数据表中
数据格式:
创建相应的数据表
create table if not exists text_table(id int, count int) comment 'table desc' partitioned by (date int) row format delimited fields terminated by '\t' lines terminated by '\n' stored as textfile;
导入数据
load data local inpath '/tmp/xgs/data.text' into table text_table partition (date=20170727);
2. orc数据文件导入orc数据表中
数据格式:
创建相应的数据表
create table if not exists orc_table(id int, count int) comment 'table desc' partitioned by (date int) row format delimited fields terminated by '\t' lines terminated by '\n' stored as orcfile;
导入数据
load data local inpath '/tmp/xgs/data.orc' into table orc_table partition (date=20170727);
3. orc与text互相导入
主要是依靠insert关键字,如:insert into table orc_table partition (date=20170727) select id, count from text_table where date=20170727;
- hive数据导入
- Hive 导入导出数据
- hive数据导入
- Hive数据导入
- hive数据导入
- Hive数据导入
- hive数据导入导出
- hive导入HDFS数据
- Hive数据导入HBase
- hive数据导入方法
- hive 导入导出数据
- ElasticSearch数据导入Hive
- Hive的数据导入
- hive导入导出数据
- HBASE数据导入HIVE
- hive数据导入
- Hive数据导入方式
- HIVE数据导入
- CopyOnWriteArrayList源码解析——JDK1.8
- JVM 参数汇总
- 【二叉树】判断一棵二叉树是否是平衡二叉树/求一棵二叉树的镜像/对称的二叉树
- 浅谈 Nginx和LVS的各种优缺点
- Tomcat优化详解
- HIVE数据导入
- jq 上传文件时要注意的事项
- tomcat发布web项目的三种方式
- [leetcode]332. Reconstruct Itinerary
- 怎么开启,关闭归档
- 文章标题
- overview of JVET- Meeting A
- sdut 1299最长上升子序列
- java 泛型指导手册(下)