You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celeborn.apache.org by et...@apache.org on 2023/01/16 09:30:43 UTC

[incubator-celeborn] branch CELEBORN-171-3 created (now 77cbfc82)

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

ethanfeng pushed a change to branch CELEBORN-171-3
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git


      at 77cbfc82 [CELEBORN-171] Support JDK11.

This branch includes the following new commits:

     new 77cbfc82 [CELEBORN-171] Support JDK11.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-celeborn] 01/01: [CELEBORN-171] Support JDK11.

Posted by et...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ethanfeng pushed a commit to branch CELEBORN-171-3
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git

commit 77cbfc82637a1601461516cc4dec897354e56a57
Author: Ethan Feng <et...@apache.org>
AuthorDate: Mon Jan 16 17:30:30 2023 +0800

    [CELEBORN-171] Support JDK11.
---
 pom.xml              | 17 +++++++++++++++++
 sbin/start-worker.sh |  4 ++++
 2 files changed, 21 insertions(+)

diff --git a/pom.xml b/pom.xml
index 9b27840c..b4e84c87 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1011,6 +1011,23 @@
       </properties>
     </profile>
 
+    <profile>
+      <id>jdk-8</id>
+      <properties>
+        <java.version>8</java.version>
+      </properties>
+    </profile>
+
+    <profile>
+      <id>jdk-11</id>
+      <activation>
+        <jdk>11</jdk>
+      </activation>
+      <properties>
+        <java.version>11</java.version>
+      </properties>
+    </profile>
+
     <profile>
       <id>flink-1.14</id>
       <modules>
diff --git a/sbin/start-worker.sh b/sbin/start-worker.sh
index e7824b89..ea4c4581 100755
--- a/sbin/start-worker.sh
+++ b/sbin/start-worker.sh
@@ -33,6 +33,10 @@ if [ "$CELEBORN_WORKER_OFFHEAP_MEMORY" = "" ]; then
 fi
 
 export CELEBORN_JAVA_OPTS="-Xmx$CELEBORN_WORKER_MEMORY -XX:MaxDirectMemorySize=$CELEBORN_WORKER_OFFHEAP_MEMORY $CELEBORN_WORKER_JAVA_OPTS"
+JAVA_VERSION=$(java -version 2>&1 | grep " version " | head -1 | awk '{print $3}' | tr -d '"')
+if [[ ! "$JAVA_VERSION" == 1.8.* ]]; then
+  export CELEBORN_JAVA_OPTS="${CELEBORN_JAVA_OPTS} --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --illegal-access=warn -Dio.netty.tryReflectionSetAccessible=true"
+fi
 
 if [ "$WORKER_INSTANCE" = "" ]; then
   WORKER_INSTANCE=1