1 show databases;
2 desc t_partition001;
3 desc extended t_partition002;
4 desc formatted t_partition002;
5 !clear;
6 !ls;
7 dfs -ls /;

2 DML操作

load

load data local inpath '/root/hivedata/t_partitioned' into table t_partition001 partition(country="Japan");

load data inpath '/t_partitioned' into table t_partition001 partition(country="Japan");

overwrite

load data local inpath '/root/hivedata/stu_partition2' overwrite into table stu_partition partition(city="China");

like

create table t_1 like stu_partition;

insert

insert overwrite table t_1 partition(city='Japan') select id,name,age from stu_partition;

-- 导出数据insert overwrite local directory '/root/hivedata/data' select * from student;
insert overwrite directory '/root/hivedata/data' select * from student;

3 multi insert 多重插入

4 Dynamic partition inserts  动态分区插入

5 自动分区模式

set hive.exec.dynamic.partition.mode=nonstrict;

最新文章

  1. 多线程中的volatile和伪共享
  2. ubuntu下安装mysql, eclipse, tomcat
  3. 基于X86平台的PC机通过网络发送一个int(32位)整数的字节顺序
  4. BootStrap基本控件
  5. TextView里限制输入字数的方法
  6. bootstrap小例子等
  7. 【c/c++】内存分配大小
  8. 【好程序员笔记分享】——iOS开发之纯代码键盘退出
  9. Spring注释(转)
  10. 高效搭建Spark全然分布式集群
  11. [Oracle] 常用工具集之 - SQL*Loader
  12. Event Sourcing
  13. iOS 工程默认只允许竖屏,在单独界面进行横竖转换,屏幕旋转
  14. 使用handler倒计时
  15. 通过案例了解Hystrix的各种基本使用方式
  16. CSS 埋点统计
  17. python数据结构-如何根据字典中值的大小对字典项排序
  18. Node Sass does not yet support your current environment解决办法
  19. Socket网络编程--聊天程序(4)
  20. Java程序员必备的Intellij插件(长期更新,截止到2018-05-03)

热门文章

  1. Codeforces Round #418 (Div. 2) A
  2. hdu 2604 Queuing dp找规律 然后矩阵快速幂。坑!!
  3. C#基础学习1
  4. jQuery选择器之可见性选择器
  5. JS进阶-特殊形式的函数-返回函数的函数/重写自己的函数
  6. Monkeyrunner介绍
  7. (转)SpringMVC学习(八)——SpringMVC中的异常处理器
  8. instance of type of object.prototype.tostring 区别
  9. Bug的分类和管理流程
  10. log4j.xml 精选的log4j.xml文档,比较详细,网上的版本很多,这个版本相对而言比较完整