Use JRE for AWS installation.

Change-Id: I25ca959f53c49c7aa1e2841227d27d7c254578be
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1776
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Ian Maxon <imaxon@apache.org>
Reviewed-by: Michael Blow <mblow@apache.org>
diff --git a/asterixdb/asterix-server/src/main/opt/aws/yaml/install_jdk.yml b/asterixdb/asterix-server/src/main/opt/aws/yaml/install_jre.yml
similarity index 82%
rename from asterixdb/asterix-server/src/main/opt/aws/yaml/install_jdk.yml
rename to asterixdb/asterix-server/src/main/opt/aws/yaml/install_jre.yml
index 05838bd..e46be78 100644
--- a/asterixdb/asterix-server/src/main/opt/aws/yaml/install_jdk.yml
+++ b/asterixdb/asterix-server/src/main/opt/aws/yaml/install_jre.yml
@@ -17,10 +17,10 @@
 # under the License.
 # ------------------------------------------------------------
 
-- name: Download JDK
+- name: Download JRE
   shell: "wget -q --tries=5 --no-cookies --no-check-certificate --header \
               \"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie\" \
-              \"http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.rpm\""
+              \"http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jre-8u131-linux-x64.rpm\""
 
-- name: Install JDK
-  shell: sudo yum -y localinstall jdk-8u121-linux-x64.rpm
+- name: Install JRE
+  shell: sudo yum -y localinstall jre-8u131-linux-x64.rpm
diff --git a/asterixdb/asterix-server/src/main/opt/aws/yaml/instance_init.yml b/asterixdb/asterix-server/src/main/opt/aws/yaml/instance_init.yml
index 8e68b80..49e1858 100644
--- a/asterixdb/asterix-server/src/main/opt/aws/yaml/instance_init.yml
+++ b/asterixdb/asterix-server/src/main/opt/aws/yaml/instance_init.yml
@@ -32,7 +32,7 @@
 
 - hosts: all
   tasks:
-    - include: install_jdk.yml
+    - include: install_jre.yml
 
     - include_vars: ../conf/instance_settings.yml