diff --git a/llap-server/pom.xml b/llap-server/pom.xml index d90296d6023c..0905ca1f24b4 100644 --- a/llap-server/pom.xml +++ b/llap-server/pom.xml @@ -367,9 +367,8 @@ org.apache.logging.log4j - log4j-core + log4j-core-test ${log4j2.version} - tests test diff --git a/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/QueryTracker.java b/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/QueryTracker.java index 6cfa076b9db4..39eda657d5a8 100644 --- a/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/QueryTracker.java +++ b/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/QueryTracker.java @@ -48,8 +48,9 @@ import org.apache.tez.common.security.TokenCache; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.slf4j.Marker; import org.slf4j.MDC; +import org.slf4j.Marker; +import org.slf4j.impl.StaticMarkerBinder; import java.io.IOException; import java.util.Collections; @@ -70,7 +71,7 @@ public class QueryTracker extends AbstractService { private static final Logger LOG = LoggerFactory.getLogger(QueryTracker.class); private static final Marker QUERY_COMPLETE_MARKER = - new Log4jMarker(new Log4jQueryCompleteMarker()); + new Log4jMarker(StaticMarkerBinder.getSingleton().getMarkerFactory(), new Log4jQueryCompleteMarker()); /// Shared singleton MetricsSource instance for all DAG locks private static final MetricsSource LOCK_METRICS; diff --git a/llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TestLlapDaemonLogging.java b/llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TestLlapDaemonLogging.java index 9b03f0fb162e..0145da1a51cc 100644 --- a/llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TestLlapDaemonLogging.java +++ b/llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TestLlapDaemonLogging.java @@ -25,7 +25,7 @@ import org.apache.hadoop.security.token.Token; import org.apache.hive.testutils.junit.extensions.DoNothingTCPServer; import org.apache.hive.testutils.junit.extensions.DoNothingTCPServerExtension; -import org.apache.logging.log4j.junit.LoggerContextSource; +import org.apache.logging.log4j.core.test.junit.LoggerContextSource; import org.apache.tez.common.security.TokenCache; import org.junit.jupiter.api.Test; diff --git a/pom.xml b/pom.xml index da80147e90ce..ad701d4b1a81 100644 --- a/pom.xml +++ b/pom.xml @@ -175,7 +175,7 @@ 0.9.3 0.16.0 - 2.18.0 + 2.23.1 2.5.0 6.2.1.jre8 8.0.31 diff --git a/standalone-metastore/metastore-server/pom.xml b/standalone-metastore/metastore-server/pom.xml index 8367ad533d5b..5350b012510c 100644 --- a/standalone-metastore/metastore-server/pom.xml +++ b/standalone-metastore/metastore-server/pom.xml @@ -412,9 +412,13 @@ org.apache.logging.log4j - log4j-core + log4j-core-test ${log4j2.version} - tests + test + + + org.junit.vintage + junit-vintage-engine test diff --git a/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/utils/TestMetaStoreServerUtils.java b/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/utils/TestMetaStoreServerUtils.java index b78e571b9383..071d7111c1b0 100644 --- a/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/utils/TestMetaStoreServerUtils.java +++ b/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/utils/TestMetaStoreServerUtils.java @@ -44,7 +44,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.core.LoggerContext; import org.apache.logging.log4j.core.config.LoggerConfig; -import org.apache.logging.log4j.test.appender.ListAppender; +import org.apache.logging.log4j.core.test.appender.ListAppender; import org.apache.thrift.TException; import org.hamcrest.core.IsNot; import org.junit.After; diff --git a/standalone-metastore/pom.xml b/standalone-metastore/pom.xml index 04deae9c1661..7ae1bb5aa55b 100644 --- a/standalone-metastore/pom.xml +++ b/standalone-metastore/pom.xml @@ -89,7 +89,7 @@ 5.6.3 0.9.3 0.16.0 - 2.18.0 + 2.23.1 3.4.4 1.8.5 3.24.4