From 187eb967d562020cf71d3cf96878506003b31a23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Tue, 22 Dec 2020 01:26:27 +0100
Subject: [PATCH] Hadoop image: fix oozie setup (in comments)

---
 image/single.pp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/image/single.pp b/image/single.pp
index 98ab182..61a2316 100644
--- a/image/single.pp
+++ b/image/single.pp
@@ -16,9 +16,11 @@ $zookeepers = [
 if $distribution == 'bigtop' {
   $version = '1.5.0' # 1.4.0, 1.5.0
   $hadoop_version = 2
+  $oozie_version = 4
 } elsif $distribution == 'cloudera' {
   $version = '6.3.0'
   $hadoop_version = 3
+  $oozie_version = 5
 }
 $hive_schema_file = "${distribution}-${version}" ? {
   'bigtop-1.4.0'   => 'hive-schema-2.3.0.mysql.sql',
@@ -101,12 +103,12 @@ class{'hive':
 
 #class { 'oozie':
 #  acl            => true,
-#  #defaultFS =>
-#  hdfs_hostname  => $master,
 #  db             => $db_type,
 #  db_password    => 'good-password',
-#  oozie_hostname => "$master-disabled",
+#  oozie_hostname => $master,
+#  oozie_sharelib => '/usr/lib/oozie/oozie-sharelib.tar.gz',
 #  realm          => $realm,
+#  version        => $oozie_version,
 #}
 
 class { 'spark':
-- 
GitLab