pan3793 commented on PR #7759:
URL: https://github.com/apache/hadoop/pull/7759#issuecomment-3002579600

   @cnauroth `sun.misc.Signal` class exists in both JDK 8 and JDK 9+, but it is 
not a public API, see https://bugs.openjdk.org/browse/JDK-8149750.
   
   If we don't pursue compiling Hadoop using a modern JDK with `-release 8`(see 
below), we don't need this patch.
   
   ```
   export JAVA_HOME=/path/of/openjdk-17
   mvn compile -DskipTests -Djavac.version=8 -Dmaven.compiler.release=8
   ```
   
   ```
   ...
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) 
on project hadoop-common: Compilation failure: Compilation failure: 
   [ERROR] 
/Users/chengpan/Projects/apache-hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SignalLogger.java:[22,16]
 package sun.misc does not exist
   [ERROR] 
/Users/chengpan/Projects/apache-hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SignalLogger.java:[23,16]
 package sun.misc does not exist
   [ERROR] 
/Users/chengpan/Projects/apache-hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SignalLogger.java:[44,43]
 cannot find symbol
   [ERROR]   symbol:   class SignalHandler
   [ERROR]   location: class org.apache.hadoop.util.SignalLogger
   ...
   ```


-- 
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: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to