This is an automated email from the ASF dual-hosted git repository. aljoscha pushed a commit to branch release-1.8 in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.8 by this push: new dfac0e2 [FLINK-11791] Describe how to build Flink with Hadoop in build guide dfac0e2 is described below commit dfac0e236f0479001c3f65e5d9cbfbe329316444 Author: Aljoscha Krettek <aljoscha.kret...@gmail.com> AuthorDate: Mon Mar 4 10:34:49 2019 +0100 [FLINK-11791] Describe how to build Flink with Hadoop in build guide --- docs/flinkDev/building.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/flinkDev/building.md b/docs/flinkDev/building.md index db483fe..56cf928 100644 --- a/docs/flinkDev/building.md +++ b/docs/flinkDev/building.md @@ -93,6 +93,14 @@ You can also specify a specific Hadoop version to build against: mvn clean install -DskipTests -Dhadoop.version=2.6.1 {% endhighlight %} +### Packaging Hadoop into the Flink distribution + +If you want to build a Flink distribution that has a shaded Hadoop pre-packaged in the lib folder you can use the `include-hadoop` profile to do so. You would build Flink as described above but include the profile: + +{% highlight bash %} +mvn clean install -DskipTests -Pinclude-hadoop +{% endhighlight %} + ### Vendor-specific Versions To check the list of supported vendor versions, look in https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-hdfs?repo=cloudera To build Flink against a vendor specific Hadoop version, issue the following command: