/etc/puppet/modules/orchestra-hadoop/manifests/hadoop-tasktracker.pp is in ubuntu-orchestra-modules-hadoop 1.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # Hadoop Task Tracker
class hadoop_tasktracker(
$namenode = $ipaddress_eth0,
$jobtracker = $ipaddress_eth0,
$hdfsdatadir = '/var/lib/hadoop-0.20/dfs/data')
{
apt::ppa{"ppa:canonical-sig/thirdparty":}
debconf::set_selection{ "namenode":
selection => "hadoop/namenode",
value_type => "string",
value => $namenode,
require => Apt::Ppa["ppa:canonical-sig/thirdparty"]
}
debconf::set_selection{ "jobtracker":
selection => "hadoop/jobtracker",
value_type => "string",
value => $jobtracker,
require => Debconf::Set_selection["namenode"],
}
debconf::set_selection{ "hdfsdatadir":
selection => "hadoop/hdfsdatadir",
value_type => "string",
value => $hdfsdatadir,
require => Debconf::Set_selection["jobtracker"],
}
package{"hadoop-0.20-tasktracker": ensure => installed, require => Debconf::Set_selection["hdfsdatadir"],}
}
|