OSDN Git Service

add quick setup role for CDH 4 (MRv1).
authorwhitestar <whitestar@gaea.test>
Mon, 4 Nov 2013 08:41:43 +0000 (17:41 +0900)
committerwhitestar <whitestar@gaea.test>
Mon, 4 Nov 2013 08:41:43 +0000 (17:41 +0900)
cookbooks/cdh/recipes/yum_repo.rb
nodes/localhost-cdh4.json
roles/hadoop-pseudo-distributed-cdh4.rb
roles/hadoop-pseudo-distributed-cdh5.rb

index 13c44de..63e0afb 100644 (file)
@@ -28,7 +28,7 @@ def get_repo_urls(cdh_version, node_platform, node_platform_version, kernel_mach
   normalized_kernel_machine = nil
   case cdh_version.split(/[.u]/)[0]
   when '5'
-    normalized_kernel_machine = 'x86_64'
+    normalized_kernel_machine = 'x86_64'  # CDH 5 provides only 64-bit packages.
     platform_ctx = "#{platform}/#{platform_major_version}/#{normalized_kernel_machine}"
   when '4'
     normalized_kernel_machine = (platform_major_version == '5') \
@@ -165,7 +165,7 @@ if node['cdh']['yum_repo']['only_for_mirroring'] \
     package cdh_repo_pkg do
       source downloaded_repo_pkg
       options '--nogpgcheck'
-      flush_cache :after
+      #flush_cache [:after]
       not_if "rpm -qi #{cdh_repo_pkg}" unless node['cdh']['yum_repo']['update']
       action :install
     end
index a1e2a68..10b6d5b 100644 (file)
@@ -1,5 +1,5 @@
 {
   "run_list": [
-    "role[test-cdh4-on-localhost]"
+    "role[hadoop-pseudo-distributed-cdh4]"
   ]
 }
index 897d97b..4899044 100644 (file)
@@ -24,12 +24,14 @@ default_attributes(
   'cdh' => {
     'version' => '4.4.0',
     'yum_repo' => {
-      'update' => true
+      'update' => true,
+      'with_gplextras' => true
     }
   },
   'hadoop' => {
     'install_flavor' => 'cdh',
     'cdh' => {
+      'resource_negotiator_framework' => 'MRv1'
     },
     'with_hadoop_lzo' => true,
     'HADOOP_CLASSPATH' => '',
index bb6a867..b948499 100644 (file)
@@ -31,6 +31,7 @@ default_attributes(
   'hadoop' => {
     'install_flavor' => 'cdh',
     'cdh' => {
+      'resource_negotiator_framework' => 'YARN'
     },
     'with_hadoop_lzo' => false,
     'HADOOP_CLASSPATH' => '',