OSDN Git Service

bug fix.
[metasearch/grid-chef-repo.git] / roles / hadoop-pleiades-with-security.rb
index e2c2203..93be329 100644 (file)
@@ -2,8 +2,10 @@ name 'hadoop-pleiades-with-security'
 description 'Pleiades Hadoop cluster node with security'
 
 run_list(
+  'role[node_commons]',
   'role[nameservice-client-grid]',
-  'role[hadoop]'
+  'role[hadoop]',
+  'role[jce_policy]'
 )
 
 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
@@ -22,7 +24,8 @@ hadoop_attributes = {
   'this.realm' => 'GRID.EXAMPLE.COM',
   'this.keytab.dir' => "#{grid_etc_root}/keytabs/#{cluster_name}",
   'this.namenode.fqdn' => '${this.cluster.name}-nn.${this.domain}',
-  'fs.checkpoint.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/checkpoint,/export/home/${user.name}/var/lib/checkpoint",
+  'fs.checkpoint.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/checkpoint",
+  #'fs.checkpoint.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/checkpoint,/export/home/${user.name}/var/lib/checkpoint",
   'hadoop.http.authentication.kerberos.principal' => 'HTTP/${this.fqdn}@${this.realm}',
   'hadoop.proxyuser' => {
     'oozie' => {
@@ -36,9 +39,11 @@ hadoop_attributes = {
   },
   # hdfs-site.xml
   'this.secondary.namenode.fqdn' => '${this.cluster.name}-cn.${this.domain}',
-  'dfs.name.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/name,/export/home/${user.name}/var/lib/name",
+  'dfs.name.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/name",
+  #'dfs.name.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/name,/export/home/${user.name}/var/lib/name",
   'dfs.datanode.kerberos.principal' => 'hdfs/_HOST@${this.realm}',
-  'dfs.replication' => '3',
+  'dfs.replication' => '2',
+  #'dfs.replication' => '3',
   # mapred-site.xml
   'this.jobtracker.fqdn' => '${this.cluster.name}-jt.${this.domain}',
   'this.jobhistory.fqdn' => '${this.cluster.name}-jt.${this.domain}',
@@ -46,7 +51,9 @@ hadoop_attributes = {
   'mapreduce.tasktracker.kerberos.principal' => 'mapred/_HOST@${this.realm}'
 }
 
-default_attributes(
+#default_attributes
+
+override_attributes(
   'grid' => {
     'etc_root' => grid_etc_root,
     'vol_root' => grid_vol_root,
@@ -55,4 +62,3 @@ default_attributes(
   'hadoop' => hadoop_attributes
 )
 
-#override_attributes "apache2" => { "max_children" => "50" }