[
https://issues.apache.org/jira/browse/KNOX-2372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17108416#comment-17108416
]
Larry McCay commented on KNOX-2372:
-----------------------------------
As I tried to say, Knox 1.4.0's hadoop version dependency will not have any
effect on the version of hadoop services that Knox is compatible with. It is
merely used internally for certain implementing certain features of Knox itself.
Dispatch compatibility to services that are proxied by Knox is a function of
the service definitions for each service.
While the service definitions are versioned, the default version for each will
be the latest.
API compatibility remains pretty consistent across versions but you should be
aware that UI proxying is always a moving target in terms of the rewrite rules
for each service that are defined in the service definitions.
NOTE: regardless of the version of hadoop used inside the gateway, service
definitions determine the compatibility of the proxying of individual services
across their respective versions. In other words, you are going to need to use
service definitions that represent the capabilities and rewrite rules that are
compatible with 2.7.4. This is going to be something that the community is even
going to have a hard time supporting you with.
> Build src knox 1.4.0 with hadoop 2.7.4 failed
> ---------------------------------------------
>
> Key: KNOX-2372
> URL: https://issues.apache.org/jira/browse/KNOX-2372
> Project: Apache Knox
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.4.0
> Reporter: stephbat
> Priority: Major
>
> I tried to build the project Apache Knox 1.4.0 with hadoop 2.7.4
> I did the build on a Ubuntu server :
> * Ubtuntu 18.04
> * Openjdk version "11.0.7"
> * Apache Maven 3.6.0
> * Apache Ant(TM) version 1.10.5
> I have downloaded the src archive on
> [http://www.apache.org/dyn/closer.cgi/knox/1.4.0/knox-1.4.0-src.zip]
> I get the following issue :
> {code:java}
> root@opbigechknox03:/var/compil/knox/knox-1.4.0#
> mvn -Panalyze -Prelease clean install -DskipTests
> [WARNING]
> Dependency convergence error for
> org.apache.directory.server:apacheds-kerberos-codec:2.0.0-M15 paths to
> dependency are:
> +-org.apache.knox:gateway-server:1.4.0
> +-org.apache.hadoop:hadoop-auth:2.7.4
> +-org.apache.directory.server:apacheds-kerberos-codec:2.0.0-M15
> [WARNING]
> Dependency convergence error for
> org.apache.directory.api:api-asn1-api:1.0.0-M20 paths to dependency are:
> +-org.apache.knox:gateway-server:1.4.0
> +-org.apache.hadoop:hadoop-auth:2.7.4
> +-org.apache.directory.server:apacheds-kerberos-codec:2.0.0-M15
> +-org.apache.directory.api:api-asn1-api:1.0.0-M20
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 04:30 min
> [INFO] Finished at: 2020-05-14T11:20:57+02:00
> [INFO]
> ------------------------------------------------------------------------
> [WARNING] The requested profile "analyze" could not be activated because it
> does not exist.
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce
> (enforce-dependencies) on project gateway-server: Some Enforcer rules have
> failed. Look above for specific messages explaining why the rule failed. ->
> [Help 1]
> {code}
> Could you help me to fix this issue ?
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)