Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some changes to make it work #4

Open
biemond opened this issue Jan 2, 2013 · 0 comments
Open

Some changes to make it work #4

biemond opened this issue Jan 2, 2013 · 0 comments

Comments

@biemond
Copy link

biemond commented Jan 2, 2013

Hi,

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:'

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant