name 'hadoop-pseudo-distributed-cdh5'
description 'Hadoop pseudo distributed mode configurations for CDH5 YARN'

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

#env_run_lists()

default_attributes(
  'grid' => {
    'gridctl' => {
      'env' => {
        #'DOMAIN' => '',
        'HADOOP_ARTIFACT_TYPE' => 'package',
        'HADOOP_DISTRIBUTION' => 'cdh',
        #'HADOOP_HOME' => '/grid/usr/hadoop',
      }
    }
  },
  'cdh' => {
    'version' => '5.0.0',
    'yum_repo' => {
      'update' => true
    }
  },
  'hadoop' => {
    'install_flavor' => 'cdh',
    'cdh' => {
      'resource_negotiator_framework' => 'YARN'
    },
    'with_hadoop_lzo' => false,
    'HADOOP_CLASSPATH' => '',
    'HADOOP_USER_CLASSPATH_FIRST' => 'false',
    # for 1.x only
    'taskcontroller' => {
      'min.user.id' => '500'
    }
  }
)

#override_attributes()

