OSDN Git Service

add .envrc
[metasearch/grid-chef-repo.git] / roles / test-cdh-on-localhost.rb
index a53e777..3cece58 100644 (file)
@@ -3,22 +3,31 @@ description 'Testing Cloudera\'s Distribution, including Apache Hadoop on local
 
 run_list(
   'role[node_commons]',
-  'role[chef_utils]',
+  #'role[chef_utils]',
   'role[nameservice-client]',
-  #'role[ganglia-gmond-ucast-localhost]',
-  #'role[ganglia-gmetad-localhost]',
-  #'role[ganglia-web]',
+  'role[ganglia-all-in-one-localhost]',
   #'role[nagios]',
   'role[yum-cdh]',
   'role[hadoop-pseudo-distributed-with-security]',
   #'role[zookeeper-pseudo-replicated-with-security]',
   #'role[hbase-pseudo-distributed-with-security]',
-  ##'role[pig]'
+  #'role[pig]',
+  #'role[grid-ops-utils]'
 )
 
-#env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
+#env_run_lists()
 
 default_attributes(
+  'grid' => {
+    'gridctl' => {
+      'env' => {
+        #'DOMAIN' => '',
+        #'HADOOP_ARTIFACT_TYPE' => 'package',
+        'HADOOP_DISTRIBUTION' => 'cdh3',
+        #'HADOOP_HOME' => '',
+      }
+    }
+  },
   'openldap' => {
     'client' => {
       'URI' => 'ldap://localhost/',
@@ -154,6 +163,8 @@ default_attributes(
       #}
       'resource_negotiator_framework' => 'MRv1',  # CDH4 only.
     },
+    'with_hadoop_lzo' => true,
+    'hadoop.http.authentication.type' => 'simple',
     'HADOOP_CLASSPATH' => '',
     'HADOOP_USER_CLASSPATH_FIRST' => 'false',
 =begin
@@ -175,7 +186,7 @@ default_attributes(
       'min.user.id' => '500'
     },
     #'yarn.nodemanager.linux-container-executor.resources-handler.class' \
-    #  => 'org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler',
+    #  => 'org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler',  # N/A on the CDH4
     # for 1.x only
     'taskcontroller' => {
       'min.user.id' => '500'