name 'test-cdh5-on-localhost'
description 'Testing Cloudera\'s Distribution, including Apache Hadoop 5.x (YARN) on local machine'

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

#env_run_lists()

default_attributes(
  'grid' => {
    'gridctl' => {
      'env' => {
        #'DOMAIN' => '',
        #'HADOOP_ARTIFACT_TYPE' => 'package',
        'HADOOP_DISTRIBUTION' => 'cdh5',
        #'HADOOP_HOME' => '',
      }
    }
  },
  'cdh' => {
    'version' => '5.0.0',
    'yum_repo' => {
      'with_gplextras' => false
    }
  },
  'hadoop' => {
    'install_flavor' => 'cdh',
    'cdh' => {
      #'alternatives' => {
      #  'hadoop-conf' => {
      #    'path' => '/etc/hadoop/conf.pleiades',
      #    'priority' => '40'
      #  }
      #}
      'resource_negotiator_framework' => 'YARN',  # CDH4,5 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()

