name 'hadoop-pseudo-distributed-ah2'
description 'Hadoop pseudo distributed mode configurations for Apache Hadoop 2'

run_list(
  'role[node_commons]',
  'role[hadoop-pseudo-distributed]',
  #'role[grid-ops-utils]'
)

#env_run_lists()

default_attributes(
  'grid' => {
    'gridctl' => {
      'env' => {
        #'DOMAIN' => '',
        #'HADOOP_ARTIFACT_TYPE' => 'tarball',
        'HADOOP_DISTRIBUTION' => 'apache',
        #'HADOOP_HOME' => '/grid/usr/hadoop',
      }
    }
  },
  'hadoop' => {
    'version' => '2.2.0',
    #'version' => '2.1.1-beta',
    #'version' => '2.0.6-alpha',
    'hadoop.http.authentication.type' => 'simple',
    # for 2.0.x only >>
    #'yarn.nodemanager.admin-env' => 'MALLOC_ARENA_MAX=$MALLOC_ARENA_MAX',
    'yarn.nodemanager.admin-env' => 'MALLOC_ARENA_MAX=$MALLOC_ARENA_MAX,LD_LIBRARY_PATH=${HADOOP_COMMON_HOME}/lib/native',
    'yarn.nodemanager.linux-container-executor.resources-handler.class' \
      => 'org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler',
  },
)

#override_attributes()

