Deploying Livy fails if the SPARK_HOME directory doesn't exist.
@@ -15,6 +15,7 @@ class livy {
class deploy ($roles) {
if ('livy-server' in $roles) {
include livy::server
+ include spark::common
}
}
@@ -43,7 +44,10 @@ class livy {
service { 'livy-server':
ensure => running,
- require => Package['livy'],
+ require => [
+ Package['spark-core'],
+ Package['livy'],
+ ],
hasrestart => true,
hasstatus => true,
subscribe => [
