Skip to content

Commit 4f0eda5

Browse files
committed
Upgrade to Hadoop 3.4.0
1 parent 436639a commit 4f0eda5

File tree

9 files changed

+7
-56
lines changed

9 files changed

+7
-56
lines changed

common/src/java/org/apache/hadoop/hive/common/JvmMetrics.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import static org.apache.hadoop.hive.common.JvmMetricsInfo.*;
2222

23-
import org.apache.hadoop.log.metrics.EventCounter;
2423
import org.apache.hadoop.metrics2.MetricsCollector;
2524
import org.apache.hadoop.metrics2.MetricsInfo;
2625
import org.apache.hadoop.metrics2.MetricsRecordBuilder;
@@ -96,7 +95,6 @@ public void getMetrics(MetricsCollector collector, boolean all) {
9695
getMemoryUsage(rb);
9796
getGcUsage(rb);
9897
getThreadUsage(rb);
99-
getEventCounters(rb);
10098
}
10199

102100
private void getMemoryUsage(MetricsRecordBuilder rb) {
@@ -201,11 +199,4 @@ public ThreadCountResult(int threadsNew, int threadsRunnable, int threadsBlocked
201199
this.threadsTerminated = threadsTerminated;
202200
}
203201
}
204-
205-
private void getEventCounters(MetricsRecordBuilder rb) {
206-
rb.addCounter(LogFatal, EventCounter.getFatal())
207-
.addCounter(LogError, EventCounter.getError())
208-
.addCounter(LogWarn, EventCounter.getWarn())
209-
.addCounter(LogInfo, EventCounter.getInfo());
210-
}
211202
}

itests/hcatalog-unit/pom.xml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -357,23 +357,4 @@
357357
</plugin>
358358
</plugins>
359359
</build>
360-
<profiles>
361-
<profile>
362-
<!-- See HIVE-24473 -->
363-
<id>gahbase</id>
364-
<activation>
365-
<property>
366-
<name>hbase.version</name>
367-
</property>
368-
</activation>
369-
<dependencies>
370-
<dependency>
371-
<groupId>org.apache.hbase</groupId>
372-
<artifactId>hbase-zookeeper</artifactId>
373-
<classifier>tests</classifier>
374-
<scope>test</scope>
375-
</dependency>
376-
</dependencies>
377-
</profile>
378-
</profiles>
379360
</project>

itests/util/pom.xml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -258,22 +258,4 @@
258258
</exclusions>
259259
</dependency>
260260
</dependencies>
261-
<profiles>
262-
<profile>
263-
<!-- See HIVE-24473 -->
264-
<id>gahbase</id>
265-
<activation>
266-
<property>
267-
<name>hbase.version</name>
268-
</property>
269-
</activation>
270-
<dependencies>
271-
<dependency>
272-
<groupId>org.apache.hbase</groupId>
273-
<artifactId>hbase-zookeeper</artifactId>
274-
<classifier>tests</classifier>
275-
</dependency>
276-
</dependencies>
277-
</profile>
278-
</profiles>
279261
</project>

itests/util/src/main/java/org/apache/hadoop/hive/hbase/HBaseTestSetup.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ private void setUpFixtures(HiveConf conf) throws Exception {
106106
"org.apache.hadoop.hbase.shaded.");
107107

108108
Configuration hbaseConf = HBaseConfiguration.create(conf);
109+
// A workaround for HBASE-28908
110+
hbaseConf.set("hbase.wal.provider", "filesystem");
109111
util = new HBaseTestingUtility(hbaseConf);
110112

111113
util.startMiniDFSCluster(1);

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@
140140
<guava.version>22.0</guava.version>
141141
<groovy.version>2.4.21</groovy.version>
142142
<h2database.version>2.2.220</h2database.version>
143-
<hadoop.version>3.3.6</hadoop.version>
143+
<hadoop.version>3.4.0</hadoop.version>
144144
<hadoop.bin.path>${basedir}/${hive.path.to.root}/testutils/hadoop</hadoop.bin.path>
145145
<hamcrest.version>1.3</hamcrest.version>
146-
<hbase.version>2.5.6-hadoop3</hbase.version>
146+
<hbase.version>2.5.10-hadoop3</hbase.version>
147147
<hppc.version>0.7.2</hppc.version>
148148
<!-- required for logging test to avoid including hbase which pulls disruptor transitively -->
149149
<disruptor.version>3.3.7</disruptor.version>

standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/tools/metatool/MetaToolTaskListExtTblLocs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ private void createOutputList(Set<String> locations, String outputDir, String db
341341
* Table-name followed by "*" indicates that all partitions are inside table location.
342342
* Otherwise, we record the number of partitions covered by table location.
343343
*/
344-
private JSONArray listOutputEntities(HashSet<String> locations) {
344+
private JSONArray listOutputEntities(HashSet<String> locations) throws JSONException {
345345
List<String> listEntities = new ArrayList<>();
346346
for(String loc : locations) {
347347
DataLocation data = inputLocations.get(loc);

standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestRemoteHiveMetastoreWithHttpJwt.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
import java.util.Date;
5050
import java.util.UUID;
5151
import java.util.concurrent.TimeUnit;
52-
import org.junit.Ignore;
5352
import org.junit.Test;
5453
import org.junit.experimental.categories.Category;
5554
import org.slf4j.Logger;
@@ -58,8 +57,6 @@
5857
import static com.github.tomakehurst.wiremock.client.WireMock.get;
5958
import static com.github.tomakehurst.wiremock.client.WireMock.ok;
6059
import static org.junit.Assert.assertEquals;
61-
import static org.junit.Assert.assertFalse;
62-
import static org.junit.Assert.assertTrue;
6360

6461
/*
6562
Tests JWT auth in HiveMetastore server.
@@ -94,9 +91,7 @@ public class TestRemoteHiveMetastoreWithHttpJwt {
9491
public static void makeEnvModifiable() throws Exception {
9592
envMap = new HashMap<>();
9693
Class<?> envClass = Class.forName("java.lang.ProcessEnvironment");
97-
Field theEnvironmentField = envClass.getDeclaredField("theEnvironment");
9894
Field theUnmodifiableEnvironmentField = envClass.getDeclaredField("theUnmodifiableEnvironment");
99-
removeStaticFinalAndSetValue(theEnvironmentField, envMap);
10095
removeStaticFinalAndSetValue(theUnmodifiableEnvironmentField, envMap);
10196
}
10297

standalone-metastore/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</dropwizard-metrics-hadoop-metrics2-reporter.version>
8080
<dropwizard.version>3.1.0</dropwizard.version>
8181
<guava.version>22.0</guava.version>
82-
<hadoop.version>3.3.6</hadoop.version>
82+
<hadoop.version>3.4.0</hadoop.version>
8383
<hikaricp.version>4.0.3</hikaricp.version>
8484
<jackson.version>2.16.1</jackson.version>
8585
<jexl.version>3.3</jexl.version>

storage-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<maven.compiler.target>1.8</maven.compiler.target>
3131
<commons-logging.version>1.1.3</commons-logging.version>
3232
<guava.version>22.0</guava.version>
33-
<hadoop.version>3.3.6</hadoop.version>
33+
<hadoop.version>3.4.0</hadoop.version>
3434
<junit.version>4.13.2</junit.version>
3535
<junit.jupiter.version>5.6.3</junit.jupiter.version>
3636
<junit.vintage.version>5.6.3</junit.vintage.version>

0 commit comments

Comments
 (0)