[
https://issues.apache.org/jira/browse/FLINK-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738457#comment-14738457
]
ASF GitHub Bot commented on FLINK-2639:
---------------------------------------
GitHub user rmetzger opened a pull request:
https://github.com/apache/flink/pull/1113
[FLINK-2639] Add repository for hdp specific jetty to 'vendor-repos' profile
This adds a second hortonworks repository to the `vendor-repos` profile.
Certain HDP-specific Hadoop releases depend on
```
[INFO] | +- org.mortbay.jetty:jetty:jar:6.1.26.hwx:compile
[INFO] | +- org.mortbay.jetty:jetty-util:jar:6.1.26.hwx:compile
```
Which is only available in a special Hortonworks repository.
The dependency comes from
`org.apache.hadoop:hadoop-common:jar:2.6.0.2.2.6.0-2800:compile`.
Usually, we exclude jetty and other libraries which are only needed for
Hadoop's web interfaces.
In this case, the dependency comes from the
`flink-shaded-include-yarn-tests`: The module builds a full shaded Hadoop
package. For the `flink-yarn-tests` we need to also have jetty in the
dependencies, because the YarnMiniCluster is also starting web servers (and we
actually use these to test that Flink's web interface proxy is properly
working).
This change does not affect the regular builds, because the additional
repository is "hidden" by the maven build profile.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rmetzger/flink flink2639
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1113.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1113
----
commit 5aa5294e91a5476ac0f2df606ceaa03d30a532b4
Author: Robert Metzger <[email protected]>
Date: 2015-09-08T17:42:05Z
[FLINK-2639] Add repository for hdp specific jetty to 'vendor-repos'
----
> Building Flink for specific HDP versions fails
> ----------------------------------------------
>
> Key: FLINK-2639
> URL: https://issues.apache.org/jira/browse/FLINK-2639
> Project: Flink
> Issue Type: Bug
> Components: Build System
> Affects Versions: 0.10
> Reporter: Robert Metzger
> Assignee: Robert Metzger
>
> Building Flink for the latest Hadoop version in HDP 2.2 fails
> {{ mvn clean install -DskipTests -Dhadoop.version=2.6.0.2.2.6.0-2800
> -Pvendor-repos}}
> fails with
> {code}
> [ERROR] Failed to execute goal on project flink-shaded-include-yarn-tests:
> Could not resolve dependencies for project
> org.apache.flink:flink-shaded-include-yarn-tests:jar:0.10-SNAPSHOT: The
> following artifacts could not be resolved:
> org.mortbay.jetty:jetty:jar:6.1.26.hwx,
> org.mortbay.jetty:jetty-util:jar:6.1.26.hwx: Could not find artifact
> org.mortbay.jetty:jetty:jar:6.1.26.hwx in cloudera-releases
> (https://repository.cloudera.com/artifactory/cloudera-repos) -> [Help 1]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)