name 'hadoop-pseudo-distributed-cdh4'
description 'Hadoop pseudo distributed mode configurations for CDH4 MRv1'

run_list(
  'role[node_commons]',
  'role[yum-cdh]',
  'role[hadoop-pseudo-distributed]',
  #'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' => '4.4.0',
    'yum_repo' => {
      'update' => true,
      'with_gplextras' => true
    }
  },
  'hadoop' => {
    'install_flavor' => 'cdh',
    'cdh' => {
      'resource_negotiator_framework' => 'MRv1'
    },
    'with_hadoop_lzo' => true,
    'HADOOP_CLASSPATH' => '',
    'HADOOP_USER_CLASSPATH_FIRST' => 'false',
    # for 1.x only
    'taskcontroller' => {
      'min.user.id' => '500'
    }
  }
)

#override_attributes()

