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

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

merged 2 commits into from
Sep 18, 2023

Conversation

xunliu
Copy link
Member

@xunliu xunliu commented Sep 14, 2023

What changes were proposed in this pull request?

We need to change these configurations:

  • Modify fs.defaultFS to hdfs://0.0.0.0:9000 in the /usr/local/hadoop/etc/hadoop/core-site.xml file.
  • Export 9000 port in the Dockerfile, Trino needs to access HDFS.

Optimized

  • Remove 7180 port, It's an unused port. It's look like Cloudera manager port
  • Reorder port list in the Dockerfile, Docker run command, and docs.
  • Removed special tag name for docker run command, automatically using latest.

Why are the changes needed?

Currently, HDFS uses localhost in the graviton-ci-hive Docker. localhost is a loopback IP address in the LINUX,
The application (Trino) can't use this IP to access HDFS in the graviton-ci-hive Docker container.

Fix: #396

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

CI passed

@github-actions
Copy link

Code Coverage Report

Overall Project 62.86% 🟢

There is no coverage information present for the Files changed

dev/docker/hive/Dockerfile Show resolved Hide resolved
@@ -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.

@jerryshao jerryshao changed the title [#396] docker: Accessing HDFS from outside the graviton-ci-hive Docker [#396] feat(CI): Accessing HDFS from outside the graviton-ci-hive Docker Sep 15, 2023
@xunliu
Copy link
Member Author

xunliu commented Sep 18, 2023

@jerryshao @yuqi1129 Please help me review again. Thanks.

@jerryshao jerryshao merged commit 55aa215 into apache:main Sep 18, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Subtask] Accessing HDFS from outside the graviton-ci-hive Docker
3 participants