Puppet Class: cloudera::cdh

Inherits:
cloudera::params
Defined in:
manifests/cdh.pp

Overview

Class: cloudera::cdh

This class handles installing the Cloudera Distribution, including Apache Hadoop.

Parameters:

ensure

Ensure if present or absent. Default: present

autoupgrade

Upgrade package automatically, if there is a newer version. Default: false

service_ensure

Ensure if service is running or stopped. Default: running

Actions:

Installs Bigtop, Hadoop, Hue-plugins, HBase, Hive, Oozie, Pig, ZooKeeper, and Flume-NG.

Requires:

Nothing.

Sample Usage:

class { 'cloudera::cdh': }

Authors:

Mike Arnold <mike@razorsedge.org>

Copyright © 2013 Mike Arnold, unless otherwise noted.

Copyright (c) 2011, Cloudera, Inc. All Rights Reserved.

Cloudera, Inc. licenses this file to you under the Apache License,
Version 2.0 (the "License"). You may not use this file except in
compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

This software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for
the specific language governing permissions and limitations under the
License.

Parameters:

  • ensure (Any) (defaults to: $cloudera::params::ensure)
  • autoupgrade (Any) (defaults to: $cloudera::params::safe_autoupgrade)
  • service_ensure (Any) (defaults to: $cloudera::params::service_ensure)


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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# File 'manifests/cdh.pp', line 53

class cloudera::cdh (
  $ensure         = $cloudera::params::ensure,
  $autoupgrade    = $cloudera::params::safe_autoupgrade,
  $service_ensure = $cloudera::params::service_ensure
) inherits cloudera::params {
  # Validate our booleans
  validate_bool($autoupgrade)

  anchor { 'cloudera::cdh::begin': }
  anchor { 'cloudera::cdh::end': }

  Class {
    require => Anchor['cloudera::cdh::begin'],
    before  => Anchor['cloudera::cdh::end'],
  }

  class { 'cloudera::cdh::bigtop':
#    ensure      => $ensure,
#    autoupgrade => $autoupgrade,
  }
  class { 'cloudera::cdh::hadoop':
#    ensure      => $ensure,
#    autoupgrade => $autoupgrade,
  }
#  class { 'cloudera::cdh::hue':
##    ensure      => $ensure,
##    autoupgrade => $autoupgrade,
#  }
  class { 'cloudera::cdh::hue::plugins':
#    ensure      => $ensure,
#    autoupgrade => $autoupgrade,
  }
  class { 'cloudera::cdh::hbase':
#    ensure      => $ensure,
#    autoupgrade => $autoupgrade,
  }
  class { 'cloudera::cdh::hive':
#    ensure      => $ensure,
#    autoupgrade => $autoupgrade,
  }
  class { 'cloudera::cdh::oozie':
#    ensure         => $ensure,
#    autoupgrade    => $autoupgrade,
#    service_ensure => $service_ensure,
  }
  class { 'cloudera::cdh::pig':
#    ensure      => $ensure,
#    autoupgrade => $autoupgrade,
  }
  class { 'cloudera::cdh::zookeeper':
#    ensure      => $ensure,
#    autoupgrade => $autoupgrade,
  }
  class { 'cloudera::cdh::flume':
#    ensure      => $ensure,
#    autoupgrade => $autoupgrade,
  }
}