OSDN Git Service

add .envrc
[metasearch/grid-chef-repo.git] / roles / test-cdh5-on-localhost.rb
1 name 'test-cdh5-on-localhost'
2 description 'Testing Cloudera\'s Distribution, including Apache Hadoop 5.x (YARN) on local machine'
3
4 run_list(
5   'role[test-cdh-on-localhost]',
6   'role[java7]'
7 )
8
9 #env_run_lists()
10
11 default_attributes(
12   'grid' => {
13     'gridctl' => {
14       'env' => {
15         #'DOMAIN' => '',
16         #'HADOOP_ARTIFACT_TYPE' => 'package',
17         'HADOOP_DISTRIBUTION' => 'cdh5',
18         #'HADOOP_HOME' => '',
19       }
20     }
21   },
22   'cdh' => {
23     'version' => '5.0.0',
24     'yum_repo' => {
25       'with_gplextras' => false
26     }
27   },
28   'hadoop' => {
29     'install_flavor' => 'cdh',
30     'cdh' => {
31       #'alternatives' => {
32       #  'hadoop-conf' => {
33       #    'path' => '/etc/hadoop/conf.pleiades',
34       #    'priority' => '40'
35       #  }
36       #}
37       'resource_negotiator_framework' => 'YARN',  # CDH4,5 only.
38     },
39     'with_hadoop_lzo' => true,
40     'hadoop.http.authentication.type' => 'simple',
41     'HADOOP_CLASSPATH' => '',
42     'HADOOP_USER_CLASSPATH_FIRST' => 'false',
43 =begin
44     'metrics2' => {
45       'namenode.sink.ganglia.servers' => 'localhost:8649',
46       'datanode.sink.ganglia.servers' => 'localhost:8649',
47       # for 2.0.x only
48       'resourcemanager.sink.ganglia.servers' => 'localhost:8649',
49       'nodemanager.sink.ganglia.servers' => 'localhost:8649',
50     },
51 =end
52     # for 2.0.x only
53     'container-executor' => {
54       'min.user.id' => '500'
55     },
56     'yarn.nodemanager.linux-container-executor.resources-handler.class' \
57       => 'org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler',  # N/A on the CDH4
58     # for 1.x only
59     'taskcontroller' => {
60       'min.user.id' => '500'
61     },
62   },
63   'hbase' => {
64     'version' => '0.94.7'
65   },
66   'pig' => {
67     'version' => '0.11.1'
68     #'version' => '0.11.0'
69   }
70 )
71
72 #override_attributes()
73