Puppet Class: profile::hive::metastore

Defined in:
modules/profile/manifests/hive/metastore.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class profile::hive::metastore

Sets up Hive Metastore service

Parameters:

  • monitoring_enabled (Boolean) (defaults to: lookup('profile::hive::metastore::monitoring_enabled', {'default_value' => false}))
  • ferm_srange (String) (defaults to: lookup('profile::hive::metastore::ferm_srange', {'default_value' => '$DOMAIN_NETWORKS'}))


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'modules/profile/manifests/hive/metastore.pp', line 6

class profile::hive::metastore(
    Boolean $monitoring_enabled = lookup('profile::hive::metastore::monitoring_enabled', {'default_value' => false}),
    String $ferm_srange         = lookup('profile::hive::metastore::ferm_srange', {'default_value' => '$DOMAIN_NETWORKS'}),
) {

    require ::profile::hive::client

    # Setup hive-metastore
    class { '::bigtop::hive::metastore': }

    ferm::service{ 'hive_metastore':
        proto  => 'tcp',
        port   => '9083',
        srange => $ferm_srange,
    }

    require ::profile::hive::monitoring::metastore

    # Include icinga alerts if production realm.
    if $monitoring_enabled {

        nrpe::monitor_service { 'hive-metasore':
            description   => 'Hive Metastore',
            nrpe_command  => '/usr/lib/nagios/plugins/check_procs -c 1:1 -C java -a "org.apache.hadoop.hive.metastore.HiveMetaStore"',
            contact_group => 'admins,team-data-platform',
            require       => Class['bigtop::hive::metastore'],
            notes_url     => 'https://wikitech.wikimedia.org/wiki/Analytics/Systems/Cluster/Hive',
        }
    }
}