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

Kenneth Yang edited comment on HDDS-4521 at 11/27/20, 3:58 AM:
---------------------------------------------------------------

thanks to  [~adoroszlai],   The cause of the problem is the 
hadoop-common-2.7.3.pom in my local repository is broken.

When I run mvn dependency:tree,  there are some WARNING logs as follows:

[INFO] ---------< org.apache.hadoop:hadoop-ozone-filesystem-hadoop2 >----------
 [INFO] Building Apache Hadoop Ozone FS Hadoop 2.x compatibility 1.1.0-SNAPSHOT 
[35/40]
 [INFO] --------------------------------[ jar ]---------------------------------
 [WARNING] The POM for org.apache.hadoop:hadoop-common:jar:2.7.3 is invalid, 
transitive dependencies (if any) will not be available, enable debug logging 
for more details
 [INFO]
 [INFO] — maven-dependency-plugin:3.0.2:tree (default-cli) @ 
hadoop-ozone-filesystem-hadoop2 —

 

 Here is the error content, the correct artifactId should be 
{{hadoop-project-dist}}
{code:java}
  <parent>
    <groupId>org.apache.hadoop</groupId>
    <artifactId>hadoop-common</artifactId>
    <version>2.7.3</version>
    <relativePath>../../hadoop-project-dist</relativePath>
  </parent>
{code}


was (Author: kennethlnnn):
thanks to  [~adoroszlai],   The cause of the problem is the 
hadoop-common-2.7.3.pom in my local repository is broken.

When I run mvn dependency:tree,  there are some WARNING logs as follows:

[INFO] ---------< org.apache.hadoop:hadoop-ozone-filesystem-hadoop2 >----------
[INFO] Building Apache Hadoop Ozone FS Hadoop 2.x compatibility 1.1.0-SNAPSHOT 
[35/40]
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.apache.hadoop:hadoop-common:jar:2.7.3 is invalid, 
transitive dependencies (if any) will not be available, enable debug logging 
for more details
[INFO]
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) @ 
hadoop-ozone-filesystem-hadoop2 ---

 

 Here is the error content, the correct artifactId should be 
{{hadoop-project-dist}}
{code:java}
// code placeholder
{code}
<parent> <groupId>org.apache.hadoop</groupId> 
<artifactId>hadoop-common</artifactId> <version>2.7.3</version> 
<relativePath>../../hadoop-project-dist</relativePath> </parent>

{{}}

> Module [hadoop-ozone-filesystem-hadoop2] compilation failure, missing 
> dependencies
> ----------------------------------------------------------------------------------
>
>                 Key: HDDS-4521
>                 URL: https://issues.apache.org/jira/browse/HDDS-4521
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.1.0
>         Environment: apache-maven-3.6.3
>            Reporter: Kenneth Yang
>            Assignee: Kenneth Yang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.1.0
>
>
> The following error is reported when run the maven command "mvn clean package 
> -DskipTests=true"
>  
> [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: Compilation 
> failure:
> [ERROR] 
> /Users/dev/github/hadoop-ozone/hadoop-ozone/ozonefs-hadoop2/src/main/java/org/apache/hadoop/fs/ozone/Hadoop27RpcTransport.java:[37,27]
>  package com.google.protobuf does not exist
> [ERROR] 
> /Users/dev/github/hadoop-ozone/hadoop-ozone/ozonefs-hadoop2/src/main/java/org/apache/hadoop/fs/ozone/Hadoop27RpcTransport.java:[38,27]
>  package com.google.protobuf does not exist
> [ERROR] 
> /Users/dev/github/hadoop-ozone/hadoop-ozone/ozonefs-hadoop2/src/main/java/org/apache/hadoop/fs/ozone/Hadoop27RpcTransport.java:[45,24]
>  cannot find symbol
> [ERROR] symbol: class RpcController
> [ERROR] location: package org.apache.hadoop.fs.ozone.Hadoop27RpcTransport
> [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.
>  
> I think the module hadoop-ozone-filesystem-hadoop2 should add the dependency  
> com.google.protobuf package



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to