Installing Impala with Cloudera Manager

To use Cloudera Impala, you must install CDH and Impala (Hive is required, and gets installed with CDH). Install CDH and Impala on the nodes that will run Impala. Use only one of the following ways to deploy CDH and Impala:

  • Installation Path A - Automated Installation by Cloudera Manager: Installs Cloudera Manager, CDH, and Impala as part of the process of using the pre-packaged installer. This method will install all the necessary software to run Cloudera Impala, will handle setting up the Hive metastore using the default PostgreSQL database, and will start the Impala Service along with the other CDH and Cloudera Manager services. Within the installation wizard you can install Impala using either packages or parcels.
  • Installation Path B - Installation Using Your Own Method: Installs Cloudera Manager, CDH, and Impala, specifying each package individually using package management tools. If you follow this method, then you will prepare for the installation by installing the Oracle JDK, creating databases, and determining how you will download packages. Once you have completed these prerequisites, you will install CDH and Cloudera Manager Server using packages. Next you will configure a database for Cloudera Manager and then install Cloudera Manager Agents. Finally you will start the Cloudera Manager Server and Agents and then configure services using the Cloudera Manager Admin console.
  Note: Impala 1.0 is supported with CDH4.1 and CDH4.2.

Once you have installed Impala, you can coordinate its use of cluster resources in relation to MapReduce needs for the same resources. See Setting up a Multi-tenant Cluster for Impala and MapReduce below, as well as Resource Management in the Cloudera Manager User Guide.

  Note: If you are running CDH 4.1, and the Bypass Hive Metastore Server option is enabled, you must add the following to the Impala Safety Valve for hive-site.xml, replacing <hive_metastore_server_host> with the name of your Hive metastore server host:
  <name> hive.metastore.local</name>
  <name> hive.metastore.uris</name>
Otherwise, Impala queries will fail.

Configuring Hive Table Stats

Configuring Hive Table Stats is highly recommended when using Impala. It allows Impala to make optimizations that can result in significant (over 10x) performance improvements for some joins. If these are not available, Impala will still function, but at lower performance.

To configure Hive Table Stats:

  • Set up a MySQL server for transient Stats data.

    Note that there is no PostgreSQL or Oracle option. This database will be heavily loaded, so it should not be installed on the same host as anything critical such as the Hive Metastore Server, the database hosting the Hive Metastore, or Cloudera Manager Server. When collecting stats on a large table and/or in a large cluster, this host may become slow or unresponsive.

    For instructions on setting up MySQL, see Installing and Configuring a MySQL Database

  • Add the following into the HiveServer2 Safety Valve for hive-site.xml:
  • Restart HiveServer2

Collect stats on a particular table by running the following from a beeline client connected to your HiveServer2:

analyze table MY_TABLE compute statistics;