Puppet Class: cdh::hadoop::journalnode

Defined in:
modules/cdh/manifests/hadoop/journalnode.pp

Overview

Class cdh::hadoop::journalnode



3
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
# File 'modules/cdh/manifests/hadoop/journalnode.pp', line 3

class cdh::hadoop::journalnode {
    Class['cdh::hadoop'] -> Class['cdh::hadoop::journalnode']

    # install jobtracker daemon package
    package { 'hadoop-hdfs-journalnode':
        ensure => 'installed'
    }

    # Ensure that the journanode edits directory has the correct permissions.
    file { $::cdh::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[$::cdh::hadoop::dfs_journalnode_edits_dir],
    }
}