unitycatalog / unitycatalog/unitycatalog
Docker image issue - cannot read a table from host
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 672
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 30
Description
Describe the bug
I built a UC Docker container and exposed port 8080 on localhost. Since the client tries to connect to http://localhost:8080 by default, I attempted to connect from another terminal running the Java client on the host to the guest.
You'll encounter the same error even when using the --server parameter!
To Reproduce
- Deploy UC server in docker using
docker compose up -d - Open another terminal on host
- run
bin/uc table read --full_name unity.default.numbers --max_results 3
Error message:
Error occurred while executing the command. Failed to read delta table file:///home/unitycatalog/etc/data/external/unity/default/tables/numbers/Failed to read delta table
Expected behavior
Be able to read table.
In case you will start UC server locally on host you will be able to properly read table from another machine using --server parameter
System [please complete the following information]:
Ubuntu 22.04
Additional context
The server needs to be running in a container or a Kubernetes cluster, and tests should be performed against this server—this is the typical setup in most companies.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the setup with docker compose up -d, then run bin/uc table read --full_name unity.default.numbers --max_results 3 from the host, including with --server. Trace the Docker deployment and table-read client entry points to identify why the host cannot read the table, then verify that the same command succeeds against the containerized server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, java
- Domain
- databases, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100