You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "JacksonYao287 (via GitHub)" <gi...@apache.org> on 2023/01/29 09:58:15 UTC

[GitHub] [ozone] JacksonYao287 opened a new pull request, #4218: HDDS-7850. disable depcheck in hadoop-ozone until the deps of ranger and zookeeper converge

JacksonYao287 opened a new pull request, #4218:
URL: https://github.com/apache/ozone/pull/4218

   ## What changes were proposed in this pull request?
   
   the system info of my macbook is as follow:
   
   Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T23:06:16+08:00)
   Maven home: /Library/apache-maven-3.6.2
   Java version: 1.8.0_362, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk@8/1.8.0+362/libexec/openjdk.jdk/Contents/Home/jre
   Default locale: zh_CN, platform encoding: UTF-8
   OS name: "mac os x", version: "12.6", arch: "x86_64", family: "mac"
   
    
   
   when building the project on my macbook, this error comes out.
   
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (depcheck) on project ozone-manager: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
   
   the reason is :
   
   [INFO] — maven-enforcer-plugin:3.0.0-M1:enforce (depcheck) @ ozone-manager —
   [WARNING]
   Dependency convergence error for org.apache.httpcomponents:httpasyncclient:4.1.4 paths to dependency are:
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-org.elasticsearch.client:elasticsearch-rest-client:7.6.0
             +-org.apache.httpcomponents:httpasyncclient:4.1.4
   and
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-org.apache.httpcomponents:httpasyncclient:4.1.3
   
   [WARNING]
   Dependency convergence error for org.apache.zookeeper:zookeeper-jute:3.5.6 paths to dependency are:
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ozone:hdds-hadoop-dependency-server:1.4.0-SNAPSHOT
       +-org.apache.hadoop:hadoop-common:3.3.4
         +-org.apache.zookeeper:zookeeper:3.5.6
           +-org.apache.zookeeper:zookeeper-jute:3.5.6
   and
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-org.apache.solr:solr-solrj:8.6.3
             +-org.apache.zookeeper:zookeeper-jute:3.5.7
   
   [WARNING]
   Dependency convergence error for org.apache.httpcomponents:httpmime:4.5.10 paths to dependency are:
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-org.apache.solr:solr-solrj:8.6.3
             +-org.apache.httpcomponents:httpmime:4.5.10
   and
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-org.apache.httpcomponents:httpmime:4.5.6
   
   [WARNING]
   Dependency convergence error for com.carrotsearch:hppc:0.8.1 paths to dependency are:
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-org.elasticsearch:elasticsearch:7.6.0
             +-com.carrotsearch:hppc:0.8.1
   and
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-com.carrotsearch:hppc:0.8.0
   
   [WARNING]
   Dependency convergence error for org.apache.httpcomponents:httpcore-nio:4.4.12 paths to dependency are:
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-org.elasticsearch.client:elasticsearch-rest-client:7.6.0
             +-org.apache.httpcomponents:httpcore-nio:4.4.12
   and
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-org.apache.httpcomponents:httpcore-nio:4.4.6
   
   seems the deps of ranger and zookpeer does not converge for now, so we need to disable this depcheck to avoid building failure and report this to ranger and zookeeper community.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-7850
   
   ## How was this patch tested?
   
   after disable depcheck in hadoop-zone, building succeed
   


-- 
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: issues-unsubscribe@ozone.apache.org

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


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


[GitHub] [ozone] JacksonYao287 commented on pull request #4218: HDDS-7850. disable depcheck in hadoop-ozone until the deps of ranger and zookeeper converge

Posted by "JacksonYao287 (via GitHub)" <gi...@apache.org>.
JacksonYao287 commented on PR #4218:
URL: https://github.com/apache/ozone/pull/4218#issuecomment-1413215619

   @adoroszlai after deep diving into to this issue, i find it is caused by maven-enforcer-plugin.
   the version used by current mainline code is `3.0.0-M1`, which is released at Jul 26, 2017. maybe it is too old.
   i update it to the latest version, it works well.
   please take a look at  [this page](https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin) 
   


-- 
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: issues-unsubscribe@ozone.apache.org

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


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


[GitHub] [ozone] adoroszlai commented on pull request #4218: HDDS-7850. disable depcheck in hadoop-ozone until the deps of ranger and zookeeper converge

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #4218:
URL: https://github.com/apache/ozone/pull/4218#issuecomment-1407621643

   @JacksonYao287, we don't see this problem in CI, nor can I reproduce it locally.  The transitive dependencies of Ranger that appear in your tree are excluded in `ozone-manager` POM.  Please check your local environment (maybe Maven needs to be upgraded).


-- 
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: issues-unsubscribe@ozone.apache.org

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


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


[GitHub] [ozone] JacksonYao287 commented on pull request #4218: HDDS-7850. bump maven-enforcer-plugin.version to 3.2.1

Posted by "JacksonYao287 (via GitHub)" <gi...@apache.org>.
JacksonYao287 commented on PR #4218:
URL: https://github.com/apache/ozone/pull/4218#issuecomment-1414683423

   thanks @adoroszlai for review and merge


-- 
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: issues-unsubscribe@ozone.apache.org

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


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


[GitHub] [ozone] JacksonYao287 commented on pull request #4218: HDDS-7850. disable depcheck in hadoop-ozone until the deps of ranger and zookeeper converge

Posted by "JacksonYao287 (via GitHub)" <gi...@apache.org>.
JacksonYao287 commented on PR #4218:
URL: https://github.com/apache/ozone/pull/4218#issuecomment-1409641772

   > We should not revert this part of [HDDS-7372](https://issues.apache.org/jira/browse/HDDS-7372) to fix a local build issue.
   
   i ask some of my coworkers to try to build the mainline ozone project on their macbooks (the Darwin Kernel Version 21.6.0), and the same error happens agains. this build issue can be reproduced on macbook with Darwin operating system. so , seems this build error is not caused by my local environment, it depends on operating system.


-- 
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: issues-unsubscribe@ozone.apache.org

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


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


[GitHub] [ozone] adoroszlai commented on pull request #4218: HDDS-7850. disable depcheck in hadoop-ozone until the deps of ranger and zookeeper converge

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #4218:
URL: https://github.com/apache/ozone/pull/4218#issuecomment-1409950578

   @JacksonYao287 As I mentioned, the dependencies in your tree (`elasticsearch` and `solr`), e.g.:
   
   ```
   +-org.apache.ozone:ozone-manager:1.4.0-SNAPSHOT
     +-org.apache.ranger:ranger-intg:2.3.0
       +-org.apache.ranger:ranger-plugins-common:2.3.0
         +-org.apache.ranger:ranger-plugins-audit:2.3.0
           +-org.elasticsearch.client:elasticsearch-rest-client:7.6.0
             +-org.apache.httpcomponents:httpasyncclient:4.1.4
   ```
   
   should be excluded by:
   
   https://github.com/apache/ozone/blob/3393354472a02da9364dbf4f0da34f127eb4895d/hadoop-ozone/ozone-manager/pom.xml#L172-L203
   
   Please try to debug the issue.  (Some ideas: Use `mvn --debug`.  Try building Ozone on Linux in a Docker container or VM.  If you have any network proxy, disable it.  Delete Ozone and/or Ranger artifacts from your `~/.m2/repository`.)


-- 
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: issues-unsubscribe@ozone.apache.org

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


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


[GitHub] [ozone] adoroszlai merged pull request #4218: HDDS-7850. bump maven-enforcer-plugin.version to 3.2.1

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #4218:
URL: https://github.com/apache/ozone/pull/4218


-- 
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: issues-unsubscribe@ozone.apache.org

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


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