Skip to content

Feature/hadoop catalog support #118

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

Open
wants to merge 4 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
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM azul/zulu-openjdk:17 as builder
FROM azul/zulu-openjdk:17 AS builder

COPY . /app/
WORKDIR /app/
Expand All @@ -29,14 +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_URI=jdbc:sqlite:file:/tmp/iceberg_rest_mode=memory
ENV CATALOG_JDBC_USER=user
ENV CATALOG_JDBC_PASSWORD=password
ENV REST_PORT=8181

EXPOSE $REST_PORT
USER iceberg:iceberg
ENV LANG en_US.UTF-8
ENV LANG=en_US.UTF-8
WORKDIR /usr/lib/iceberg-rest
CMD ["java", "-jar", "iceberg-rest-image-all.jar"]
32 changes: 30 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,49 @@ repositories {
}

ext {
icebergVersion = '1.6.0'
hadoopVersion = '3.3.6'
icebergVersion = '1.7.1'
hadoopVersion = '3.4.1'
}

configurations {
iceberg_core_test { transitive = false }
}

dependencies {
iceberg_core_test "org.apache.iceberg:iceberg-core:${icebergVersion}:tests"
}

task unzipIcebergTestJar(type: Copy) {
from zipTree(configurations.iceberg_core_test.singleFile)
into ("$buildDir/libs/iceberg-tests")
include '**/*.class'
exclude '**/S3ABlockOutputStream.class'
exclude '**/RESTCatalogAdapter.class'
dependsOn configurations.iceberg_core_test
}

dependencies {
implementation "org.apache.iceberg:iceberg-api:${icebergVersion}"
implementation "org.apache.iceberg:iceberg-core:${icebergVersion}"

implementation files("$buildDir/libs/iceberg-tests") {
builtBy "unzipIcebergTestJar"
}

implementation "org.apache.iceberg:iceberg-core:${icebergVersion}:tests"
implementation "org.apache.iceberg:iceberg-aws:${icebergVersion}"
implementation "org.apache.iceberg:iceberg-azure:${icebergVersion}"
implementation "org.apache.iceberg:iceberg-gcp:${icebergVersion}"
implementation "org.apache.iceberg:iceberg-open-api:${icebergVersion}:test-fixtures"
implementation "org.apache.iceberg:iceberg-bundled-guava:${icebergVersion}"

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

implementation "org.eclipse.jetty:jetty-server:11.0.4"
implementation "org.eclipse.jetty:jetty-servlet:11.0.4"

runtimeOnly "org.apache.iceberg:iceberg-aws-bundle:${icebergVersion}"
runtimeOnly "org.apache.iceberg:iceberg-azure-bundle:${icebergVersion}"
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.jvmargs=-Xmx2g
Loading