大数据学习——hive显示命令
2024-09-08 03:10:35
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;
最新文章
- 多线程中的volatile和伪共享
- ubuntu下安装mysql, eclipse, tomcat
- 基于X86平台的PC机通过网络发送一个int(32位)整数的字节顺序
- BootStrap基本控件
- TextView里限制输入字数的方法
- bootstrap小例子等
- 【c/c++】内存分配大小
- 【好程序员笔记分享】——iOS开发之纯代码键盘退出
- Spring注释(转)
- 高效搭建Spark全然分布式集群
- [Oracle] 常用工具集之 - SQL*Loader
- Event Sourcing
- iOS 工程默认只允许竖屏,在单独界面进行横竖转换,屏幕旋转
- 使用handler倒计时
- 通过案例了解Hystrix的各种基本使用方式
- CSS 埋点统计
- python数据结构-如何根据字典中值的大小对字典项排序
- Node Sass does not yet support your current environment解决办法
- Socket网络编程--聊天程序(4)
- Java程序员必备的Intellij插件(长期更新,截止到2018-05-03)
热门文章
- Codeforces Round #418 (Div. 2) A
- hdu 2604 Queuing dp找规律 然后矩阵快速幂。坑!!
- C#基础学习1
- jQuery选择器之可见性选择器
- JS进阶-特殊形式的函数-返回函数的函数/重写自己的函数
- Monkeyrunner介绍
- (转)SpringMVC学习(八)——SpringMVC中的异常处理器
- instance of type of object.prototype.tostring 区别
- Bug的分类和管理流程
- log4j.xml 精选的log4j.xml文档,比较详细,网上的版本很多,这个版本相对而言比较完整