[Bug]: Hadoop 2 binary LICENSE is missing entries for Hadoop 2-only bundled jars

オープン 初心者向け
#4,480 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
77/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
hadoop, java
領域
release

調査の方向性

LICENSE-binaryを読み、Apache License Version 2.0の項目を、issueに記載されているHadoop 2専用のjar座標と比較してください。不足している座標を「(Hadoop 2)」のラベル付きで追加し、既存の項目を削除せずに、記載されたjarをすべて網羅していることを確認してください。Hadoop 2バイナリのLICENSEが、記載された各jarを網羅したら完了です。

索引モデルが issue の本文から書いたものです。

説明

What happened?

The Hadoop 2 binary convenience distribution, apache-amoro-0.9.0-incubating-bin-hadoop2.tar.gz, bundles jars that are not listed in its LICENSE (generated from LICENSE-binary; the Hadoop 2 and Hadoop 3 tarballs ship the same LICENSE).

Found while reviewing the 0.9.0-incubating RC14 binaries (tag v0.9.0-rc14, commit 18d12b99d5297dbd0bb4eb72517c4855d75210f6). I checked every jar in lib/ against the LICENSE entries, including wildcard entries such as org.apache.hadoop:hadoop-*.

This issue covers the jars that only the Hadoop 2 tarball ships. The jars missing from both tarballs (transaction-api, oro, ipaddress, ant, ant-launcher, ivy, and ant:ant:1.6.5) are covered in #4479.

All of these jars are Apache-2.0, judging by their poms and manifests, so there is no licence-category problem; the LICENSE list is just incomplete.

Jar in lib/ Coordinates ASF?
apacheds-i18n-2.0.0-M15.jar org.apache.directory.server:apacheds-i18n yes
apacheds-kerberos-codec-2.0.0-M15.jar org.apache.directory.server:apacheds-kerberos-codec yes
api-asn1-api-1.0.0-M20.jar org.apache.directory.api:api-asn1-api yes
api-util-1.0.0-M20.jar org.apache.directory.api:api-util yes
htrace-core4-4.1.0-incubating.jar org.apache.htrace:htrace-core4 yes
geronimo-jcache_1.0_spec-1.0-alpha-1.jar org.apache.geronimo.specs:geronimo-jcache_1.0_spec yes
jasper-compiler-5.5.23.jar tomcat:jasper-compiler yes (Apache Tomcat)
jasper-runtime-5.5.23.jar tomcat:jasper-runtime yes (Apache Tomcat)
jackson-core-asl-1.9.13.jar org.codehaus.jackson:jackson-core-asl no
jackson-mapper-asl-1.9.13.jar org.codehaus.jackson:jackson-mapper-asl no
jackson-jaxrs-1.9.13.jar org.codehaus.jackson:jackson-jaxrs no
jackson-xc-1.9.13.jar org.codehaus.jackson:jackson-xc no
json-smart-2.3.jar net.minidev:json-smart no
accessors-smart-1.2.jar net.minidev:accessors-smart no
ehcache-3.3.1.jar org.ehcache:ehcache no
unused-1.0.0.jar org.spark-project.spark:unused no

Apart from these, the Hadoop 2 tarball checks out:

  • NOTICE carries the third-party notices from the bundled jars.
  • The Hadoop 2-specific CDDL components (jaxb-api 2.2.2, jsp-api 2.1, stax-api 1.0-2) and the non-Apache jars (mssql-jdbc, py4j, pickle) are covered.
  • Every lib/…jar path referenced in LICENSE exists, except entries explicitly labelled "(Hadoop 3)".
Suggested fix

Add the coordinates above to the "Apache License Version 2.0" section of LICENSE-binary, labelled "(Hadoop 2)" as the file already does for other distribution-specific entries. Wildcards would cover several at once, for example org.apache.directory.server:apacheds-*, org.apache.directory.api:api-*, org.codehaus.jackson:jackson-*, net.minidev:*-smart and tomcat:jasper-*.

As suggested in #4479, a release-tooling check that fails when a jar in lib/ has no matching LICENSE entry would catch this for both Hadoop profiles.

Affects Versions

0.9.0-incubating (RC14)

How to reproduce
tar xzf apache-amoro-0.9.0-incubating-bin-hadoop2.tar.gz && cd amoro-0.9.0-incubating
ls lib | grep -E '^(apacheds|api-asn1|api-util|htrace|geronimo-jcache|jasper|jackson-(core|mapper)-asl|jackson-jaxrs|jackson-xc|json-smart|accessors-smart|ehcache|unused)-'
grep -n -iE 'apacheds|directory\.api|htrace|geronimo|jasper|codehaus\.jackson|minidev|ehcache|spark-project' LICENSE   # no output
主要言語
Java
スター
1.2k
フォーク
398
平均マージ
3日 7時間
マージ済み PR(30日)
15

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/amoro のほかの issue

apache/amoro の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。