Puppet Class: hadoop::historyserver::service
- Defined in:
- manifests/historyserver/service.pp
Overview
Class hadoop::historyserver::service
Namenode should be launched first if it is colocated with historyserver (just cosmetics, some initial exceptions in logs) (tested on hadoop 2.4.1).
It works OK automatically when using from parent hadoop::service class.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'manifests/historyserver/service.pp', line 8
class hadoop::historyserver::service {
# history server requires working HDFS
if $hadoop::hdfs_deployed {
service { $hadoop::daemons['historyserver']:
ensure => 'running',
enable => true,
subscribe => [File["${hadoop::confdir}/core-site.xml"], File["${hadoop::confdir}/yarn-site.xml"]],
}
# namenode should be launched first if it is colocated with historyserver
# (just cosmetics, some initial exceptions in logs) (tested on hadoop 2.4.1)
if $hadoop::daemon_namenode {
include ::hadoop::namenode::service
Class['hadoop::namenode::service'] -> Class['hadoop::historyserver::service']
}
} else {
service { $hadoop::daemons['historyserver']:
ensure => 'stopped',
enable => true,
}
}
}
|