From 4e326f0c970bf319690601482ed548e6a84125a4 Mon Sep 17 00:00:00 2001 From: Viraj Jasani Date: Mon, 13 Dec 2021 10:33:32 +0530 Subject: [PATCH] HADOOP-18039. Upgrade hbase2 version and fix TestTimelineWriterHBaseDown (#3768) Signed-off-by: Akira Ajisaka --- hadoop-project/pom.xml | 5 ++-- .../pom.xml | 24 +++++++++++++++++++ .../storage/TestTimelineWriterHBaseDown.java | 2 +- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index 62e047254b..ec64857ed2 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -200,7 +200,7 @@ 1.5.4 1.26 1.7.1 - 2.0.2 + 2.2.4 4.13.2 5.5.1 5.5.1 @@ -2427,9 +2427,10 @@ ${hbase.two.version} - 3.0.0 + 2.8.5 11.0.2 hadoop-yarn-server-timelineservice-hbase-server-2 + 9.3.27.v20190418 diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests/pom.xml index 8eebb782da..fee962575e 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests/pom.xml @@ -515,6 +515,30 @@ mockito-core test + + org.eclipse.jetty + jetty-server + test + ${hbase-compatible-jetty.version} + + + org.eclipse.jetty + jetty-servlet + test + ${hbase-compatible-jetty.version} + + + org.eclipse.jetty + jetty-webapp + test + ${hbase-compatible-jetty.version} + + + org.eclipse.jetty + jetty-util + test + ${hbase-compatible-jetty.version} + diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests/src/test/java/org/apache/hadoop/yarn/server/timelineservice/storage/TestTimelineWriterHBaseDown.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests/src/test/java/org/apache/hadoop/yarn/server/timelineservice/storage/TestTimelineWriterHBaseDown.java index cb89ba4223..5d658b96c5 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests/src/test/java/org/apache/hadoop/yarn/server/timelineservice/storage/TestTimelineWriterHBaseDown.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests/src/test/java/org/apache/hadoop/yarn/server/timelineservice/storage/TestTimelineWriterHBaseDown.java @@ -43,12 +43,12 @@ public void testTimelineWriterHBaseDown() throws Exception { HBaseTestingUtility util = new HBaseTestingUtility(); HBaseTimelineWriterImpl writer = new HBaseTimelineWriterImpl(); try { + util.startMiniCluster(); Configuration c1 = util.getConfiguration(); c1.setLong(TIMELINE_SERVICE_READER_STORAGE_MONITOR_INTERVAL_MS, 5000); writer.init(c1); writer.start(); - util.startMiniCluster(); DataGeneratorForTest.createSchema(util.getConfiguration()); TimelineStorageMonitor storageMonitor = writer.