iceberg-python icon indicating copy to clipboard operation
iceberg-python copied to clipboard

Load catalog 'bi_31' but give me catalog 'hive'

Open lihuan92 opened this issue 3 months ago • 1 comments

Question

I use the following code to load the catalog 'bi_31', but it always ends up loading the 'hive' catalog. Does it only support loading the default catalog?

catalog_config = {
    "type":"hive",
    'uri': "thrift://10.108.*.*:32087",
    'warehouse': "s3a://*/*-*-c046a938/bi_31",
    's3.endpoint': "https://ecs01.*.com:9021",
    's3.access-key-id': "AKIA7EB2AEE90E****",
    's3.secret-access-key': "yde7zJK84b4nQEU/95epyi7l****",
}
catalog = load_catalog(name="bi_31", **catalog_config)

Environment Details: PyIceberg Version: 0.10.0 PyArrow Version: 21.0.0 Boto3 Version: 1.34.54 Python Version: 3.10.1

Any answers or help would be greatly appreciated.

lihuan92 avatar Sep 28 '25 07:09 lihuan92

hi @lihuan92, bi_31 here is just an arbitrary name pyiceberg assigns to this catalog. "type":"hive" specifies a hive catalog.

Does it only support loading the default catalog?

What are you trying to do?

kevinjqliu avatar Nov 04 '25 16:11 kevinjqliu