This is an automated email from the ASF dual-hosted git repository.

ijuma pushed a commit to branch 0.10.0
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/0.10.0 by this push:
     new 5030b5d  MINOR: use jdk8 to build/run system tests (#4944)
5030b5d is described below

commit 5030b5d9d82bb08d520e07c4cd23e23e3caa58af
Author: Jarek Rudzinski <[email protected]>
AuthorDate: Sat Apr 28 08:51:44 2018 +0900

    MINOR: use jdk8 to build/run system tests (#4944)
    
    Debian installer packages are no longer available for Java 7.
    
    Also upgrade AMI to latest ubuntu/trusty 14 amd64 as the older
    one is no longer available.
    
    Note that this only changes the JDK used to build and run
    the system tests. We still have Jenkins jobs that compile
    and run the JUnit tests with Java 7 so that we don't use
    features that are only available in newer Java versions.
    
    This is a backport of #4925 to the 0.10.2 branch.
---
 Vagrantfile     |  4 ++--
 vagrant/base.sh | 18 +++++++++---------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/Vagrantfile b/Vagrantfile
index 09d780c..53ab9ed 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -40,7 +40,7 @@ ec2_keypair_file = nil
 
 ec2_region = "us-east-1"
 ec2_az = nil # Uses set by AWS
-ec2_ami = "ami-9eaa1cf6"
+ec2_ami = "ami-905730e8"
 ec2_instance_type = "m3.medium"
 ec2_user = "ubuntu"
 ec2_instance_name_prefix = "kafka-vagrant"
@@ -80,7 +80,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
       # share to a temporary location and the provisioning scripts symlink data
       # to the right location.
       override.cache.enable :generic, {
-        "oracle-jdk7" => { cache_dir: "/tmp/oracle-jdk7-installer-cache" },
+        "oracle-jdk8" => { cache_dir: "/tmp/oracle-jdk8-installer-cache" },
       }
     end
   end
diff --git a/vagrant/base.sh b/vagrant/base.sh
index 9a41e98..1e464e6 100644
--- a/vagrant/base.sh
+++ b/vagrant/base.sh
@@ -24,20 +24,20 @@ if [ -z `which javac` ]; then
     apt-get -y update
 
     # Try to share cache. See Vagrantfile for details
-    mkdir -p /var/cache/oracle-jdk7-installer
-    if [ -e "/tmp/oracle-jdk7-installer-cache/" ]; then
-        find /tmp/oracle-jdk7-installer-cache/ -not -empty -exec cp '{}' 
/var/cache/oracle-jdk7-installer/ \;
+    mkdir -p /var/cache/oracle-jdk8-installer
+    if [ -e "/tmp/oracle-jdk8-installer-cache/" ]; then
+        find /tmp/oracle-jdk8-installer-cache/ -not -empty -exec cp '{}' 
/var/cache/oracle-jdk8-installer/ \;
     fi
-    if [ ! -e "/var/cache/oracle-jdk7-installer/jdk-7u80-linux-x64.tar.gz" ]; 
then
-        # Grab a copy of the JDK since it has moved and original downloader 
won't work
-        curl -s -L 
"https://s3-us-west-2.amazonaws.com/kafka-packages/jdk-7u80-linux-x64.tar.gz"; 
-o /var/cache/oracle-jdk7-installer/jdk-7u80-linux-x64.tar.gz
+    if [ ! -e "/var/cache/oracle-jdk8-installer/jdk-8u171-linux-x64.tar.gz" ]; 
then
+      # Grab a copy of the JDK since it has moved and original downloader 
won't work
+      curl -s -L 
"https://s3-us-west-2.amazonaws.com/kafka-packages/jdk-8u171-linux-x64.tar.gz"; 
-o /var/cache/oracle-jdk8-installer/jdk-8u171-linux-x64.tar.gz
     fi
 
     /bin/echo debconf shared/accepted-oracle-license-v1-1 select true | 
/usr/bin/debconf-set-selections
-    apt-get -y install oracle-java7-installer oracle-java7-set-default
+    apt-get -y install oracle-java8-installer oracle-java8-set-default
 
-    if [ -e "/tmp/oracle-jdk7-installer-cache/" ]; then
-        cp -R /var/cache/oracle-jdk7-installer/* 
/tmp/oracle-jdk7-installer-cache
+    if [ -e "/tmp/oracle-jdk8-installer-cache/" ]; then
+        cp -R /var/cache/oracle-jdk8-installer/* 
/tmp/oracle-jdk8-installer-cache
     fi
 fi
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to