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
|
# File 'manifests/cdh5/hadoop.pp', line 16
class cloudera::cdh5::hadoop {
anchor { 'cloudera::cdh5::hadoop::begin': }
anchor { 'cloudera::cdh5::hadoop::end': }
class { 'cloudera::cdh5::hadoop::client':
# ensure => $ensure,
# autoupgrade => $autoupgrade,
require => Anchor['cloudera::cdh5::hadoop::begin'],
before => Anchor['cloudera::cdh5::hadoop::end'],
}
package { 'hadoop':
ensure => 'present',
tag => 'cloudera-cdh5',
}
package { 'hadoop-hdfs':
ensure => 'present',
tag => 'cloudera-cdh5',
}
package { 'hadoop-httpfs':
ensure => 'present',
tag => 'cloudera-cdh5',
notify => Exec['service hadoop-httpfs stop'],
}
package { 'hadoop-mapreduce':
ensure => 'present',
tag => 'cloudera-cdh5',
}
package { 'hadoop-yarn':
ensure => 'present',
tag => 'cloudera-cdh5',
}
package { 'hadoop-0.20-mapreduce':
ensure => 'present',
tag => 'cloudera-cdh5',
}
exec { 'service hadoop-httpfs stop':
path => '/bin:/usr/bin:/sbin:/usr/sbin',
refreshonly => true,
}
service { 'hadoop-httpfs':
# ensure => 'stopped',
enable => false,
hasstatus => true,
require => Package['hadoop-httpfs'],
}
}
|