[ 
https://issues.apache.org/jira/browse/HDDS-3797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17138079#comment-17138079
 ] 

HuangTao commented on HDDS-3797:
--------------------------------

I find the root cause is the hadoop-common-2.7.3.pom in my local repository is 
broken.

 

As [~adoroszlai] said in PR, the patch for this issue can fix the mismatched 
dependency versions. So I changed this issue title.

> Fix the mismatched dependency versions in submodule 
> hadoop-ozone-filesystem-hadoop2
> -----------------------------------------------------------------------------------
>
>                 Key: HDDS-3797
>                 URL: https://issues.apache.org/jira/browse/HDDS-3797
>             Project: Hadoop Distributed Data Store
>          Issue Type: Improvement
>          Components: CI
>    Affects Versions: 0.7.0
>            Reporter: HuangTao
>            Assignee: HuangTao
>            Priority: Minor
>              Labels: build, pull-request-available
>
> when I compiled the whole project, I found the following error
> {code:java}
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
> hadoop-ozone-filesystem-hadoop2 ---
> [INFO] Compiling 5 source files to 
> /Users/huangtao6/IDEA/apache/hadoop-ozone/hadoop-ozone/ozonefs-hadoop2/target/classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] cannot access 
> org.apache.hadoop.classification.InterfaceAudience.Public
>   class file for org.apache.hadoop.classification.InterfaceAudience$Public 
> not found
> [INFO] 1 error
> [INFO] -------------------------------------------------------------
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  3.077 s
> [INFO] Finished at: 2020-06-14T14:37:22+08:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) 
> on project hadoop-ozone-filesystem-hadoop2: Compilation failure
> [ERROR] cannot access 
> org.apache.hadoop.classification.InterfaceAudience.Public
> [ERROR]   class file for 
> org.apache.hadoop.classification.InterfaceAudience$Public not found
> {code}
> I can reproduce that with `mvn -pl "hadoop-ozone/ozonefs-hadoop2" clean 
> install`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to