You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great work,
I just made the following changes to make it work
params.pp
Commented out
include java::params
and just set $java_home = $::hostname ? {
default => "/usr/java/jdk1.7.0_09",
}
also for hostnames with domain name , I had to use "" $master = $::hostname ? {
default => "devagent1.alfa.local",
} $slaves = $::hostname ? {
default => ["devagent1.alfa.local","devagent2.alfa.local","devagent3.alfa.local"]
}
init.pp
Commented out
include hadoop::master
include hadoop::slave
for exec I set the exec path
$execPath = '/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:'
Hi,
Great work,
I just made the following changes to make it work
params.pp
Commented out
$java_home = $ ::hostname ? {
include java::params
and just set
default => "/usr/java/jdk1.7.0_09",
}
also for hostnames with domain name , I had to use ""
$master = $ ::hostname ? {
$slaves = $ ::hostname ? {
default => "devagent1.alfa.local",
}
default => ["devagent1.alfa.local","devagent2.alfa.local","devagent3.alfa.local"]
}
init.pp
Commented out
include hadoop::master
include hadoop::slave
for exec I set the exec path
$execPath = '/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:'
exec { "untar hadoop-${hadoop::params::version}.tar.gz":
path => $execPath,
command => "tar -zxf hadoop-${hadoop::params::version}.tar.gz",
remove File["java-app-dir"] require in
exec { "${hadoop::params::hadoop_base}/hadoop-${hadoop::params::version}/bin/hadoop namenode -format":
Result
Then it works perfectly
thanks Edwin
The text was updated successfully, but these errors were encountered: