Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 4379fe1

Browse files
authored
Update website for java 11 (#3462)
1 parent 1476076 commit 4379fe1

6 files changed

+21
-51
lines changed

website2/docs/compiling-code-organization.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ The primary programming languages for Heron are C++, Java, and Python.
3535
[Topology Master](heron-architecture#topology-master), and
3636
[Stream Manager](heron-architecture#stream-manager).
3737

38-
* **Java 8** is used primarily for Heron's [topology
38+
* **Java 11** is used primarily for Heron's [topology
3939
API](heron-topology-concepts), and [Heron Instance](heron-architecture#heron-instance).
4040
It is currently the only language in which topologies can be written. Instructions can be found
4141
in [Building Topologies](../../developers/java/topologies), while documentation for the Java
42-
API can be found [here](/api/org/apache/heron/api/topology/package-summary.html). Please note that Heron topologies do not
43-
require Java 8 and can be written in Java 7 or later.
42+
API can be found [here](/api/org/apache/heron/api/topology/package-summary.html). Please note that Heron topologies do not require Java 11 and can be written in Java 7 or later.
4443

4544
* **Python 2** (specifically 2.7) is used primarily for Heron's [CLI interface](user-manuals-heron-cli) and UI components such as [Heron UI](user-manuals-heron-ui) and the [Heron Tracker](user-manuals-heron-tracker-runbook).
4645

website2/docs/compiling-docker.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ RUN apt-get update && apt-get -y install \
169169
wget
170170
```
171171

172-
### Step 4 --- An installation script for Java 8 and a `JAVA_HOME` environment variable
172+
### Step 4 --- An installation script for Java 11 and a `JAVA_HOME` environment variable
173173

174174
Here's an example:
175175

@@ -178,11 +178,10 @@ RUN \
178178
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
179179
add-apt-repository -y ppa:webupd8team/java && \
180180
apt-get update && \
181-
apt-get install -y oracle-java8-installer && \
182-
rm -rf /var/lib/apt/lists/* && \
183-
rm -rf /var/cache/oracle-jdk8-installer
181+
apt-get install -y openjdk-11-jdk-headless && \
182+
rm -rf /var/lib/apt/lists/*
184183

185-
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
184+
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
186185
```
187186

188187
#### Step 5 - An installation script for [Bazel](http://bazel.io/) version {{% bazelVersion %}} or above.

website2/docs/compiling-linux.md

+10-38
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ sidebar_label: Compiling on Linux
2222

2323
Heron can currently be built on the following Linux platforms:
2424

25-
* [Ubuntu 14.04](#building-on-ubuntu-14.04)
25+
* [Ubuntu 14.04](#building-on-ubuntu-18.04)
2626
* [CentOS 7](#building-on-centos-7)
2727

2828
## Building on Ubuntu 14.04
2929

30-
To build Heron on a fresh Ubuntu 14.04 installation:
30+
To build Heron on a fresh Ubuntu 18.04 installation:
3131

3232
### Step 1 --- Update Ubuntu
3333

@@ -50,19 +50,19 @@ export CC=/usr/bin/gcc
5050
export CCX=/usr/bin/g++
5151
```
5252

53-
### Step 4 --- Install JDK 8 and set JAVA_HOME
53+
### Step 4 --- Install JDK 11 and set JAVA_HOME
5454

5555
```bash
5656
$ sudo add-apt-repository ppa:webupd8team/java
5757
$ sudo apt-get update -y
58-
$ sudo apt-get install oracle-java8-installer -y
59-
$ export JAVA_HOME="/usr/lib/jvm/java-8-oracle"
58+
$ sudo apt-get install openjdk-11-jdk-headless -y
59+
$ export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
6060
```
6161

6262
#### Step 5 - Install Bazel {{% bazelVersion %}}
6363

6464
```bash
65-
wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.23.2/bazel-0.23.2-installer-linux-x86_64.sh
65+
wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.26.0/bazel-0.26.0-installer-linux-x86_64.sh
6666
chmod +x /tmp/bazel.sh
6767
/tmp/bazel.sh --user
6868
```
@@ -175,45 +175,17 @@ $ export CC=/usr/bin/gcc
175175
$ export CCX=/usr/bin/g++
176176
```
177177

178-
### Step 4 --- Install JDK 8
178+
### Step 4 --- Install JDK 11
179179

180180
```bash
181-
$ cd /opt/
182-
$ sudo wget --no-cookies --no-check-certificate \
183-
--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
184-
"http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz"
185-
$ sudo tar xzf jdk-8u91-linux-x64.tar.gz
186-
```
187-
188-
Use `alternatives` to configure the Java version:
189-
190-
```bash
191-
$ sudo cd /opt/jdk1.8.0_91/
192-
$ sudo alternatives --install /usr/bin/java java /opt/jdk1.8.0_91/bin/java 2
193-
$ sudo alternatives --config java
194-
```
195-
196-
Set the `javac` and `jar` commands:
197-
198-
```bash
199-
$ sudo alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_91/bin/jar 2
200-
$ sudo alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_91/bin/javac 2
201-
$ sudo alternatives --set jar /opt/jdk1.8.0_91/bin/jar
202-
$ sudo alternatives --set javac /opt/jdk1.8.0_91/bin/javac
203-
```
204-
205-
Export Java-related environment variables:
206-
207-
```bash
208-
export JAVA_HOME=/opt/jdk1.8.0_91
209-
export JRE_HOME=/opt/jdk1.8.0_91/jre
210-
export PATH=$PATH:/opt/jdk1.8.0_91/bin:/opt/jdk1.8.0_91/jre/bin
181+
$ sudo yum install java-11-openjdk java-11-openjdk-devel
182+
$ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
211183
```
212184

213185
#### Step 5 - Install Bazel {{% bazelVersion %}}
214186

215187
```bash
216-
wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.23.2/bazel-0.23.2-installer-linux-x86_64.sh
188+
wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.26.0/bazel-0.26.0-installer-linux-x86_64.sh
217189
chmod +x /tmp/bazel.sh
218190
/tmp/bazel.sh --user
219191
```

website2/docs/compiling-overview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ You must have the following installed to compile Heron:
4040
* [Bazel](http://bazel.io/docs/install.html) = {{% bazelVersion %}}. Later
4141
versions might work but have not been tested. See [Installing Bazel]({{< ref
4242
"#installing-bazel" >}}) below.
43-
* [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
43+
* [Java 11](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html)
4444
is required by Bazel and Heron;
4545
[topologies](../../../concepts/topologies) can be written in Java 7 or above
46-
, but Heron jars are required to run with a Java 8 JRE.
46+
, but Heron jars are required to run with a Java 11 JRE.
4747
* [Autoconf](http://www.gnu.org/software/autoconf/autoconf.html) >=
4848
2.6.3
4949
* [Automake](https://www.gnu.org/software/automake/) >= 1.11.1

website2/docs/heron-streamlet-concepts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ config.setNumContainers(2);
143143
new Runner("IntegerProcessingGraph", config, builder).run();
144144
```
145145

146-
As you can see, the Java code for the example streamlet processing graph requires very little boilerplate and is heavily indebted to Java 8 [lambda](https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html) patterns.
146+
As you can see, the Java code for the example streamlet processing graph requires very little boilerplate and is heavily indebted to Java [lambda](https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html) patterns.
147147

148148
## Streamlet operations
149149

website2/website/scripts/Dockerfile.ubuntu18.04

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN apt-get update && apt-get -y install \
3636
unzip \
3737
git \
3838
curl \
39-
openjdk-8-jdk-headless \
39+
openjdk-11-jdk-headless \
4040
tree \
4141
python-setuptools \
4242
python-dev \
@@ -50,7 +50,7 @@ RUN curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
5050

5151
RUN apt-get update && apt-get install -y nodejs
5252

53-
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
53+
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
5454

5555
ARG UNAME
5656
ARG UID

0 commit comments

Comments
 (0)