name 'hadoop-pseudo-distributed-hdp2'
description 'Hadoop pseudo distributed mode configurations for HDP 2'

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' => '2.0.6.0',
    #'version' => '2.0.5.0',
    #'version' => '2.0.4.0',
    #'version' => '2.0.0.2',
    #'version' => '2.0.0.2',
    'yum_repo' => {
      'update' => true
    }
  },
  'hadoop' => {
    'install_flavor' => 'hdp',
    'hdp' => {
    },
    'with_hadoop_lzo' => true,
    'HADOOP_CLASSPATH' => '',
    'HADOOP_USER_CLASSPATH_FIRST' => 'false',
    # 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',
  }
)

#override_attributes()

