yoda-mon opened a new pull request, #1043:
URL: https://github.com/apache/bigtop/pull/1043
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/BIGTOP/How+to+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'BIGTOP-3638: Your PR title ...'.
-->
### Description of PR
This PR aims bigtop users can use Java 11 when they package some projects on
a docker container.
- The behavior of bigtop is not changed.
- If user set an option, bigtop pass a flag to the docker container by
environment variable. If build target project can receive the flag, bigtop
switch `JAVA_HOME` to change the Java version.
### How was this patch tested?
#### Installation of JDK 11
I checked below on aarch 64 machine
```sh
# build bigtop/slave
cd docker/bigtop-slaves/
OS_LIST=( ubuntu-18.04 ubuntu-20.04 ubuntu-22.04 debian-10 debian-11
centos-7 rockylinux-8 fedora-35 fedora-36 )
for OS in ${OS_LIST[@]} ; do
./build.sh trunk-${OS}
done
# check the installation
for OS in ${OS_LIST[@]} ; do
echo $OS;
docker run -i --rm bigtop/slaves:trunk-$OS-aarch64 ls /usr/lib/jvm;
echo ""
done
```
The default JAVA_HOME is set to 8 by `/etc/profile.d/bigtop.sh` so
installation does not affect on it.
#### Build Kafka 2.8.1 by Java 11
I checked below on aarch 64 machine.
```sh
./gradlew zookeeper-pkg-ind kafka-pkg-ind -Ppreferred-java-version=11
-POS=rockylinux-8
```
I checked Java version by inserting `mvn --version` or `gradle --version` to
`do-component-build`.
Zookeeper was build by 8 and Kafka was by 11.
### For code changes:
- [ ] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'BIGTOP-3638. Your PR title ...')?
- [ ] Make sure that newly added files do not have any licensing issues.
When in doubt refer to https://www.apache.org/licenses/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]