Elukey has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/405263 )

Change subject: profile::hadoop::worker: install spark2 package after Hive 
config
......................................................................


profile::hadoop::worker: install spark2 package after Hive config

While testing a new hadoop node in labs we noticed that spark2-shell
wasn't working due to the absence of the following symlink:

/etc/spark/conf/hive-site.xml -> 
/etc/hive/conf.analytics-hadoop-labs/hive-site.xml

The symlink is done by the spark2 package, that needs to be installed
after include ::profile::hive::client, not before.

Bug: T166248
Change-Id: I4a4dcf072ef5224f3b1b506c8d562e40de1cc540
---
M modules/profile/manifests/hadoop/worker.pp
1 file changed, 7 insertions(+), 1 deletion(-)

Approvals:
  Elukey: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/profile/manifests/hadoop/worker.pp 
b/modules/profile/manifests/hadoop/worker.pp
index 7f32ff1..d0f2a6b 100644
--- a/modules/profile/manifests/hadoop/worker.pp
+++ b/modules/profile/manifests/hadoop/worker.pp
@@ -48,7 +48,13 @@
     class { '::cdh::spark': }
 
     # Spark 2 is manually packaged by us, it is not part of CDH.
-    require_package('spark2')
+    # The deb package creates as post-install step a symlink like
+    # /etc/spark/conf/hive-site.xml -> /etc/hive/conf.analytics/hive-site.xml
+    # This package needs to be installed after the deploy of the Hive 
configuration.
+    # (should be guaranteed by the puppet evaluation order).
+    package { 'spark2':
+        ensure => present,
+    }
 
     # sqoop needs to be on worker nodes if Oozie is to
     # launch sqoop jobs.

-- 
To view, visit https://gerrit.wikimedia.org/r/405263
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4a4dcf072ef5224f3b1b506c8d562e40de1cc540
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Ottomata <ao...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to