1 name 'hadoop-pleiades-with-security'
2 description 'Pleiades Hadoop cluster node with security'
6 'role[nameservice-client-grid]',
11 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
13 grid_etc_root = '/grid/etc'
14 grid_vol_root = '/grid/vol'
15 cluster_name = 'pleiades'
17 'with_security' => true,
19 'HADOOP_CLASSPATH' => '/usr/share/java/commons-daemon.jar',
20 'HADOOP_USER_CLASSPATH_FIRST' => true,
22 'this.cluster.name' => cluster_name,
23 'this.domain' => 'grid.example.com',
24 'this.realm' => 'GRID.EXAMPLE.COM',
25 'this.keytab.dir' => "#{grid_etc_root}/keytabs/#{cluster_name}",
26 'this.namenode.fqdn' => '${this.cluster.name}-nn.${this.domain}',
27 'fs.checkpoint.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/checkpoint",
28 #'fs.checkpoint.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/checkpoint,/export/home/${user.name}/var/lib/checkpoint",
29 'hadoop.http.authentication.kerberos.principal' => 'HTTP/${this.fqdn}@${this.realm}',
30 'hadoop.proxyuser' => {
32 'hosts' => '${this.cluster.name}-wf.${this.domain},wf00.${this.domain},wf01.${this.domain}',
33 'groups' => 'hadoopers'
36 'hosts' => '${this.cluster.name}-pxy.${this.domain},pxy00.${this.domain},pxy01.${this.domain}',
37 'groups' => 'hadoopers'
41 'this.secondary.namenode.fqdn' => '${this.cluster.name}-cn.${this.domain}',
42 'dfs.name.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/name",
43 #'dfs.name.dir' => "#{grid_vol_root}/0/var/lib/${user.name}/name,/export/home/${user.name}/var/lib/name",
44 'dfs.datanode.kerberos.principal' => 'hdfs/_HOST@${this.realm}',
45 'dfs.replication' => '2',
46 #'dfs.replication' => '3',
48 'this.jobtracker.fqdn' => '${this.cluster.name}-jt.${this.domain}',
49 'this.jobhistory.fqdn' => '${this.cluster.name}-jt.${this.domain}',
50 #'this.jobhistory.fqdn' => '${this.cluster.name}-jh.${this.domain}',
51 'mapreduce.tasktracker.kerberos.principal' => 'mapred/_HOST@${this.realm}'
58 'etc_root' => grid_etc_root,
59 'vol_root' => grid_vol_root,
62 'hadoop' => hadoop_attributes