Data Loading and Querying Examples.................................................................................................................................61
Advanced Tutorials.............................................................................................................................................63
Attaching an External Partitioned Table to an HDFS Directory Structure............................................................................63
Switching Back and Forth Between Impala and Hive...........................................................................................................65
Cross Joins and Cartesian Products with the CROSS JOIN Operator....................................................................................66
Dealing with Parquet Files with Unknown Schema............................................................................................67
Download the Data Files into HDFS.....................................................................................................................................68
Create Database and Tables................................................................................................................................................68
Examine Physical and Logical Schema.................................................................................................................................69
Analyze Data........................................................................................................................................................................70
Impala Administration...........................................................................................79
Admission Control and Query Queuing..............................................................................................................79
Overview of Impala Admission Control................................................................................................................................80
Concurrent Queries and Admission Control.........................................................................................................................80
Memory Limits and Admission Control................................................................................................................................80
How Impala Admission Control Relates to Other Resource Management Tools..................................................................81
How Impala Schedules and Enforces Limits on Concurrent Queries....................................................................................81
How Admission Control works with Impala Clients (JDBC, ODBC, HiveServer2)..................................................................82
SQL and Schema Considerations for Admission Control......................................................................................................82
Configuring Admission Control............................................................................................................................................82
Guidelines for Using Admission Control...............................................................................................................................87
Resource Management for Impala.....................................................................................................................87
How Resource Limits Are Enforced.......................................................................................................................................87
impala-shell Query Options for Resource Management......................................................................................................88
Limitations of Resource Management for Impala...............................................................................................................88
How to Configure Resource Management for Impala........................................................................................88
Creating Static Service Pools................................................................................................................................................88
Using Admission Control......................................................................................................................................................89
Setting Per-query Memory Limits........................................................................................................................................89
Creating Dynamic Resource Pools........................................................................................................................................90
Impala Resource Management Example.............................................................................................................................92
Setting Timeout Periods for Daemons, Queries, and Sessions...........................................................................93
Increasing the Statestore Timeout.......................................................................................................................................94
Setting the Idle Query and Idle Session Timeouts for impalad.............................................................................................94
Setting Timeout and Retries for Thrift Connections to the Backend Client..........................................................................95
Cancelling a Query...............................................................................................................................................................95
Using Impala through a Proxy for High Availability............................................................................................95
Overview of Proxy Usage and Load Balancing for Impala...................................................................................................95
Choosing the Load-Balancing Algorithm.............................................................................................................................96
Special Proxy Considerations for Clusters Using Kerberos...................................................................................................97
Example of Configuring HAProxy Load Balancer for Impala................................................................................................98
Managing Disk Space for Impala Data..............................................................................................................100