Repository: bigtop
Updated Branches:
  refs/heads/branch-1.2 187cc8059 -> 5aeff9f1f


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/e36040dc
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/e36040dc
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/e36040dc

Branch: refs/heads/branch-1.2
Commit: e36040dcdf8680b3ad2d2ad2b29527d881832112
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 15:59:55 2017 +0800

----------------------------------------------------------------------
 bigtop_toolchain/manifests/jdk.pp | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/e36040dc/bigtop_toolchain/manifests/jdk.pp
----------------------------------------------------------------------
diff --git a/bigtop_toolchain/manifests/jdk.pp 
b/bigtop_toolchain/manifests/jdk.pp
index 4e15eb1..3d07091 100644
--- a/bigtop_toolchain/manifests/jdk.pp
+++ b/bigtop_toolchain/manifests/jdk.pp
@@ -56,9 +56,23 @@ class bigtop_toolchain::jdk {
       apt::ppa { 'http://ppa.launchpad.net/openjdk-r/ppa/ubuntu':  }
     }
     /(CentOS|Amazon|Fedora)/: {
-      package { 'java-1.8.0-openjdk-devel' :
-        ensure => present
+      # BIGTOP-2900: Crunch build failed because of OS OOM killer on OpenJDK 
1.8.0-144
+      # Here we pin JDK to 1.8.0-131 on CentOS 7 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'
+        ]
+        package { $jdk :
+          ensure => present
+        }
       }
+      else {
+        package { 'java-1.8.0-openjdk-devel' :
+          ensure => present
+        }
+      }
+
       if ($::operatingsystem == "Fedora") {
         file { '/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/security/cacerts':
           ensure => 'link',

Reply via email to