Puppet Class: cdh::hadoop::worker

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

Overview

Class cdh::hadoop::worker

Wrapper class for Hadoop Worker node services:

  • DataNode

  • NodeManager (YARN)

This class will attempt to create and manage the required local worker directories defined in the $datanode_mounts array. You must make sure that the paths defined in $datanode_mounts are formatted and mounted properly yourself; This puppet module does not manage them.



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'modules/cdh/manifests/hadoop/worker.pp', line 12

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

    cdh::hadoop::worker::paths { $::cdh::hadoop::datanode_mounts: }

    class { 'cdh::hadoop::datanode':
        require => Cdh::Hadoop::Worker::Paths[$::cdh::hadoop::datanode_mounts],
    }

    # YARN uses NodeManager.
    class { 'cdh::hadoop::nodemanager':
        require => Cdh::Hadoop::Worker::Paths[$::cdh::hadoop::datanode_mounts],
    }
}