Puppet Class: spark::params
- Defined in:
- manifests/params.pp
Overview
Class spark::params
This class is meant to be called from spark. It sets variables according to platform.
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'manifests/params.pp', line 6
class spark::params {
case "${::osfamily}-${::operatingsystem}" {
/RedHat-Fedora/: {
$packages = {
frontend => 'spark',
}
}
/Debian|RedHat/: {
$daemons = {
master => 'spark-master',
historyserver => 'spark-history-server',
worker => 'spark-worker',
}
$packages = {
common => 'spark-core',
master => 'spark-master',
frontend => 'spark-python',
historyserver => 'spark-history-server',
worker => 'spark-worker',
}
}
default: {
fail("${::operatingsystem} (${::osfamily}) not supported")
}
}
$confdir = "${::osfamily}-${::operatingsystem}" ? {
/RedHat-Fedora/ => '/etc/spark',
/Debian|RedHat/ => '/etc/spark/conf',
}
$defaultdir = "${::osfamily}-${::operatingsystem}" ? {
/RedHat-Fedora/ => '/etc/sysconfig',
/Debian|RedHat/ => '/etc/default',
}
$hive_configfile = "${::osfamily}-${::operatingsystem}" ? {
/RedHat-Fedora/ => '../etc/hive/hive-site.xml',
/Debian|RedHat/ => '../../hive/conf/hive-site.xml',
}
$keytab_historyserver = '/etc/security/keytab/spark.service.keytab'
$master_port = '7077'
$master_ui_port = '18080'
$worker_port = '7078'
$worker_ui_port = '18081'
$historyserver_port = '18088'
}
|