Puppet Class: profile::hive::server

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

Overview

SPDX-License-Identifier: Apache-2.0

Class profile::hive::server

Sets up Hive Server2 (no metastore, needs another profile).

Parameters:

  • monitoring_enabled (Boolean) (defaults to: lookup('profile::hive::server::monitoring_enabled', {default_value => false}))
  • ferm_srange (String) (defaults to: lookup('profile::hive::server::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
# File 'modules/profile/manifests/hive/server.pp', line 6

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

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

    ferm::service{ 'hive_server':
        proto  => 'tcp',
        port   => '10000',
        srange => $ferm_srange,
    }

    include ::profile::hive::monitoring::server

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

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