![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
Jhon_yh
这个作者很懒,什么都没留下…
展开
-
Hive常用命令及其环境搭建|Hive优化
文章目录Hive基本概念架构图HIVE 搭建模式单用户模式Hive官网 http://hive.apache.org/基本概念数据仓库(历史数据,用于计算分析)解释器、编译器、优化器等(将sql转换为MR,提交给Hadoop集群)。hive运行时,元数据(表、库、字段、属性)存储在关系型数据库(在线数据,交互式)里面,数据存储在HDFS里面架构图HIVE 搭建模式loc...原创 2018-12-06 18:48:40 · 321 阅读 · 0 评论 -
Hive常用命令
1.hive模糊搜索表show tables like ‘name’;2.查看表结构信息desc formatted table_name;desc table_name;3.查看分区信息show partitions table_name;4.根据分区查询数据select table_coulm from table_name where partition_name = ‘20...转载 2019-05-09 14:16:28 · 793 阅读 · 0 评论 -
hive 常用命令
内部表改成外部表alter table db_name.dwd_ptnr_netcard_xb_order_day set tblproperties('EXTERNAL'='TRUE');存储格式转换ALTER TABLE db_name.dwd_ptnr_netcard_xb_order_day SET FILEFORMAT ORC修复分区MSCK REPAIR TABLE tabl...原创 2019-05-30 11:14:50 · 191 阅读 · 0 评论 -
hive分区
文章目录partition23partition个人理解: 分区是真实存在的,对应的是hdfs上的路径,例:create external table tb_name (id string comment 'id')partitioned (prov_id string, day_id string)对应到hdfs上的路径就是 ‘hdfs://localhost:9083/tmp...原创 2019-06-04 10:54:17 · 323 阅读 · 0 评论