name 'hadoop-pseudo-distributed-cdh'
description 'Hadoop pseudo distributed mode configurations for CDH'

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
    }
  },
  'hadoop' => {
    'install_flavor' => 'cdh',
    'cdh' => {
      #'alternatives' => {
      #  'hadoop-conf' => {
      #    'path' => '/etc/hadoop/conf.pleiades',
      #    'priority' => '40'
      #  }
      #}
    },
    'with_hadoop_lzo' => true,
    'HADOOP_CLASSPATH' => '',
    'HADOOP_USER_CLASSPATH_FIRST' => 'false',
    # for 1.x only
    'taskcontroller' => {
      'min.user.id' => '500'
    }
  }
)

override_attributes(
)

