Ottomata has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/170382

Change subject: Include refinery-hive in hive's auxpath if it is deployed on 
the current node
......................................................................

Include refinery-hive in hive's auxpath if it is deployed on the current node

Change-Id: I46ad396f9c3f08cbbb73b9b95ba8ce6ac8b31ef7
---
M manifests/role/analytics/hive.pp
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/82/170382/1

diff --git a/manifests/role/analytics/hive.pp b/manifests/role/analytics/hive.pp
index 56b749d..d28d75a 100644
--- a/manifests/role/analytics/hive.pp
+++ b/manifests/role/analytics/hive.pp
@@ -26,7 +26,16 @@
 
     # The WMF webrequest table uses HCatalog's JSON Serde.
     # Automatically include this in Hive client classpaths.
-    $auxpath         = 
'file:///usr/lib/hive-hcatalog/share/hcatalog/hive-hcatalog-core-0.12.0-cdh5.0.2.jar'
+    $hcatalog_jar = 
'file:///usr/lib/hive-hcatalog/share/hcatalog/hive-hcatalog-core-0.12.0-cdh5.0.2.jar'
+
+    # If refinery is included on this node, then add
+    # refinery-hive.jar to the auxpath as well
+    if defined(Class['role::analytics::refinery']) {
+        $auxpath = 
"${hcatalog_jar},${::role::analytics::refinery::path}/artifacts/refinery-hive.jar"
+    }
+    else {
+        $auxpath = $hcatalog_jar
+    }
 
     # Hive uses Zookeeper for table locking.
     $zookeeper_hosts = $role::analytics::zookeeper::config::hosts_array

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I46ad396f9c3f08cbbb73b9b95ba8ce6ac8b31ef7
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to