unitycatalog / unitycatalog/unitycatalog

Docker image issue - cannot read a table from host

Open
#851 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Deploy UC server in docker using docker compose up -d
  2. Open another terminal on host
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.