name 'hadoop-pseudo-distributed-hdp'
description 'Hadoop pseudo distributed mode configurations for HDP 1'

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

#env_run_lists()

default_attributes(
  'grid' => {
    'gridctl' => {
      'env' => {
        #'DOMAIN' => '',
        'HADOOP_ARTIFACT_TYPE' => 'package',
        'HADOOP_DISTRIBUTION' => 'hdp',
        #'HADOOP_HOME' => '/grid/usr/hadoop',
      }
    }
  },
  'hdp' => {
    'version' => '1.3.2',
    #'version' => '1.2.3.1',
    'yum_repo' => {
      'update' => true
    }
  },
  'hadoop' => {
    'install_flavor' => 'hdp',
    'hdp' => {
      #'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(
)

