Hi, yu'an:

Many thanks for your reply, it has been fixed :), it turns out to be related to 
some local environmental settings.


Best regards,


Edwin
















At 2022-03-03 15:58:43, "yu'an huang" <h.yuan...@gmail.com> wrote:



Hi Edwin,




I suddenly realised that I replied to you directly, so I just sent this email 
again. I tried to build the source code in your version (maven 3.8.4 and jdk 
11) and it builds successfully. However, I do observe something related to 
sun.net.util.IPAddressUtil but instead of error, maven report it as a warning:


[WARNING] 
/dev/flink-opensource/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunnerConfigurationTest.java:[45,20]
 sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a 
future release
[WARNING] 
/dev/flink-opensource/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunnerConfigurationTest.java:[45,20]
 sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a 
future release
[WARNING] 
/dev/flink-opensource/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunnerConfigurationTest.java:[45,20]
 sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a 
future release


So I guess you may have some settings that make maven or java treat the 
warnings as errors.








On 25 Feb 2022, at 4:49 PM, Edwin <xuhao...@163.com> wrote:


Hi all,


I was trying to build flink source code by using mvn clean install -DskipTests 
command, and it turned out report build failure and the following error info:


[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile 
(default-testCompile) on project flink-runtime: Compilation failure: 
Compilation failure: 
[ERROR] 
/opt/source-code/flink-master/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunnerConfigurationTest.java:[45,20]
 sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a 
future release
[ERROR] 
/opt/source-code/flink-master/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunnerConfigurationTest.java:[45,20]
 sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a 
future release
[ERROR] 
/opt/source-code/flink-master/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunnerConfigurationTest.java:[45,20]
 sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a 
future release
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :flink-runtime


And my system configuration is shown as following:
Maven home: /opt/apache-maven-3.8.4
Java version: 11, vendor: Oracle Corporation, runtime: /usr/java/jdk-11
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", family: 
"unix"


Can anyone suggest anything to help me fix this? Thanks in advance!





 


Reply via email to