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

[#396] feat(CI): Accessing HDFS from outside the graviton-ci-hive Docker #398

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Check release token
- name: Check publish Docker token
run: |
if [[ "${secrets_token}" != "${input_token}" ]]; then
echo "The token you entered is incorrect. Please try again."
echo "You have entered an incorrect token. Please re-enter it."
exit 1
fi

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
HIVE_IMAGE_NAME: datastrato/graviton-ci-hive
HIVE_IMAGE_TAG_NAME: 0.1.1
HIVE_IMAGE_TAG_NAME: 0.1.2

concurrency:
group: ${{ github.worklfow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:

- name: Run AMD64 container
run: |
docker run --rm --name ${DOCKER_RUN_NAME} --platform ${PLATFORM} -d -p 8088:8088 -p 50070:50070 -p 50075:50075 -p 10000:10000 -p 10002:10002 -p 8888:8888 -p 9083:9083 -p 8022:22 ${HIVE_IMAGE_NAME}:${HIVE_IMAGE_TAG_NAME}
docker run --rm --name ${DOCKER_RUN_NAME} --platform ${PLATFORM} -d -p 8022:22 -p 8088:8088 -p 8888:8888 -p 9000:9000 -p 9083:9083 -p 10000:10000 -p 10002:10002 -p 50070:50070 -p 50075:50075 ${HIVE_IMAGE_NAME}:${HIVE_IMAGE_TAG_NAME}
docker ps -a

- name: Setup Gradle
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
docker stop ${DOCKER_RUN_NAME}
sleep 3
docker ps -a
docker run --rm --name ${DOCKER_RUN_NAME} --platform ${PLATFORM} -d -p 8088:8088 -p 50070:50070 -p 50075:50075 -p 10000:10000 -p 10002:10002 -p 8888:8888 -p 9083:9083 -p 8022:22 ${HIVE_IMAGE_NAME}:${HIVE_IMAGE_TAG_NAME}
docker run --rm --name ${DOCKER_RUN_NAME} --platform ${PLATFORM} -d -p 8022:22 -p 8088:8088 -p 8888:8888 -p 9000:9000 -p 9083:9083 -p 10000:10000 -p 10002:10002 -p 50070:50070 -p 50075:50075 ${HIVE_IMAGE_NAME}:${HIVE_IMAGE_TAG_NAME}
sleep 60

- name: Integration Test
Expand Down
2 changes: 1 addition & 1 deletion dev/docker/hive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ RUN rm -rf /tmp/packages

################################################################################
# expose port
EXPOSE 8088 50070 50075 10002 10000 8888 9083 7180 22
yuqi1129 marked this conversation as resolved.
Show resolved Hide resolved
EXPOSE 22 8088 8888 9000 9083 10000 10002 50070 50075

################################################################################
# create startup script and set ENTRYPOINT
Expand Down
2 changes: 1 addition & 1 deletion dev/docker/hive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Build Image
Run container
=============
```
docker run --rm -d -p 8088:8088 -p 50070:50070 -p 50075:50075 -p 10000:10000 -p 10002:10002 -p 8888:8888 -p 9083:9083 -p 8022:22 datastrato/graviton-ci-hive:0.1.0
docker run --rm -d -p 8022:22 -p 8088:8088 -p 8888:8888 -p 9000:9000 -p 9083:9083 -p 10000:10000 -p 10002:10002 -p 50070:50070 -p 50075:50075 datastrato/graviton-ci-hive
```

Login to the server
Expand Down
2 changes: 1 addition & 1 deletion dev/docker/hive/core-site.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
<value>hdfs://0.0.0.0:9000</value>
</property>

<property>
Expand Down
6 changes: 3 additions & 3 deletions docs/integration-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Before running the tests, make sure Docker is installed.
Then, execute blow steps:
1. Execute the `./gradlew clean build` command to build Graviton project.
2. The Graviton project is compiled and packaged in the `distribution` directory using the `./gradlew compileDistribution` command.
3. Run a hive docker test environment container in the local using the `docker run --rm -d -p 8088:8088 -p 50070:50070 -p 50075:50075 -p 10000:10000 -p 10002:10002 -p 8888:8888 -p 9083:9083 -p 8022:22 datastrato/graviton-ci-hive:0.1.0` command.
3. Run a hive docker test environment container in the local using the `docker run --rm -d -p 8022:22 -p 8088:8088 -p 8888:8888 -p 9000:9000 -p 9083:9083 -p 10000:10000 -p 10002:10002 -p 50070:50070 -p 50075:50075 datastrato/graviton-ci-hive` command.
4. The integration test cases in the `integration-test` module are executed using the `./gradlew integrationTest` command.

Additionally, the Graviton Server and third-party data source Docker runtime environments will use certain ports. Ensure that these ports are not already in use:
- Graviton Server: Port `8088`
- Hive Docker runtime environment: Ports `50070`, `50075`, `10002`, `10000`, `8888`, `9083`, `7180`, and `22`
- Graviton Server: Port `8090`
- Hive Docker runtime environment: Ports is `22`, `7180`, `8088`, `8888`, `9000`, `9083`, `10000`, `10002`, `50070`, and ` 50075`
4 changes: 2 additions & 2 deletions docs/publish-docker-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ We use Github Actions to publish the docker images to the DockerHub repository.

4. Input the `tag name`, for example: `0.1.0`, Then build and push the docker image name is `datastrato/{image-name}:0.1.0`.

+ Currently, we only support publishing the `hive` docker image, for example: `datastrato/graviton-ci-hive:0.1.0`.
+ Currently, we only support publishing the `hive` docker image, for example: `datastrato/graviton-ci-hive`.
+ We will support publishing other data sources, for example, `Iecberg` docker image in the future.

5. You must enter the correct `publish docker token` before you can execute run `Publish Docker Image` workflow.
Expand All @@ -32,4 +32,4 @@ We use Github Actions to publish the docker images to the DockerHub repository.
## The version of the Data source in the Docker image
| Docker image name | Docker image tag | Data source version |
|-------------------|------------------|--------------------------|
| graviton-ci-hive | 0.1.0 | hadoop-2.7.3, hive-2.3.9 |
| graviton-ci-hive | 0.1.x | hadoop-2.7.3, hive-2.3.9 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why here is 0.1.x?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd better also adding a description column to describe the difference in each version.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added document.