name 'test-cdh4-mr1-on-localhost'
description 'Testing Cloudera\'s Distribution, including Apache Hadoop 4.x (MRv1) on local machine'

run_list(
  'role[test-cdh4-on-localhost]',
)

#env_run_lists()

default_attributes(
  'cdh' => {
    'version' => '4.3.0',
    #'version' => '4.2.0',
    'yum_repo' => {
      'with_gplextras' => true
    }
  },
  'hadoop' => {
    'install_flavor' => 'cdh',
    'cdh' => {
      #'alternatives' => {
      #  'hadoop-conf' => {
      #    'path' => '/etc/hadoop/conf.pleiades',
      #    'priority' => '40'
      #  }
      #}
      'resource_negotiator_framework' => 'MRv1',  # CDH4 only.
    },
    'with_hadoop_lzo' => true,
    'hadoop.http.authentication.type' => 'simple',
    'HADOOP_CLASSPATH' => '',
    'HADOOP_USER_CLASSPATH_FIRST' => 'false',
=begin
    'metrics2' => {
      'namenode.sink.ganglia.servers' => 'localhost:8649',
      'datanode.sink.ganglia.servers' => 'localhost:8649',
      # for 2.0.x only
      'resourcemanager.sink.ganglia.servers' => 'localhost:8649',
      'nodemanager.sink.ganglia.servers' => 'localhost:8649',
    },
=end
    # for 2.0.x only
    'container-executor' => {
      'min.user.id' => '500'
    },
    #'yarn.nodemanager.linux-container-executor.resources-handler.class' \
    #  => 'org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler',  # N/A on the CDH4
    # for 1.x only
    'taskcontroller' => {
      'min.user.id' => '500'
    },
  },
  'hbase' => {
    'version' => '0.94.7'
  },
  'pig' => {
    'version' => '0.11.1'
    #'version' => '0.11.0'
  }
)

#override_attributes()

