Puppet Class: bigtop::hadoop::journalnode
- Defined in:
- modules/bigtop/manifests/hadoop/journalnode.pp
Overview
SPDX-License-Identifier: Apache-2.0
Class bigtop::hadoop::journalnode
4 5 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 |
# File 'modules/bigtop/manifests/hadoop/journalnode.pp', line 4
class bigtop::hadoop::journalnode {
Class['bigtop::hadoop'] -> Class['bigtop::hadoop::journalnode']
# install jobtracker daemon package
package { 'hadoop-hdfs-journalnode':
ensure => 'installed',
require => User['hdfs'],
}
# Ensure that the journanode edits directory has the correct permissions.
file { $::bigtop::hadoop::dfs_journalnode_edits_dir:
ensure => 'directory',
owner => 'hdfs',
group => 'hdfs',
mode => '0755',
require => Package['hadoop-hdfs-journalnode'],
}
# install datanode daemon package
service { 'hadoop-hdfs-journalnode':
ensure => 'running',
enable => true,
hasstatus => true,
hasrestart => true,
alias => 'journalnode',
require => File[$::bigtop::hadoop::dfs_journalnode_edits_dir],
}
}
|