rmoff commented on code in PR #15124: URL: https://github.com/apache/iceberg/pull/15124#discussion_r2811751037
########## docker/iceberg-flink-quickstart/README.md: ########## @@ -0,0 +1,98 @@ +<!-- + - Licensed to the Apache Software Foundation (ASF) under one + - or more contributor license agreements. See the NOTICE file + - distributed with this work for additional information + - regarding copyright ownership. The ASF licenses this file + - to you under the Apache License, Version 2.0 (the + - "License"); you may not use this file except in compliance + - with the License. You may obtain a copy of the License at + - + - http://www.apache.org/licenses/LICENSE-2.0 + - + - Unless required by applicable law or agreed to in writing, + - software distributed under the License is distributed on an + - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + - KIND, either express or implied. See the License for the + - specific language governing permissions and limitations + - under the License. + --> + +# Iceberg Flink Quickstart Docker Image + +A pre-configured Apache Flink image with Apache Iceberg dependencies for quickly getting started with Iceberg on Flink. + +## Overview + +This Docker image extends the official Apache Flink image to include: + +- Iceberg Flink runtime +- Iceberg AWS bundle for S3/Glue support +- Minimal Hadoop dependencies necessary for Flink + +## Build Arguments + +The following build arguments can be customized when building the image: + +| Argument | Default | Description | +|----------|---------|-------------| +| `FLINK_VERSION` | `2.0` | Apache Flink version | +| `ICEBERG_VERSION` | `1.10.1` | Apache Iceberg version | +| `ICEBERG_FLINK_RUNTIME_VERSION` | `2.0` | Iceberg Flink runtime version | +| `ICEBERG_AWS_BUNDLE_VERSION` | `1.9.2` | Iceberg AWS bundle version | +| `HADOOP_VERSION` | `3.3.4` | Apache Hadoop version | + +## Building Locally + +To build the image locally with default versions: + +```bash +docker build -t apache/iceberg-flink-quickstart docker/iceberg-flink-quickstart/ +``` + +To build with custom versions: + +```bash +docker build \ + --build-arg FLINK_VERSION=2.0 \ + --build-arg ICEBERG_VERSION=1.10.1 \ + -t apache/iceberg-flink-quickstart \ + docker/iceberg-flink-quickstart/ +``` + +## Usage + +### Using docker-compose + +The easiest way to get started is using the quickstart docker-compose file: + +```bash +cd flink/quickstart +docker compose up -d +``` + +Then connect to Flink SQL client: + +```bash +docker exec -it jobmanager ./bin/sql-client.sh +``` + +### Running Directly + +```bash +# Start JobManager +docker run -d --name jobmanager \ + -e FLINK_PROPERTIES="jobmanager.rpc.address: jobmanager" \ + apache/iceberg-flink-quickstart:latest \ + jobmanager + +# Start TaskManager +docker run -d --name taskmanager \ + -e FLINK_PROPERTIES="jobmanager.rpc.address: jobmanager" \ + --link jobmanager:jobmanager \ Review Comment: i believe that it's correct; the taskmanager needs to know where to find the job manager. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
