Puppet Class: hbase::params

Inherited by:
hbase
Defined in:
manifests/params.pp

Overview

Class hbase::params

This class is meant to be called from hbase It sets variables according to platform



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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'manifests/params.pp', line 6

class hbase::params {
  case "${::osfamily}-${::operatingsystem}" {
    /RedHat-Fedora/: {
      $packages = {
        master => 'hbase',
        regionserver => 'hbase',
        thriftserver => 'hbase',
        restserver => 'hbase',
        zookeeper => 'hbase',
        frontend => 'hbase',
      }
      $daemons = {
        master => 'hbase-master',
        regionserver => 'hbase-regionserver',
        thriftserver => 'hbase-thrift',
        restserver => 'hbase-rest',
        zookeeper => 'hbase-zookeeper',
      }
      $properties = {
        'hbase.tmp.dir' => '/var/lib/hbase/cache',
      }
    }
    /Debian|RedHat/: {
      $packages = {
        master => 'hbase-master',
        regionserver => 'hbase-regionserver',
        thriftserver => 'hbase-thrift',
        restserver => 'hbase-rest',
        frontend => 'hbase',
      }
      $daemons = {
        master => 'hbase-master',
        regionserver => 'hbase-regionserver',
        thriftserver => 'hbase-thrift',
        restserver => 'hbase-rest',
      }
      $properties = {
        'hbase.tmp.dir' => '/var/lib/hbase',
      }
    }
    default: {
      fail("${::operatingsystem} (${::osfamily}) not supported")
    }
  }

  $confdir = "${::osfamily}-${::operatingsystem}" ? {
    /RedHat-Fedora/ => '/etc/hbase',
    /Debian|RedHat/ => '/etc/hbase/conf',
  }

  $configdir_hadoop = "${::osfamily}-${::operatingsystem}" ? {
    /RedHat-Fedora/ => '/etc/hadoop',
    /Debian|RedHat/ => '/etc/hadoop/conf',
  }

  $service_provider = $::osfamily ? {
    /RedHat/ => 'redhat',
    /Debian/ => 'debian',
    default  => undef,
  }

  $descriptions = {
    'hbase.coprocessor.region.classes' =>  'for enabling full security and ACLs',
    'hbase.rpc.protection' => 'auth-conf, private (10% performance penalty)',
    'hbase.security.authentication' => 'simple, kerberos',
    'hbase.tmp.dir' => 'temporary directory',
    'hbase.zookeeper.property.clientPort' => 'internal ZooKeeper: the port at which the clients will connect',
    'hbase.zookeeper.property.dataDir' => 'internal ZooKeeer: the directory where the snapshot is stored',
  }

  $external_zookeeper = "${::osfamily}-${::operatingsystem}" ? {
    /RedHat-Fedora/ => false,
    /Debian|RedHat/ => true,
  }

  $perform = false

  $hbase_homedir = "${::osfamily}-${::operatingsystem}" ? {
    /RedHat-Fedora/ => '/var/lib/hbase',
    /Debian|RedHat/ => '/var/lib/hbase',
  }

  $https_keystore = '/etc/security/server.keystore'
}