You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by mi...@apache.org on 2018/12/06 23:14:38 UTC

[12/51] [partial] impala git commit: [DOCS] Impala 3.1 Docs to be published

http://git-wip-us.apache.org/repos/asf/impala/blob/b4ad38a9/docs/build/html/topics/impala_perf_hdfs_caching.html
----------------------------------------------------------------------
diff --git a/docs/build/html/topics/impala_perf_hdfs_caching.html b/docs/build/html/topics/impala_perf_hdfs_caching.html
index b27016a..4b8ea99 100644
--- a/docs/build/html/topics/impala_perf_hdfs_caching.html
+++ b/docs/build/html/topics/impala_perf_hdfs_caching.html
@@ -1,8 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html
-  SYSTEM "about:legacy-compat">
-<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2018"><meta name="DC.rights.owner" content="(C) Copyright 2018"><meta name="DC.Type" content="concept"><meta name="DC.Relation" scheme="URI" content="../topics/impala_performance.html"><meta name="prodname" content="Impala"><meta name="prodname" content="Impala"><meta name="version" content="Impala 2.12x"><meta name="version" content="Impala 2.12x"><meta name="DC.Format" content="XHTML"><meta name="DC.Identifier" content="hdfs_caching"><link rel="stylesheet" type="text/css" href="../commonltr.css"><title>Using HDFS Caching with Impala (Impala 2.1 or higher only)</title></head><body id="hdfs_caching"><main role="main"><article role="article" aria-labelledby="ariaid-title1">
+  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<meta name="copyright" content="(C) Copyright 2018" />
+<meta name="DC.rights.owner" content="(C) Copyright 2018" />
+<meta name="DC.Type" content="concept" />
+<meta name="DC.Title" content="Using HDFS Caching with Impala (Impala 2.1 or higher only)" />
+<meta name="DC.Relation" scheme="URI" content="../topics/impala_performance.html" />
+<meta name="prodname" content="Impala" />
+<meta name="prodname" content="Impala" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="DC.Format" content="XHTML" />
+<meta name="DC.Identifier" content="hdfs_caching" />
+<link rel="stylesheet" type="text/css" href="../commonltr.css" />
+<title>Using HDFS Caching with Impala (Impala 2.1 or higher only)</title>
+</head>
+<body id="hdfs_caching">
+
 
   <h1 class="title topictitle1" id="ariaid-title1">Using HDFS Caching with Impala (<span class="keyword">Impala 2.1</span> or higher only)</h1>
+
   
   
 
@@ -16,7 +36,8 @@
       using data from the Linux OS cache.
     </p>
 
-    <div class="note note note_note"><span class="note__title notetitle">Note:</span> 
+
+    <div class="note note"><span class="notetitle">Note:</span>
       <p class="p">
         On a small or lightly loaded cluster, HDFS caching might not produce any speedup. It might even lead to
         slower queries, if I/O read operations that were performed in parallel across the entire cluster are replaced by in-memory
@@ -24,6 +45,7 @@
         bottlenecks because they experience high CPU load while processing the cached data blocks, while other hosts remain idle.
         Therefore, always compare performance with and without this feature enabled, using a realistic workload.
       </p>
+
       <p class="p">
         In <span class="keyword">Impala 2.2</span> and higher, you can spread the CPU load more evenly by specifying the <code class="ph codeph">WITH REPLICATION</code>
         clause of the <code class="ph codeph">CREATE TABLE</code> and <code class="ph codeph">ALTER TABLE</code> statements.
@@ -35,6 +57,7 @@
         Always use a <code class="ph codeph">WITH REPLICATION</code> setting of at least 3, and adjust upward
         if necessary to match the replication factor for the underlying HDFS data files.
       </p>
+
       <p class="p">
         In <span class="keyword">Impala 2.5</span> and higher, Impala automatically randomizes which host processes
         a cached HDFS block, to avoid CPU hotspots. For tables where HDFS caching is not applied,
@@ -43,21 +66,31 @@
         you can enable additional randomization for the scheduling algorithm for non-HDFS cached data
         by setting the <code class="ph codeph">SCHEDULE_RANDOM_REPLICA</code> query option.
       </p>
+
     </div>
 
+
     <p class="p toc inpage"></p>
 
 
 
+
     <p class="p">
       For background information about how to set up and manage HDFS caching for a <span class="keyword"></span> cluster, see
       <span class="xref">the documentation for your Apache Hadoop distribution</span>.
     </p>
+
   </div>
 
-  <nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_performance.html">Tuning Impala for Performance</a></div></div></nav><article class="topic concept nested1" aria-labelledby="ariaid-title2" id="hdfs_caching__hdfs_caching_overview">
+
+  <div class="related-links">
+<div class="familylinks">
+<div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_performance.html">Tuning Impala for Performance</a></div>
+</div>
+</div><div class="topic concept nested1" aria-labelledby="ariaid-title2" id="hdfs_caching_overview">
 
     <h2 class="title topictitle2" id="ariaid-title2">Overview of HDFS Caching for Impala</h2>
+
   
 
     <div class="body conbody">
@@ -75,6 +108,7 @@
         the partition holding the new data.
       </p>
 
+
       <p class="p">
         Because this Impala performance feature relies on HDFS infrastructure, it only applies to Impala tables
         that use HDFS data files. HDFS caching for Impala does not apply to HBase tables, S3 tables,
@@ -82,19 +116,24 @@
         or Isilon tables.
       </p>
 
+
     </div>
-  </article>
 
-  <article class="topic concept nested1" aria-labelledby="ariaid-title3" id="hdfs_caching__hdfs_caching_prereqs">
+  </div>
+
+
+  <div class="topic concept nested1" aria-labelledby="ariaid-title3" id="hdfs_caching_prereqs">
 
     <h2 class="title topictitle2" id="ariaid-title3">Setting Up HDFS Caching for Impala</h2>
 
+
     <div class="body conbody">
 
       <p class="p">
         To use HDFS caching with Impala, first set up that feature for your <span class="keyword"></span> cluster:
       </p>
 
+
       <ul class="ul">
         <li class="li">
           <p class="p">
@@ -103,8 +142,10 @@
           host, although you can cache a block across multiple hosts by increasing the replication factor.
           
           </p>
+
         </li>
 
+
         <li class="li">
           <div class="p">
           Issue <span class="keyword cmdname">hdfs cacheadmin</span> commands to set up one or more cache pools, owned by the same
@@ -114,9 +155,12 @@
           For details about the <span class="keyword cmdname">hdfs cacheadmin</span> command, see
           <span class="xref">the documentation for your Apache Hadoop distribution</span>.
           </div>
+
         </li>
+
       </ul>
 
+
       <p class="p">
         Once HDFS caching is enabled and one or more pools are available, see
         <a class="xref" href="impala_perf_hdfs_caching.html#hdfs_caching_ddl">Enabling HDFS Caching for Impala Tables and Partitions</a> for how to choose which Impala data to load
@@ -125,13 +169,17 @@
         such as <code class="ph codeph">CREATE TABLE ... CACHED IN <var class="keyword varname">pool</var></code> or <code class="ph codeph">ALTER TABLE ... SET
         CACHED IN <var class="keyword varname">pool</var></code>.
       </p>
+
     </div>
-  </article>
 
-  <article class="topic concept nested1" aria-labelledby="ariaid-title4" id="hdfs_caching__hdfs_caching_ddl">
+  </div>
+
+
+  <div class="topic concept nested1" aria-labelledby="ariaid-title4" id="hdfs_caching_ddl">
 
     <h2 class="title topictitle2" id="ariaid-title4">Enabling HDFS Caching for Impala Tables and Partitions</h2>
 
+
     <div class="body conbody">
 
       <p class="p">
@@ -140,6 +188,7 @@
         are analyzed by different reports or ad hoc queries.
       </p>
 
+
       <p class="p">
         In your SQL statements, you specify logical divisions such as tables and partitions to be cached. Impala
         translates these requests into HDFS-level directives that apply to particular directories and files. For
@@ -147,6 +196,7 @@
         <code class="ph codeph">YEAR</code>, you could choose to cache all or part of the data as follows:
       </p>
 
+
       <p class="p">
         In <span class="keyword">Impala 2.2</span> and higher, the optional <code class="ph codeph">WITH REPLICATION</code> clause
         for <code class="ph codeph">CREATE TABLE</code> and <code class="ph codeph">ALTER TABLE</code> lets you specify
@@ -157,6 +207,7 @@
         Where practical, specify a value greater than or equal to the HDFS block replication factor.
       </p>
 
+
 <pre class="pre codeblock"><code>-- Cache the entire table (all partitions).
 alter table census set cached in '<var class="keyword varname">pool_name</var>';
 
@@ -193,10 +244,12 @@ show table stats census;
         <strong class="ph b">CREATE TABLE considerations:</strong>
       </p>
 
+
       <p class="p">
         The HDFS caching feature affects the Impala <code class="ph codeph">CREATE TABLE</code> statement as follows:
       </p>
 
+
       <ul class="ul">
         <li class="li">
         <p class="p">
@@ -207,16 +260,20 @@ show table stats census;
           including any partitions added later. The <var class="keyword varname">pool_name</var> is a pool that you previously set
           up with the <span class="keyword cmdname">hdfs cacheadmin</span> command.
         </p>
+
         </li>
 
+
         <li class="li">
         <p class="p">
           Once a table is designated for HDFS caching through the <code class="ph codeph">CREATE TABLE</code> statement, if new
           partitions are added later through <code class="ph codeph">ALTER TABLE ... ADD PARTITION</code> statements, the data in
           those new partitions is automatically cached in the same pool.
         </p>
+
         </li>
 
+
         <li class="li">
         <p class="p">
           If you want to perform repetitive queries on a subset of data from a large table, and it is not practical
@@ -225,31 +282,35 @@ show table stats census;
           AS SELECT ... WHERE ...</code>. When you are finished with generating reports from this subset of data,
           drop the table and both the data files and the data cached in RAM are automatically deleted.
         </p>
+
         </li>
+
       </ul>
 
+
       <p class="p">
         See <a class="xref" href="impala_create_table.html#create_table">CREATE TABLE Statement</a> for the full syntax.
       </p>
 
+
       <p class="p">
         <strong class="ph b">Other memory considerations:</strong>
       </p>
 
+
       <p class="p">
         Certain DDL operations, such as <code class="ph codeph">ALTER TABLE ... SET LOCATION</code>, are blocked while the
         underlying HDFS directories contain cached files. You must uncache the files first, before changing the
         location, dropping the table, and so on.
       </p>
 
-      <p class="p">
-        When data is requested to be pinned in memory, that process happens in the background without blocking
-        access to the data while the caching is in progress. Loading the data from disk could take some time.
-        Impala reads each HDFS data block from memory if it has been pinned already, or from disk if it has not
-        been pinned yet. When files are added to a table or partition whose contents are cached, Impala
-        automatically detects those changes and performs a <code class="ph codeph">REFRESH</code> automatically once the relevant
-        data is cached.
-      </p>
+
+      <p class="p"> When data is requested to be pinned in memory, that process happens in
+        the background without blocking access to the data while the caching is
+        in progress. Loading the data from disk could take some time. Impala
+        reads each HDFS data block from memory if it has been pinned already, or
+        from disk if it has not been pinned yet.</p>
+
 
       <p class="p">
         The amount of data that you can pin on each node through the HDFS caching mechanism is subject to a quota
@@ -257,16 +318,21 @@ show table stats census;
         memory, check that its size does not exceed this quota.
       </p>
 
-      <div class="note note note_note"><span class="note__title notetitle">Note:</span> 
+
+      <div class="note note"><span class="notetitle">Note:</span>
         Because the HDFS cache consists of combined memory from all the DataNodes in the cluster, cached tables or
         partitions can be bigger than the amount of HDFS cache memory on any single host.
       </div>
+
     </div>
-  </article>
 
-  <article class="topic concept nested1" aria-labelledby="ariaid-title5" id="hdfs_caching__hdfs_caching_etl">
+  </div>
+
+
+  <div class="topic concept nested1" aria-labelledby="ariaid-title5" id="hdfs_caching_etl">
 
     <h2 class="title topictitle2" id="ariaid-title5">Loading and Removing Data with HDFS Caching Enabled</h2>
+
   
 
     <div class="body conbody">
@@ -276,10 +342,12 @@ show table stats census;
         through statements such as <code class="ph codeph">INSERT</code> and <code class="ph codeph">DROP TABLE</code>.
       </p>
 
+
       <p class="p">
         <strong class="ph b">Inserting or loading data:</strong>
       </p>
 
+
       <ul class="ul">
         <li class="li">
           When Impala performs an <code class="ph codeph"><a class="xref" href="impala_insert.html#insert">INSERT</a></code> or
@@ -288,30 +356,36 @@ show table stats census;
           automatically.
         </li>
 
+
         <li class="li">
           If you perform an <code class="ph codeph">INSERT</code> or <code class="ph codeph">LOAD DATA</code> through Hive, as always, Impala
           only recognizes the new data files after a <code class="ph codeph">REFRESH <var class="keyword varname">table_name</var></code>
           statement in Impala.
         </li>
 
+
         <li class="li">
           If the cache pool is entirely full, or becomes full before all the requested data can be cached, the
           Impala DDL statement returns an error. This is to avoid situations where only some of the requested data
           could be cached.
         </li>
 
+
         <li class="li">
           When HDFS caching is enabled for a table or partition, new data files are cached automatically when they
           are added to the appropriate directory in HDFS, without the need for a <code class="ph codeph">REFRESH</code> statement
           in Impala. Impala automatically performs a <code class="ph codeph">REFRESH</code> once the new data is loaded into the
           HDFS cache.
         </li>
+
       </ul>
 
+
       <p class="p">
         <strong class="ph b">Dropping tables, partitions, or cache pools:</strong>
       </p>
 
+
       <p class="p">
         The HDFS caching feature interacts with the Impala
         <code class="ph codeph"><a class="xref" href="impala_drop_table.html#drop_table">DROP TABLE</a></code> and
@@ -319,6 +393,7 @@ show table stats census;
         statements as follows:
       </p>
 
+
       <ul class="ul">
         <li class="li">
           When you issue a <code class="ph codeph">DROP TABLE</code> for a table that is entirely cached, or has some partitions
@@ -326,17 +401,20 @@ show table stats census;
           table are removed from the HDFS cache system.
         </li>
 
+
         <li class="li">
           The same applies to <code class="ph codeph">ALTER TABLE ... DROP PARTITION</code>. The operation succeeds and any cache
           directives are removed.
         </li>
 
+
         <li class="li">
           As always, the underlying data files are removed if the dropped table is an internal table, or the
           dropped partition is in its default location underneath an internal table. The data files are left alone
           if the dropped table is an external table, or if the dropped partition is in a non-default location.
         </li>
 
+
         <li class="li">
           If you designated the data files as cached through the <span class="keyword cmdname">hdfs cacheadmin</span> command, and
           the data files are left behind as described in the previous item, the data files remain cached. Impala
@@ -345,23 +423,28 @@ show table stats census;
           to the same files; the directives all have unique IDs and owners so that the system can tell them apart.
         </li>
 
+
         <li class="li">
           If you drop an HDFS cache pool through the <span class="keyword cmdname">hdfs cacheadmin</span> command, all the Impala
           data files are preserved, just no longer cached. After a subsequent <code class="ph codeph">REFRESH</code>,
           <code class="ph codeph">SHOW TABLE STATS</code> reports 0 bytes cached for each associated Impala table or partition.
         </li>
+
       </ul>
 
+
       <p class="p">
         <strong class="ph b">Relocating a table or partition:</strong>
       </p>
 
+
       <p class="p">
         The HDFS caching feature interacts with the Impala
         <code class="ph codeph"><a class="xref" href="impala_alter_table.html#alter_table">ALTER TABLE ... SET LOCATION</a></code>
         statement as follows:
       </p>
 
+
       <ul class="ul">
         <li class="li">
           If you have designated a table or partition as cached through the <code class="ph codeph">CREATE TABLE</code> or
@@ -370,24 +453,31 @@ show table stats census;
           TABLE ... SET UNCACHED</code> statement for the table or partition first. Otherwise, Impala would lose
           track of some cached data files and have no way to uncache them later.
         </li>
+
       </ul>
+
     </div>
-  </article>
 
-  <article class="topic concept nested1" aria-labelledby="ariaid-title6" id="hdfs_caching__hdfs_caching_admin">
+  </div>
+
+
+  <div class="topic concept nested1" aria-labelledby="ariaid-title6" id="hdfs_caching_admin">
 
     <h2 class="title topictitle2" id="ariaid-title6">Administration for HDFS Caching with Impala</h2>
 
+
     <div class="body conbody">
 
       <p class="p">
         Here are the guidelines and steps to check or change the status of HDFS caching for Impala data:
       </p>
 
+
       <p class="p">
         <strong class="ph b">hdfs cacheadmin command:</strong>
       </p>
 
+
       <ul class="ul">
         <li class="li">
           If you drop a cache pool with the <span class="keyword cmdname">hdfs cacheadmin</span> command, Impala queries against the
@@ -396,6 +486,7 @@ show table stats census;
           tables and partitions.
         </li>
 
+
         <li class="li">
           You might use <span class="keyword cmdname">hdfs cacheadmin</span> to get a list of existing cache pools, or detailed
           information about the pools, as follows:
@@ -416,12 +507,15 @@ Found 122 entries
 ...
 </code></pre>
         </li>
+
       </ul>
 
+
       <p class="p">
         <strong class="ph b">Impala SHOW statement:</strong>
       </p>
 
+
       <ul class="ul">
         <li class="li">
           For each table or partition, the <code class="ph codeph">SHOW TABLE STATS</code> or <code class="ph codeph">SHOW PARTITIONS</code>
@@ -431,22 +525,27 @@ Found 122 entries
           indicates that the cache request has been submitted but the data has not been entirely loaded into memory
           yet. See <a class="xref" href="impala_show.html#show">SHOW Statement</a> for details.
         </li>
+
       </ul>
 
+
       <p class="p">
         <strong class="ph b">Impala memory limits:</strong>
       </p>
 
+
       <p class="p">
         The Impala HDFS caching feature interacts with the Impala memory limits as follows:
       </p>
 
+
       <ul class="ul">
         <li class="li">
           The maximum size of each HDFS cache pool is specified externally to Impala, through the <span class="keyword cmdname">hdfs
           cacheadmin</span> command.
         </li>
 
+
         <li class="li">
           All the memory used for HDFS caching is separate from the <span class="keyword cmdname">impalad</span> daemon address space
           and does not count towards the limits of the <code class="ph codeph">--mem_limit</code> startup option,
@@ -454,20 +553,26 @@ Found 122 entries
           the Linux <code class="ph codeph">cgroups</code> mechanism.
         </li>
 
+
         <li class="li">
           Because accessing HDFS cached data avoids a memory-to-memory copy operation, queries involving cached
           data require less memory on the Impala side than the equivalent queries on uncached data. In addition to
           any performance benefits in a single-user environment, the reduced memory helps to improve scalability
           under high-concurrency workloads.
         </li>
+
       </ul>
+
     </div>
-  </article>
 
-  <article class="topic concept nested1" aria-labelledby="ariaid-title7" id="hdfs_caching__hdfs_caching_performance">
+  </div>
+
+
+  <div class="topic concept nested1" aria-labelledby="ariaid-title7" id="hdfs_caching_performance">
 
     <h2 class="title topictitle2" id="ariaid-title7">Performance Considerations for HDFS Caching with Impala</h2>
 
+
     <div class="body conbody">
 
       <p class="p">
@@ -477,6 +582,7 @@ Found 122 entries
         you specify HDFS paths.
       </p>
 
+
       <p class="p">
         When you examine the output of the <span class="keyword cmdname">impala-shell</span> <span class="keyword cmdname">SUMMARY</span> command, or
         look in the metrics report for the <span class="keyword cmdname">impalad</span> daemon, you see how many bytes are read from
@@ -485,6 +591,7 @@ Found 122 entries
         <code class="ph codeph">BytesReadDataNodeCache</code> values are identical.
       </p>
 
+
 <pre class="pre codeblock"><code>HDFS_SCAN_NODE (id=0):(Total: 11s114ms, non-child: 11s114ms, % non-child: 100.00%)
         - AverageHdfsReadThreadConcurrency: 0.00
         - AverageScannerThreadConcurrency: 32.75
@@ -504,6 +611,7 @@ Found 122 entries
         the workload outstrips the capacity of the Linux OS cache.
       </p>
 
+
       <p class="p">
         Due to a limitation of HDFS, zero-copy reads are not supported with
         encryption. Where practical, avoid HDFS caching for Impala data
@@ -511,16 +619,19 @@ Found 122 entries
         path during query execution, which might cause some performance overhead.
       </p>
 
+
       <p class="p">
         <strong class="ph b">SELECT considerations:</strong>
       </p>
 
+
       <p class="p">
         The Impala HDFS caching feature interacts with the
         <code class="ph codeph"><a class="xref" href="impala_select.html#select">SELECT</a></code> statement and query performance as
         follows:
       </p>
 
+
       <ul class="ul">
         <li class="li">
           Impala automatically reads from memory any data that has been designated as cached and actually loaded
@@ -531,6 +642,7 @@ Found 122 entries
           mechanism, which still results in memory-to-memory copying of cached data.
         </li>
 
+
         <li class="li">
           For small amounts of data, the query speedup might not be noticeable in terms of wall clock time. The
           performance might be roughly the same with HDFS caching turned on or off, due to recently used data being
@@ -540,16 +652,19 @@ Found 122 entries
               Data volumes (for all queries running concurrently) that exceed the size of the Linux OS cache.
             </li>
 
+
             <li class="li">
               A busy cluster running many concurrent queries, where the reduction in memory-to-memory copying and
               overall memory usage during queries results in greater scalability and throughput.
             </li>
 
+
             <li class="li">
               Thus, to really exercise and benchmark this feature in a development environment, you might need to
               simulate realistic workloads and concurrent queries that match your production environment.
             </li>
 
+
             <li class="li">
               One way to simulate a heavy workload on a lightly loaded system is to flush the OS buffer cache (on
               each DataNode) between iterations of queries against the same tables or partitions:
@@ -557,22 +672,31 @@ Found 122 entries
 $ echo 1 &gt; /proc/sys/vm/drop_caches
 </code></pre>
             </li>
+
           </ul>
+
         </li>
 
+
         <li class="li">
           Impala queries take advantage of HDFS cached data regardless of whether the cache directive was issued by
           Impala or externally through the <span class="keyword cmdname">hdfs cacheadmin</span> command, for example for an external
           table where the cached data files might be accessed by several different Hadoop components.
         </li>
 
+
         <li class="li">
           If your query returns a large result set, the time reported for the query could be dominated by the time
           needed to print the results on the screen. To measure the time for the underlying query processing, query
           the <code class="ph codeph">COUNT()</code> of the big result set, which does all the same processing but only prints a
           single line to the screen.
         </li>
+
       </ul>
+
     </div>
-  </article>
-</article></main></body></html>
\ No newline at end of file
+
+  </div>
+
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/impala/blob/b4ad38a9/docs/build/html/topics/impala_perf_joins.html
----------------------------------------------------------------------
diff --git a/docs/build/html/topics/impala_perf_joins.html b/docs/build/html/topics/impala_perf_joins.html
index 59bf2d1..68f3040 100644
--- a/docs/build/html/topics/impala_perf_joins.html
+++ b/docs/build/html/topics/impala_perf_joins.html
@@ -1,8 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html
-  SYSTEM "about:legacy-compat">
-<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2018"><meta name="DC.rights.owner" content="(C) Copyright 2018"><meta name="DC.Type" content="concept"><meta name="DC.Relation" scheme="URI" content="../topics/impala_performance.html"><meta name="prodname" content="Impala"><meta name="prodname" content="Impala"><meta name="prodname" content="Impala"><meta name="prodname" content="Impala"><meta name="prodname" content="Impala"><meta name="version" content="Impala 2.12x"><meta name="version" content="Impala 2.12x"><meta name="version" content="Impala 2.12x"><meta name="version" content="Impala 2.12x"><meta name="version" content="Impala 2.12x"><meta name="DC.Format" content="XHTML"><meta name="DC.Identifier" content="perf_joins"><link rel="stylesheet" type="text/css" href="../commonltr.css"><title>Performance Considerations for Join Queries</title></head><body id="perf_joins"><ma
 in role="main"><article role="article" aria-labelledby="ariaid-title1">
+  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<meta name="copyright" content="(C) Copyright 2018" />
+<meta name="DC.rights.owner" content="(C) Copyright 2018" />
+<meta name="DC.Type" content="concept" />
+<meta name="DC.Title" content="Performance Considerations for Join Queries" />
+<meta name="DC.Relation" scheme="URI" content="../topics/impala_performance.html" />
+<meta name="prodname" content="Impala" />
+<meta name="prodname" content="Impala" />
+<meta name="prodname" content="Impala" />
+<meta name="prodname" content="Impala" />
+<meta name="prodname" content="Impala" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="DC.Format" content="XHTML" />
+<meta name="DC.Identifier" content="perf_joins" />
+<link rel="stylesheet" type="text/css" href="../commonltr.css" />
+<title>Performance Considerations for Join Queries</title>
+</head>
+<body id="perf_joins">
+
 
   <h1 class="title topictitle1" id="ariaid-title1">Performance Considerations for Join Queries</h1>
+
   
   
 
@@ -16,6 +42,7 @@
       practical time and has to be cancelled.
     </p>
 
+
     <p class="p">
       The simplest technique for tuning an Impala join query is to collect statistics on each table involved in the
       join using the <code class="ph codeph"><a class="xref" href="impala_compute_stats.html#compute_stats">COMPUTE STATS</a></code>
@@ -27,6 +54,7 @@
       and so on.
     </p>
 
+
     <p class="p">
       If statistics are not available for all the tables in the join query, or if Impala chooses a join order that
       is not the most efficient, you can override the automatic join order optimization by specifying the
@@ -35,6 +63,7 @@
       joins are processed.
     </p>
 
+
     <p class="p">
       When you use the <code class="ph codeph">STRAIGHT_JOIN</code> technique, you must order the tables in the join query
       manually instead of relying on the Impala optimizer. The optimizer uses sophisticated techniques to estimate
@@ -42,12 +71,14 @@
       start with, and then experiment to fine-tune the order:
     </p>
 
+
     <ul class="ul">
       <li class="li">
         Specify the largest table first. This table is read from disk by each Impala node and so its size is not
         significant in terms of memory usage during the query.
       </li>
 
+
       <li class="li">
         Next, specify the smallest table. The contents of the second, third, and so on tables are all transmitted
         across the network. You want to minimize the size of the result set from each subsequent stage of the join
@@ -55,16 +86,20 @@
         even as subsequent larger tables are processed.
       </li>
 
+
       <li class="li">
         Join the next smallest table, then the next smallest, and so on.
       </li>
 
-      <li class="li">
+    </ul>
+
+
+      <p class="p">
         For example, if you had tables <code class="ph codeph">BIG</code>, <code class="ph codeph">MEDIUM</code>, <code class="ph codeph">SMALL</code>, and
         <code class="ph codeph">TINY</code>, the logical join order to try would be <code class="ph codeph">BIG</code>, <code class="ph codeph">TINY</code>,
         <code class="ph codeph">SMALL</code>, <code class="ph codeph">MEDIUM</code>.
-      </li>
-    </ul>
+      </p>
+
 
     <p class="p">
       The terms <span class="q">"largest"</span> and <span class="q">"smallest"</span> refers to the size of the intermediate result set based on the
@@ -75,6 +110,7 @@
       is smaller in the context of this query.
     </p>
 
+
     <p class="p">
       The Impala query planner chooses between different techniques for performing join queries, depending on the
       absolute and relative sizes of the tables. <strong class="ph b">Broadcast joins</strong> are the default, where the right-hand table
@@ -86,17 +122,25 @@
       tables in the join, gathered by the <code class="ph codeph">COMPUTE STATS</code> statement.
     </p>
 
+
     <p class="p">
       To see which join strategy is used for a particular query, issue an <code class="ph codeph">EXPLAIN</code> statement for
       the query. If you find that a query uses a broadcast join when you know through benchmarking that a
       partitioned join would be more efficient, or vice versa, add a hint to the query to specify the precise join
       mechanism to use. See <a class="xref" href="impala_hints.html#hints">Optimizer Hints</a> for details.
     </p>
+
   </div>
 
-  <nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_performance.html">Tuning Impala for Performance</a></div></div></nav><article class="topic concept nested1" aria-labelledby="ariaid-title2" id="perf_joins__joins_no_stats">
+
+  <div class="related-links">
+<div class="familylinks">
+<div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_performance.html">Tuning Impala for Performance</a></div>
+</div>
+</div><div class="topic concept nested1" aria-labelledby="ariaid-title2" id="joins_no_stats">
 
     <h2 class="title topictitle2" id="ariaid-title2">How Joins Are Processed when Statistics Are Unavailable</h2>
+
   
 
     <div class="body conbody">
@@ -107,13 +151,17 @@
         order, in descending order of cost based on overall size and cardinality. Tables without statistics are
         treated as zero-size, that is, they are always placed on the right side of the join order.
       </p>
+
     </div>
-  </article>
 
-  <article class="topic concept nested1" aria-labelledby="ariaid-title3" id="perf_joins__straight_join">
+  </div>
+
+
+  <div class="topic concept nested1" aria-labelledby="ariaid-title3" id="straight_join">
 
     <h2 class="title topictitle2" id="ariaid-title3">Overriding Join Reordering with STRAIGHT_JOIN</h2>
 
+
     <div class="body conbody">
 
       <p class="p">
@@ -122,19 +170,21 @@
         immediately after the <code class="ph codeph">SELECT</code> and any <code class="ph codeph">DISTINCT</code> or <code class="ph codeph">ALL</code>
         keywords. The <code class="ph codeph">STRAIGHT_JOIN</code> keyword turns off
         the reordering of join clauses that Impala does internally, and produces a plan that relies on the join
-        clauses being ordered optimally in the query text. In this case, rewrite the query so that the largest
-        table is on the left, followed by the next largest, and so on until the smallest table is on the right.
+        clauses being ordered optimally in the query text.
       </p>
 
-      <div class="note note note_note"><span class="note__title notetitle">Note:</span> 
+
+      <div class="note note"><span class="notetitle">Note:</span>
         <p class="p">
         The <code class="ph codeph">STRAIGHT_JOIN</code> hint affects the join order of table references in the query
         block containing the hint. It does not affect the join order of nested queries, such as views,
         inline views, or <code class="ph codeph">WHERE</code>-clause subqueries. To use this hint for performance
         tuning of complex queries, apply the hint to all query blocks that need a fixed join order.
       </p>
+
       </div>
 
+
       <p class="p">
         In this example, the subselect from the <code class="ph codeph">BIG</code> table produces a very small result set, but
         the table might still be treated as if it were the biggest and placed first in the join order. Using
@@ -142,6 +192,7 @@
         keeping it as the rightmost table in the join order.
       </p>
 
+
 <pre class="pre codeblock"><code>select straight_join x from medium join small join (select * from big where c1 &lt; 10) as big
   where medium.id = small.id and small.id = big.id;
 
@@ -149,12 +200,15 @@
 select distinct straight_join x from medium join small join (select * from big where c1 &lt; 10) as big
   where medium.id = small.id and small.id = big.id;</code></pre>
     </div>
-  </article>
 
-  <article class="topic concept nested1" aria-labelledby="ariaid-title4" id="perf_joins__perf_joins_examples">
+  </div>
+
+
+  <div class="topic concept nested1" aria-labelledby="ariaid-title4" id="perf_joins_examples">
 
     <h2 class="title topictitle2" id="ariaid-title4">Examples of Join Order Optimization</h2>
 
+
     <div class="body conbody">
 
       <p class="p">
@@ -164,8 +218,10 @@ select distinct straight_join x from medium join small join (select * from big w
         table only contains a subset of columns from the others.
       </p>
 
+
       <p class="p"></p>
 
+
 <pre class="pre codeblock"><code>[localhost:21000] &gt; create table big stored as parquet as select * from raw_data;
 +----------------------------+
 | summary                    |
@@ -208,6 +264,7 @@ Returned 1 row(s) in 6.32s</code></pre>
         mechanism that sends a complete copy of one of the tables to each node.
       </p>
 
+
 <pre class="pre codeblock"><code>[localhost:21000] &gt; set explain_level=verbose;
 EXPLAIN_LEVEL set to verbose
 [localhost:21000] &gt; explain select count(*) from big join medium where big.id = medium.id;
@@ -286,6 +343,7 @@ Returned 64 row(s) in 0.04s</code></pre>
         per table:
       </p>
 
+
 <pre class="pre codeblock"><code>[localhost:21000] &gt; compute stats small;
 +-----------------------------------------+
 | summary                                 |
@@ -314,6 +372,7 @@ Returned 1 row(s) in 165.44s</code></pre>
         <code class="ph codeph">PARTITIONED</code> join strategies based on the overall sizes and number of rows in the table:
       </p>
 
+
 <pre class="pre codeblock"><code>[localhost:21000] &gt; explain select count(*) from medium join big where big.id = medium.id;
 Query: explain select count(*) from medium join big where big.id = medium.id
 +-----------------------------------------------------------+
@@ -464,6 +523,7 @@ Returned 64 row(s) in 0.03s</code></pre>
         <code class="ph codeph">VAL</code> column containing duplicate values:
       </p>
 
+
 <pre class="pre codeblock"><code>[localhost:21000] &gt; select count(*) from big join small on (big.id = small.id);
 Query: select count(*) from big join small on (big.id = small.id)
 +----------+
@@ -496,13 +556,17 @@ Returned 1 row(s) in 108.85s
 +------------+
 Returned 1 row(s) in 100.76s</code></pre>
 
-      <div class="note note note_note"><span class="note__title notetitle">Note:</span> 
+      <div class="note note"><span class="notetitle">Note:</span>
         When examining the performance of join queries and the effectiveness of the join order optimization, make
         sure the query involves enough data and cluster resources to see a difference depending on the query plan.
         For example, a single data file of just a few megabytes will reside in a single HDFS block and be processed
         on a single node. Likewise, if you use a single-node or two-node cluster, there might not be much
         difference in efficiency for the broadcast or partitioned join strategies.
       </div>
+
     </div>
-  </article>
-</article></main></body></html>
\ No newline at end of file
+
+  </div>
+
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/impala/blob/b4ad38a9/docs/build/html/topics/impala_perf_resources.html
----------------------------------------------------------------------
diff --git a/docs/build/html/topics/impala_perf_resources.html b/docs/build/html/topics/impala_perf_resources.html
index 4640a70..9dba8de 100644
--- a/docs/build/html/topics/impala_perf_resources.html
+++ b/docs/build/html/topics/impala_perf_resources.html
@@ -1,8 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html
-  SYSTEM "about:legacy-compat">
-<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2018"><meta name="DC.rights.owner" content="(C) Copyright 2018"><meta name="DC.Type" content="concept"><meta name="DC.Relation" scheme="URI" content="../topics/impala_performance.html"><meta name="prodname" content="Impala"><meta name="prodname" content="Impala"><meta name="version" content="Impala 2.12x"><meta name="version" content="Impala 2.12x"><meta name="DC.Format" content="XHTML"><meta name="DC.Identifier" content="mem_limits"><link rel="stylesheet" type="text/css" href="../commonltr.css"><title>Controlling Impala Resource Usage</title></head><body id="mem_limits"><main role="main"><article role="article" aria-labelledby="ariaid-title1">
+  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<meta name="copyright" content="(C) Copyright 2018" />
+<meta name="DC.rights.owner" content="(C) Copyright 2018" />
+<meta name="DC.Type" content="concept" />
+<meta name="DC.Title" content="Controlling Impala Resource Usage" />
+<meta name="DC.Relation" scheme="URI" content="../topics/impala_performance.html" />
+<meta name="prodname" content="Impala" />
+<meta name="prodname" content="Impala" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="DC.Format" content="XHTML" />
+<meta name="DC.Identifier" content="mem_limits" />
+<link rel="stylesheet" type="text/css" href="../commonltr.css" />
+<title>Controlling Impala Resource Usage</title>
+</head>
+<body id="mem_limits">
+
 
   <h1 class="title topictitle1" id="ariaid-title1">Controlling Impala Resource Usage</h1>
+
   
   
 
@@ -16,6 +36,7 @@
       cluster:
     </p>
 
+
     <ul class="ul">
       <li class="li">
         The Impala admission control feature uses a fast, distributed mechanism to hold back queries that exceed
@@ -26,6 +47,7 @@
         See <a class="xref" href="impala_admission.html#admission_control">Admission Control and Query Queuing</a> for details.
       </li>
 
+
       <li class="li">
         <p class="p">
           You can restrict the amount of memory Impala reserves during query execution by specifying the
@@ -34,14 +56,25 @@
           memory that is directly consumed by queries; Impala reserves additional memory at startup, for example to
           hold cached metadata.
         </p>
+
       </li>
 
+
       <li class="li">
         <p class="p">
           For production deployments, implement resource isolation using your cluster management
           tool.
         </p>
+
       </li>
+
     </ul>
+
   </div>
-<nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_performance.html">Tuning Impala for Performance</a></div></div></nav></article></main></body></html>
\ No newline at end of file
+
+<div class="related-links">
+<div class="familylinks">
+<div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_performance.html">Tuning Impala for Performance</a></div>
+</div>
+</div></body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/impala/blob/b4ad38a9/docs/build/html/topics/impala_perf_skew.html
----------------------------------------------------------------------
diff --git a/docs/build/html/topics/impala_perf_skew.html b/docs/build/html/topics/impala_perf_skew.html
index b05a9ba..4c00434 100644
--- a/docs/build/html/topics/impala_perf_skew.html
+++ b/docs/build/html/topics/impala_perf_skew.html
@@ -1,8 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html
-  SYSTEM "about:legacy-compat">
-<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2018"><meta name="DC.rights.owner" content="(C) Copyright 2018"><meta name="DC.Type" content="concept"><meta name="DC.Relation" scheme="URI" content="../topics/impala_performance.html"><meta name="prodname" content="Impala"><meta name="prodname" content="Impala"><meta name="version" content="Impala 2.12x"><meta name="version" content="Impala 2.12x"><meta name="DC.Format" content="XHTML"><meta name="DC.Identifier" content="perf_skew"><link rel="stylesheet" type="text/css" href="../commonltr.css"><title>Detecting and Correcting HDFS Block Skew Conditions</title></head><body id="perf_skew"><main role="main"><article role="article" aria-labelledby="ariaid-title1">
+  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<meta name="copyright" content="(C) Copyright 2018" />
+<meta name="DC.rights.owner" content="(C) Copyright 2018" />
+<meta name="DC.Type" content="concept" />
+<meta name="DC.Title" content="Detecting and Correcting HDFS Block Skew Conditions" />
+<meta name="DC.Relation" scheme="URI" content="../topics/impala_performance.html" />
+<meta name="prodname" content="Impala" />
+<meta name="prodname" content="Impala" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="version" content="Impala 3.0.x" />
+<meta name="DC.Format" content="XHTML" />
+<meta name="DC.Identifier" content="perf_skew" />
+<link rel="stylesheet" type="text/css" href="../commonltr.css" />
+<title>Detecting and Correcting HDFS Block Skew Conditions</title>
+</head>
+<body id="perf_skew">
+
 
   <h1 class="title topictitle1" id="ariaid-title1">Detecting and Correcting HDFS Block Skew Conditions</h1>
+
   
   
 
@@ -15,6 +35,7 @@
       Therefore, one of the first steps in performance tuning for Impala is to detect and correct such conditions.
     </p>
 
+
     <p class="p">
       The main cause of uneven performance that you can correct within Impala is <dfn class="term">skew</dfn> in the number of
       HDFS data blocks processed by each host, where some hosts process substantially more data blocks than others.
@@ -25,11 +46,13 @@
       the way that Impala chooses the host to process each data block.
     </p>
 
+
     <p class="p">
       The most convenient way to detect block skew, or slow-host issues in general, is to examine the <span class="q">"executive
       summary"</span> information from the query profile after running a query:
     </p>
 
+
     <ul class="ul">
       <li class="li">
         <p class="p">
@@ -38,16 +61,21 @@
           switch to issuing the <code class="ph codeph">PROFILE</code> command, which displays the summary information followed
           by a detailed performance analysis.
         </p>
+
       </li>
 
+
       <li class="li">
         <p class="p">
           In the Impala debug web UI, click on the <span class="ph uicontrol">Profile</span> link associated with the query after it is
           complete. The executive summary information is displayed early in the profile output.
         </p>
+
       </li>
+
     </ul>
 
+
     <p class="p">
       For each phase of the query, you see an <span class="ph uicontrol">Avg Time</span> and a <span class="ph uicontrol">Max Time</span>
       value, along with <span class="ph uicontrol">#Hosts</span> indicating how many hosts are involved in that query phase.
@@ -56,12 +84,14 @@
       taking multiple seconds rather than milliseconds or microseconds.
     </p>
 
+
     <p class="p">
       If you detect that some hosts take longer than others, first rule out non-Impala causes. One reason that some
       hosts could be slower than others is if those hosts have less capacity than the others, or if they are
       substantially busier due to unevenly distributed non-Impala workloads:
     </p>
 
+
     <ul class="ul">
       <li class="li">
         <p class="p">
@@ -69,16 +99,21 @@
           from including some underpowered hosts in the cluster will likely be outweighed by poor or uneven
           performance, and the time spent diagnosing performance issues.
         </p>
+
       </li>
 
+
       <li class="li">
         <p class="p">
           If non-Impala workloads cause slowdowns on some hosts but not others, use the appropriate load-balancing
           techniques for the non-Impala components to smooth out the load across the cluster.
         </p>
+
       </li>
+
     </ul>
 
+
     <p class="p">
       If the hosts on your cluster are evenly powered and evenly loaded, examine the detailed profile output to
       determine which host is taking longer than others for the query phase in question. Examine how many bytes are
@@ -86,6 +121,7 @@
       the network.
     </p>
 
+
     <p class="p">
       The most common symptom is a higher number of bytes read on one host than others, due to one host being
       requested to process a higher number of HDFS data blocks. This condition is more likely to occur when the
@@ -95,10 +131,12 @@
       distributed.
     </p>
 
+
     <p class="p">
       Possible solutions in this case include:
     </p>
 
+
     <ul class="ul">
       <li class="li">
         <p class="p">
@@ -109,8 +147,10 @@
           that process lower volumes than that could experience inconsistent performance that smooths out as
           queries become more data-intensive.
         </p>
+
       </li>
 
+
       <li class="li">
         <p class="p">
           If the query processes only a few large blocks, so that many nodes sit idle and cannot help to
@@ -120,8 +160,10 @@
           components. In Impala 2.0 and later, the default Parquet block size is 256 MB, reduced from 1 GB, to
           improve parallelism for common cluster sizes and data volumes.
         </p>
+
       </li>
 
+
       <li class="li">
         <p class="p">
           Reduce the amount of compression applied to the data. For text data files, the highest degree of
@@ -133,7 +175,16 @@
           the query option <code class="ph codeph">COMPRESSION_CODEC=NONE</code> enabled, the data is still typically compact due
           to the encoding schemes used by Parquet, independent of the final compression step.
         </p>
+
       </li>
+
     </ul>
+
   </div>
-<nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_performance.html">Tuning Impala for Performance</a></div></div></nav></article></main></body></html>
\ No newline at end of file
+
+<div class="related-links">
+<div class="familylinks">
+<div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_performance.html">Tuning Impala for Performance</a></div>
+</div>
+</div></body>
+</html>
\ No newline at end of file