Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iceberg REST Catalog using HiveCatalog backed by Hive Metastore #43

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
15 changes: 13 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repositories {
ext {
icebergVersion = '1.3.1'
awsSdkVersion = '2.20.18'
hadoopVersion = '3.3.4'
}

dependencies {
Expand All @@ -19,8 +20,8 @@ dependencies {
implementation "org.apache.iceberg:iceberg-aws:${icebergVersion}"
implementation "org.apache.iceberg:iceberg-bundled-guava:${icebergVersion}"

implementation 'org.apache.hadoop:hadoop-common:3.3.4'
implementation 'org.apache.hadoop:hadoop-hdfs-client:3.3.4'
implementation "org.apache.hadoop:hadoop-common:${hadoopVersion}"
implementation "org.apache.hadoop:hadoop-hdfs-client:${hadoopVersion}"

runtimeOnly "software.amazon.awssdk:url-connection-client:${awsSdkVersion}"
runtimeOnly "software.amazon.awssdk:apache-client:${awsSdkVersion}"
Expand All @@ -37,6 +38,16 @@ dependencies {

implementation 'org.xerial:sqlite-jdbc:3.43.0.0'
implementation 'org.postgresql:postgresql:42.5.4'

// Hive Metastore Dependencies
implementation "org.apache.iceberg:iceberg-hive-metastore:${icebergVersion}"
implementation "org.apache.hive:hive-metastore:3.1.3"
implementation "org.apache.hadoop:hadoop-mapreduce-client-core:${hadoopVersion}"
constraints {
implementation('org.eclipse.jetty:jetty-servlet:9.4.52.v20230823') {
because 'backwards incompatible changes in earlier versions'
}
}
}

jar {
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
iceberg-rest-catalog:
build: .
image: tabulario/iceberg-rest
ports:
- 8181:8181
environment:
CATALOG_CATALOG__IMPL: org.apache.iceberg.hive.HiveCatalog
CATALOG_URI: thrift://host.docker.internal:9083