Puppet Class: cdh::hadoop::datanode

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

Overview

Class cdh::hadoop::datanode

Installs and starts up a Hadoop DataNode.



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/cdh/manifests/hadoop/datanode.pp', line 4

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

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

    # install datanode daemon package
    service { 'hadoop-hdfs-datanode':
        ensure     => 'running',
        enable     => true,
        hasstatus  => true,
        hasrestart => true,
        alias      => 'datanode',
        require    => Package['hadoop-hdfs-datanode'],
    }
}