Repository: bigtop
Updated Branches:
  refs/heads/branch-1.2 02acbb76a -> a7422cc6c (forced update)


BIGTOP-2900. Crunch build failed because of OS OOM killer on OpenJDK 1.8.0-144


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/d137ba7f
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/d137ba7f
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/d137ba7f

Branch: refs/heads/branch-1.2
Commit: d137ba7f3a942b4924c93c27680938d847f27aa7
Parents: 187cc80
Author: Evans Ye <[email protected]>
Authored: Tue Oct 3 21:48:55 2017 +0800
Committer: Evans Ye <[email protected]>
Committed: Wed Oct 4 22:18:50 2017 +0800

----------------------------------------------------------------------
 bigtop_toolchain/manifests/jdk.pp | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/d137ba7f/bigtop_toolchain/manifests/jdk.pp
----------------------------------------------------------------------
diff --git a/bigtop_toolchain/manifests/jdk.pp 
b/bigtop_toolchain/manifests/jdk.pp
index 4e15eb1..cd0bda6 100644
--- a/bigtop_toolchain/manifests/jdk.pp
+++ b/bigtop_toolchain/manifests/jdk.pp
@@ -56,9 +56,24 @@ class bigtop_toolchain::jdk {
       apt::ppa { 'http://ppa.launchpad.net/openjdk-r/ppa/ubuntu':  }
     }
     /(CentOS|Amazon|Fedora)/: {
-      package { 'java-1.8.0-openjdk-devel' :
+      # BIGTOP-2900: Crunch build failed because of OS OOM killer on OpenJDK 
1.8.0-144
+      # Here we pin other version of JDK for CentOS 7 and Fedora to workaround 
this problem
+      if ($::operatingsystem == "CentOS" and operatingsystemmajrelease == "7") 
{
+        $jdk = [
+          'java-1.8.0-openjdk-headless-1.8.0.131',
+          'java-1.8.0-openjdk-devel-1.8.0.131'
+        ]
+      }
+      elsif ($::operatingsystem == "Fedora") {
+        $jdk = 'java-1.8.0-openjdk-devel-1:1.8.0.111'
+      }
+      else {
+        $jdk = 'java-1.8.0-openjdk-devel-1:1.8.0'
+      }
+      package { $jdk :
         ensure => present
       }
+
       if ($::operatingsystem == "Fedora") {
         file { '/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/security/cacerts':
           ensure => 'link',

Reply via email to