From 56b928b86f735ad97195d6f575037af3cdfff8be Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 13 Sep 2023 18:10:24 +0100 Subject: [PATCH] YARN-11498. Add exclusion for jettison everywhere jersey-json is loaded (#5786) All uses of jersey-json in the yarn and other hadoop modules now exclude the obsolete org.codehaus.jettison/jettison and so avoid all security issues which can come from the library. Contributed by PJ Fanning --- hadoop-client-modules/hadoop-client-minicluster/pom.xml | 4 ++++ hadoop-common-project/hadoop-common/pom.xml | 4 ++++ hadoop-project/pom.xml | 4 ++++ hadoop-tools/hadoop-resourceestimator/pom.xml | 4 ++++ .../hadoop-yarn-applications-catalog-webapp/pom.xml | 4 ++++ .../hadoop-yarn-server-applicationhistoryservice/pom.xml | 4 ++++ .../hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml | 4 ++++ .../hadoop-yarn-server-resourcemanager/pom.xml | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/hadoop-client-modules/hadoop-client-minicluster/pom.xml b/hadoop-client-modules/hadoop-client-minicluster/pom.xml index 208345d5f5..c772a6ed68 100644 --- a/hadoop-client-modules/hadoop-client-minicluster/pom.xml +++ b/hadoop-client-modules/hadoop-client-minicluster/pom.xml @@ -443,6 +443,10 @@ javax.xml.bind jaxb-api + + org.codehaus.jettison + jettison + diff --git a/hadoop-common-project/hadoop-common/pom.xml b/hadoop-common-project/hadoop-common/pom.xml index 41707f5002..207f1f5351 100644 --- a/hadoop-common-project/hadoop-common/pom.xml +++ b/hadoop-common-project/hadoop-common/pom.xml @@ -173,6 +173,10 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider + + org.codehaus.jettison + jettison + diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index cba562dd14..08fe5af0ee 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -949,6 +949,10 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider + + org.codehaus.jettison + jettison + diff --git a/hadoop-tools/hadoop-resourceestimator/pom.xml b/hadoop-tools/hadoop-resourceestimator/pom.xml index 89e248f9a7..a6f6c691b3 100644 --- a/hadoop-tools/hadoop-resourceestimator/pom.xml +++ b/hadoop-tools/hadoop-resourceestimator/pom.xml @@ -94,6 +94,10 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider + + org.codehaus.jettison + jettison + diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/pom.xml index 3acd9ce0ea..1a2c37faad 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/pom.xml @@ -123,6 +123,10 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider + + org.codehaus.jettison + jettison + diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/pom.xml index d0fd79aaa7..b55dd30a17 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/pom.xml @@ -117,6 +117,10 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider + + org.codehaus.jettison + jettison + diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml index a66b666402..3b5c373f50 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/pom.xml @@ -166,6 +166,10 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider + + org.codehaus.jettison + jettison + diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml index d36ca02d7d..71981e02e7 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml @@ -122,6 +122,10 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider + + org.codehaus.jettison + jettison +