Skip to content

URI missing, please provide using --uri, the config or environment variable PYICEBERG_CATALOG__DEFAULT__URI even through PYICEBERG_HOME is set to $HOME #1771

@lk-1984

Description

@lk-1984

Apache Iceberg version

None

Please describe the bug 🐞

I have set PYICEBERG_HOME="$(pwd)" as told in the docs.

https://py.iceberg.apache.org/api/

This information must be placed inside a file called .pyiceberg.yaml located either in the $HOME or %USERPROFILE% directory (depending on whether the operating system is Unix-based or Windows-based, respectively) or in the $PYICEBERG_HOME directory (if the corresponding environment variable is set).
MINIO_REGION=us-east-1
PWD=/home/pyiceberg
MINIO_PORT=9100
HOME=/home/pyiceberg
HIVE_PORT=9083
VIRTUAL_ENV=/home/pyiceberg/.venv
TERM=xterm
MINIO_USERNAME=admin
USER=pyiceberg
HIVE_HOSTNAME=localhost
SHLVL=1
PYICEBERG_HOME=/home/pyiceberg
MINIO_HOSTNAME=localhost
VIRTUAL_ENV_PROMPT=(pyiceberg)
PS1=(pyiceberg)
MINIO_PASSWORD=adminadmin
PATH=/home/pyiceberg/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/pyiceberg/.local/bin
_=/usr/bin/printenv
catalog:
  hive:
    uri: thrift://localhost:9083
    s3.endpoint: http://localhost:9100
    s3.access-key-id: admin
    s3.secret-access-key: adminadmin
    s3.region: us-east-1
total 44
drwx------ 1 pyiceberg pyiceberg 4096 Mar  6 16:48 .
drwxr-xr-x 1 root      root      4096 Mar  6 16:00 ..
-rw-r--r-- 1 pyiceberg pyiceberg   18 Apr 30  2024 .bash_logout
-rw-r--r-- 1 pyiceberg pyiceberg  141 Apr 30  2024 .bash_profile
-rw-r--r-- 1 pyiceberg pyiceberg  594 Mar  6 16:35 .bashrc
drwxr-xr-x 1 pyiceberg pyiceberg 4096 Mar  6 16:35 .cache
drwxr-xr-x 1 pyiceberg pyiceberg 4096 Mar  6 16:35 .local
-rw-r--r-- 1 pyiceberg pyiceberg  179 Mar  6 16:48 .pyiceberg.yaml
drwxr-xr-x 4 pyiceberg pyiceberg 4096 Mar  6 16:35 .venv
-rwxr-xr-x 1 pyiceberg pyiceberg  446 Mar  6 16:34 entrypoint.sh
URI missing, please provide using --uri, the config or environment variable PYICEBERG_CATALOG__DEFAULT__URI

I have Pyiceberg 0.9.0, and Python 3.12.

If I just leave PYICEBERG_HOME unset, the pyiceberg CLI still does not find .pyiceberg.yaml.

Willingness to contribute

  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions