Skip to content

Commit 3eaf1c3

Browse files
committed
Remove Hive 2
1 parent e567e8d commit 3eaf1c3

File tree

54 files changed

+112
-10457
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+112
-10457
lines changed

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jmhJsonOutputPath=build/reports/jmh/results.json
1818
jmhIncludeRegex=.*
1919
systemProp.defaultFlinkVersions=1.20
2020
systemProp.knownFlinkVersions=1.18,1.19,1.20
21-
systemProp.defaultHiveVersions=2
22-
systemProp.knownHiveVersions=2,4
21+
systemProp.defaultHiveVersions=4
22+
systemProp.knownHiveVersions=4
2323
systemProp.defaultSparkVersions=3.5
2424
systemProp.knownSparkVersions=3.3,3.4,3.5
2525
systemProp.defaultKafkaVersions=3

gradle/libs.versions.toml

-6
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ guava = "33.3.1-jre"
4949
hadoop2 = "2.7.3"
5050
hadoop3 = "3.4.1"
5151
httpcomponents-httpclient5 = "5.4.1"
52-
hive2 = { strictly = "2.3.9"} # see rich version usage explanation above
5352
hive4 = "4.0.1"
5453
immutables-value = "2.10.1"
5554
jackson-bom = "2.18.2"
@@ -135,14 +134,9 @@ hadoop2-mapreduce-client-core = { module = "org.apache.hadoop:hadoop-mapreduce-c
135134
hadoop2-minicluster = { module = "org.apache.hadoop:hadoop-minicluster", version.ref = "hadoop2" }
136135
hadoop3-client = { module = "org.apache.hadoop:hadoop-client", version.ref = "hadoop3" }
137136
hadoop3-common = { module = "org.apache.hadoop:hadoop-common", version.ref = "hadoop3" }
138-
hive2-exec = { module = "org.apache.hive:hive-exec", version.ref = "hive2" }
139-
hive2-metastore = { module = "org.apache.hive:hive-metastore", version.ref = "hive2" }
140-
hive2-serde = { module = "org.apache.hive:hive-serde", version.ref = "hive2" }
141-
hive2-service = { module = "org.apache.hive:hive-service", version.ref = "hive2" }
142137
hive4-exec = { module = "org.apache.hive:hive-exec", version.ref = "hive4" }
143138
hive4-metastore = { module = "org.apache.hive:hive-metastore", version.ref = "hive4" }
144139
hive4-standalone-metastore-server = { module = "org.apache.hive:hive-standalone-metastore-server", version.ref = "hive4" }
145-
hive4-serde = { module = "org.apache.hive:hive-serde", version.ref = "hive4" }
146140
hive4-service = { module = "org.apache.hive:hive-service", version.ref = "hive4" }
147141
httpcomponents-httpclient5 = { module = "org.apache.httpcomponents.client5:httpclient5", version.ref = "httpcomponents-httpclient5" }
148142
immutables-value = { module = "org.immutables:value", version.ref = "immutables-value" }

mr/build.gradle

+11-16
Original file line numberDiff line numberDiff line change
@@ -33,48 +33,43 @@ project(':iceberg-mr') {
3333
implementation project(':iceberg-common')
3434
implementation project(':iceberg-core')
3535
api project(':iceberg-data')
36-
implementation project(':iceberg-hive-metastore')
3736
implementation project(':iceberg-orc')
3837
implementation project(':iceberg-parquet')
3938

4039
compileOnly(libs.hadoop2.client) {
4140
exclude group: 'org.apache.avro', module: 'avro'
4241
}
4342

44-
compileOnly("${libs.hive2.exec.get().module}:${libs.hive2.exec.get().getVersion()}:core") {
45-
exclude group: 'com.google.code.findbugs', module: 'jsr305'
46-
exclude group: 'com.google.guava'
43+
implementation libs.caffeine
44+
implementation libs.parquet.column
45+
implementation("${libs.orc.core.get().module}:${libs.versions.orc.get()}:nohive") {
46+
exclude group: 'org.apache.hadoop'
47+
exclude group: 'commons-lang'
48+
// These artifacts are shaded and included in the orc-core fat jar
4749
exclude group: 'com.google.protobuf', module: 'protobuf-java'
48-
exclude group: 'org.apache.avro', module: 'avro'
49-
exclude group: 'org.apache.calcite.avatica'
50-
exclude group: 'org.apache.hive', module: 'hive-llap-tez'
51-
exclude group: 'org.apache.logging.log4j'
52-
exclude group: 'org.pentaho' // missing dependency
53-
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
50+
exclude group: 'org.apache.hive', module: 'hive-storage-api'
5451
}
55-
compileOnly libs.hive2.metastore
56-
compileOnly libs.hive2.serde
57-
58-
implementation libs.caffeine
5952

6053
testImplementation libs.calcite.core
6154
testImplementation libs.calcite.druid
6255

6356
testImplementation project(path: ':iceberg-data', configuration: 'testArtifacts')
6457
testImplementation project(path: ':iceberg-api', configuration: 'testArtifacts')
6558
testImplementation project(path: ':iceberg-core', configuration: 'testArtifacts')
66-
testImplementation project(path: ':iceberg-hive-metastore', configuration: 'testArtifacts')
59+
testImplementation project(path: ':iceberg-hive-metastore')
6760

6861
testImplementation libs.avro.avro
6962
testImplementation libs.calcite.core
7063
testImplementation libs.kryo.shaded
7164
testImplementation platform(libs.jackson.bom)
7265
testImplementation libs.jackson.annotations
73-
testImplementation(libs.hive2.service) {
66+
testImplementation(libs.hive4.service) {
7467
exclude group: 'org.apache.hive', module: 'hive-exec'
68+
exclude group: 'org.pac4j', module: 'pac4j-saml-opensamlv3'
7569
}
7670
testImplementation libs.tez08.dag
7771
testImplementation libs.tez08.mapreduce
72+
testImplementation libs.junit.vintage.engine
7873
}
7974

8075
test {

mr/src/main/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedSupport.java

-46
This file was deleted.

mr/src/main/java/org/apache/iceberg/mr/InputFormatConfig.java

-10
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ private InputFormatConfig() {}
7676

7777
public static final String CATALOG_CONFIG_PREFIX = "iceberg.catalog.";
7878

79-
public enum InMemoryDataModel {
80-
HIVE,
81-
GENERIC // Default data model is of Iceberg Generics
82-
}
83-
8479
public static class ConfigBuilder {
8580
private final Configuration conf;
8681

@@ -163,11 +158,6 @@ public ConfigBuilder preferLocality() {
163158
return this;
164159
}
165160

166-
public ConfigBuilder useHiveRows() {
167-
conf.set(IN_MEMORY_DATA_MODEL, InMemoryDataModel.HIVE.name());
168-
return this;
169-
}
170-
171161
/**
172162
* Compute platforms pass down filters to data sources. If the data source cannot apply some
173163
* filters, or only partially applies the filter, it will return the residual filter back. If

0 commit comments

Comments
 (0)