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

Support for HiveMetastore catalog #93

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ RUN \

COPY --from=builder --chown=iceberg:iceberg /app/build/libs/iceberg-rest-image-all.jar /usr/lib/iceberg-rest/iceberg-rest-image-all.jar

ENV CATALOG_CATALOG__IMPL=org.apache.iceberg.jdbc.JdbcCatalog
ENV CATALOG_CATALOG__IMPL=org.apache.iceberg.jdbc.JdbcCatalog
# For HiveMetastore the environment variable - org.apache.iceberg.hive.HiveCatalog
ENV CATALOG_URI=jdbc:sqlite:file:/tmp/iceberg_rest_mode=memory
# For HMS URI thrift://hms_url:9083
ENV CATALOG_JDBC_USER=user
ENV CATALOG_JDBC_PASSWORD=password
ENV REST_PORT=8181
Expand Down
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies {
implementation "org.apache.iceberg:iceberg-bundled-guava:${icebergVersion}"

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

runtimeOnly "org.apache.iceberg:iceberg-aws-bundle:${icebergVersion}"
Expand All @@ -51,6 +52,19 @@ dependencies {

implementation 'org.xerial:sqlite-jdbc:3.45.3.0'
implementation 'org.postgresql:postgresql:42.7.2'

//Adding S3FileIO dependency
implementation(platform('software.amazon.awssdk:bom:2.21.1'))
implementation('software.amazon.awssdk:s3')
//Adding Hive Metastore Catalog dependency
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