You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2020/11/26 13:34:00 UTC

[jira] [Commented] (HDDS-4521) Module [hadoop-ozone-filesystem-hadoop2] compilation failure, missing dependencies

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

Attila Doroszlai commented on HDDS-4521:
----------------------------------------

{{hadoop-ozone-filesystem-hadoop2}} is regularly compiled successfully for each commit and PR.  Protobuf is a transitive dependency from {{hadoop-common}} (for 2.7.3).

{code:title=mvn -pl :hadoop-ozone-filesystem-hadoop2 dependency:tree}
...
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) @ hadoop-ozone-filesystem-hadoop2 ---
[INFO] org.apache.hadoop:hadoop-ozone-filesystem-hadoop2:jar:1.1.0-SNAPSHOT
...
[INFO] +- org.apache.hadoop:hadoop-common:jar:2.7.3:provided
...
[INFO] |  +- com.google.protobuf:protobuf-java:jar:2.5.0:provided
{code}

Can you please post more detailed logs so we can help debug your problem?

> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org