Installing Apache Spark via Puppet: Difference between revisions
(Created page with " Install Java Module into Puppet <pre>/etc/puppetlabs/code/environments/production$ sudo /opt/puppetlabs/bin/puppet module install puppetlabs/java</pre>") |
No edit summary |
||
Line 2: | Line 2: | ||
Install Java Module into Puppet | Install Java Module into Puppet | ||
<pre>/etc/puppetlabs/code/environments/production$ sudo /opt/puppetlabs/bin/puppet module install puppetlabs/java</pre> | <pre>/etc/puppetlabs/code/environments/production$ sudo /opt/puppetlabs/bin/puppet module install puppetlabs/java</pre> | ||
Install Spark Module | |||
<pre> | |||
$master_hostname='spark-master.bpopp.net' | |||
class{'hadoop': | |||
realm => '', | |||
hdfs_hostname => $master_hostname, | |||
slaves => ['spark1.bpopp.net', 'spark2.bpopp.net'], | |||
} | |||
class{'spark': | |||
master_hostname => $master_hostname, | |||
hdfs_hostname => $master_hostname, | |||
historyserver_hostname => $master_hostname, | |||
yarn_enable => false, | |||
} | |||
node 'spark-master.bpopp.net' { | |||
include spark::master | |||
include spark::historyserver | |||
include hadoop::namenode | |||
include spark::hdfs | |||
} | |||
node /spark(1|2).bpopp.net/ { | |||
include spark::worker | |||
include hadoop::datanode | |||
} | |||
node 'client.bpopp.net' { | |||
include hadoop::frontend | |||
include spark::frontend | |||
}</pre> |
Revision as of 03:29, 23 September 2019
Install Java Module into Puppet
/etc/puppetlabs/code/environments/production$ sudo /opt/puppetlabs/bin/puppet module install puppetlabs/java
Install Spark Module
$master_hostname='spark-master.bpopp.net' class{'hadoop': realm => '', hdfs_hostname => $master_hostname, slaves => ['spark1.bpopp.net', 'spark2.bpopp.net'], } class{'spark': master_hostname => $master_hostname, hdfs_hostname => $master_hostname, historyserver_hostname => $master_hostname, yarn_enable => false, } node 'spark-master.bpopp.net' { include spark::master include spark::historyserver include hadoop::namenode include spark::hdfs } node /spark(1|2).bpopp.net/ { include spark::worker include hadoop::datanode } node 'client.bpopp.net' { include hadoop::frontend include spark::frontend }