Skip to content

Commit 1ff38aa

Browse files
authored
[release-2.35.0][BEAM-13499] Add warning about log4j to hcatalog javadoc #16311
2 parents 6106fbc + f615f28 commit 1ff38aa

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

sdks/java/extensions/sql/hcatalog/src/main/java/org/apache/beam/sdk/extensions/sql/meta/provider/hcatalog/package-info.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@
1616
* limitations under the License.
1717
*/
1818

19-
/** Table schema for HCatalog. */
19+
/**
20+
* Table schema for HCatalog.
21+
*
22+
* <p><b>WARNING:</b>This package requires users to declare their own dependency on
23+
* org.apache.hive:hive-exec and org.apache.hive.hcatalog. At the time of this Beam release every
24+
* released version of those packages had a transitive dependency on a version of log4j vulnerable
25+
* to CVE-2021-44228. We strongly encourage users to pin a non-vulnerable version of log4j when
26+
* using this package. See <a
27+
* href="https://issues.apache.org/jira/browse/BEAM-13499">BEAM-13499</a>.
28+
*/
2029
@Experimental
2130
package org.apache.beam.sdk.extensions.sql.meta.provider.hcatalog;
2231

sdks/java/io/hcatalog/src/main/java/org/apache/beam/sdk/io/hcatalog/HCatalogIO.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@
7070
/**
7171
* IO to read and write data using HCatalog.
7272
*
73+
* <p><b>WARNING:</b>This package requires users to declare their own dependency on
74+
* org.apache.hive:hive-exec and org.apache.hive.hcatalog. At the time of this Beam release every
75+
* released version of those packages had a transitive dependency on a version of log4j vulnerable
76+
* to CVE-2021-44228. We strongly encourage users to pin a non-vulnerable version of log4j when
77+
* using this package. See <a
78+
* href="https://issues.apache.org/jira/browse/BEAM-13499">BEAM-13499</a>.
79+
*
7380
* <h3>Reading using HCatalog</h3>
7481
*
7582
* <p>HCatalog source supports reading of HCatRecord from a HCatalog managed source, for eg. Hive.

sdks/java/io/hcatalog/src/main/java/org/apache/beam/sdk/io/hcatalog/package-info.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@
1616
* limitations under the License.
1717
*/
1818

19-
/** Transforms for reading and writing using HCatalog. */
19+
/**
20+
* Transforms for reading and writing using HCatalog.
21+
*
22+
* <p><b>WARNING:</b>This package requires users to declare their own dependency on
23+
* org.apache.hive:hive-exec and org.apache.hive.hcatalog. At the time of this Beam release every
24+
* released version of those packages had a transitive dependency on a version of log4j vulnerable
25+
* to CVE-2021-44228. We strongly encourage users to pin a non-vulnerable version of log4j when
26+
* using this package. See <a
27+
* href="https://issues.apache.org/jira/browse/BEAM-13499">BEAM-13499</a>.
28+
*/
2029
@Experimental(Kind.SOURCE_SINK)
2130
package org.apache.beam.sdk.io.hcatalog;
2231

0 commit comments

Comments
 (0)