Puppet Class: cdh::impala

Inherited by:
cdh::impala::master
cdh::impala::worker
Defined in:
modules/cdh/manifests/impala.pp

Overview

Class impala

Installs impala-shell client And includes cdh:impala::config to put hdfs-site.xml, core-site.xml and hdfs-site.xml in /etc/impala/conf.

All other impala classes inherit from this one.

Please make sure you set

dfs_datanode_hdfs_blocks_metadata_enabled => true,

when you include cdh::hadoop. If you don't, impala won't work!

Parameters

$master_host - hostname where impala master daemons are running. Default: 127.0.0.1

Parameters:

  • master_host (Any) (defaults to: '127.0.0.1')


16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'modules/cdh/manifests/impala.pp', line 16

class cdh::impala(
    $master_host = '127.0.0.1',
) {
    Class['hive']   -> Class['impala']

    package { ['impala', 'impala-shell']:
        ensure => 'installed',
    }

    class { 'cdh::impala::config':
        require => Package['impala'],
    }

    $config_directory = $cdh::impala::config::config_directory

    # These are here instead of in cdh::impala::config because they
    # are symlinks, and don't need to override anything.
    file { "${config_directory}/core-site.xml":
        ensure => 'link',
        target => "${cdh::hadoop::config_directory}/core-site.xml",
    }

    file { "${config_directory}/hive-site.xml":
        ensure => 'link',
        target => "${cdh::hive::config_directory}/hive-site.xml",
    }
}