OSDN Git Service

add SPNEGO configurations for YARN and JobHistoryServer web consoles.
[metasearch/grid-chef-repo.git] / roles / hadoop-pseudo-distributed-cdh.rb
diff --git a/roles/hadoop-pseudo-distributed-cdh.rb b/roles/hadoop-pseudo-distributed-cdh.rb
new file mode 100644 (file)
index 0000000..60ef5e2
--- /dev/null
@@ -0,0 +1,52 @@
+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(
+)
+