Skip to content

Instantly share code, notes, and snippets.

@kornypoet
Created May 9, 2014 21:45
Show Gist options
  • Save kornypoet/16852e2cdf5ee144cc2e to your computer and use it in GitHub Desktop.
Save kornypoet/16852e2cdf5ee144cc2e to your computer and use it in GitHub Desktop.
cluster(:hdp) do
cluster_role.override_attributes({
hadoop: {
distribution: {
provider: 'hortonworks',
version: '2.0',
},
},
})
with_systemwide
with_devtools
facet :nn do
instances 1
cloud(:ec2).flavor 'm1.large'
recipe 'hadoop::namenode'
recipe 'hadoop::secondarynn'
recipe 'hadoop::config_files'
facet_role.override_attributes({
hadoop: {
namenode: { run_state: :stop },
secondarynn: { run_state: :stop },
}
})
end
facet :rm do
instances 1
cloud(:ec2).flavor 'm1.large'
recipe 'hadoop::resourcemanager'
recipe 'hadoop::historyserver'
recipe 'hadoop::config_files'
facet_role.override_attributes({
hadoop: {
resourcemanager: { run_state: :stop },
historyserver: { run_state: :stop },
}
})
end
facet :dnnm do
instances 3
cloud(:ec2).flavor 'm1.large'
recipe 'hadoop::datanode'
recipe 'hadoop::nodemanager'
recipe 'hadoop::config_files'
facet_role.override_attributes({
hadoop: {
datanode: { run_state: :stop },
nodemanager: { run_state: :stop },
}
})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment