From 55269225cd4825597bcbea0f555e833c908ec838 Mon Sep 17 00:00:00 2001 From: heibaiying <31504331+heibaiying@users.noreply.github.com> Date: Sat, 27 Apr 2019 18:59:10 +0800 Subject: [PATCH] =?UTF-8?q?Update=20Hive=E8=A7=86=E5=9B=BE=E5=92=8C?= =?UTF-8?q?=E7=B4=A2=E5=BC=95.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/Hive视图和索引.md | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/notes/Hive视图和索引.md b/notes/Hive视图和索引.md index 97afca9..2e81389 100644 --- a/notes/Hive视图和索引.md +++ b/notes/Hive视图和索引.md @@ -2,24 +2,8 @@ @@ -111,7 +95,7 @@ table_properties: ALTER VIEW custom_view SET TBLPROPERTIES ('create'='heibaiying','date'='2019-05-05'); ``` -
+
@@ -205,7 +189,7 @@ alter index emp_index on emp rebuild; Hive会启动MapReduce作业去建立索引,建立好后查看索引表数据如下。三个表字段分别代表:索引列的值、该值对应的HDFS文件路径、该值在文件中的偏移量。 -
+
### 3.3 自动使用索引 @@ -238,7 +222,7 @@ SHOW INDEX ON emp; - 具有自动重写的物化视图(Materialized View)可以产生与索引相似的效果(Hive 2.3.0增加了对物化视图的支持,在3.0之后正式引入)。 - 使用列式存储文件格式(Parquet,ORC)进行存储时,这些格式支持选择性扫描,可以跳过不需要的文件或块。 -> 对ORC内置的索引功能感兴趣的话可以参阅这篇文章:[Hive性能优化之ORC索引–Row Group Index vs Bloom Filter Index](http://lxw1234.com/archives/2016/04/632.htm) +> ORC内置的索引功能可以参阅这篇文章:[Hive性能优化之ORC索引–Row Group Index vs Bloom Filter Index](http://lxw1234.com/archives/2016/04/632.htm) @@ -249,4 +233,4 @@ SHOW INDEX ON emp; 1. [Create/Drop/Alter View](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/Drop/AlterView) 2. [Materialized views](https://cwiki.apache.org/confluence/display/Hive/Materialized+views) 3. [Hive索引](http://lxw1234.com/archives/2015/05/207.htm) -4. [Overview of Hive Indexes](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Indexing) \ No newline at end of file +4. [Overview of Hive Indexes](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Indexing)