-
Notifications
You must be signed in to change notification settings - Fork 243
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
PyIceberg - MetaException(message='java.lang.IllegalArgumentException: bucket is null/empty') #1165
Comments
thanks for reporting this. can you add an example code of how you created the table? |
Hello! Sure here you have the code: ` partition_spec = PartitionSpec( from pyiceberg.table.sorting import SortOrder, SortField identifier = ("iceberg", "default") tbl = local_catalog.create_table_if_not_exists(identifier=identifier, tbl.overwrite(df) NOTE: metadata is being created successfully Thanks!! |
This error is not from pyiceberg, but possibly from your underlying (hadoop) fs
This is also not a valid catalog type iceberg-python/pyiceberg/catalog/__init__.py Lines 177 to 183 in 4035747
|
Is this a HMS? I think the error is from the HMS setup |
Yes it's HMS. I configured Hadoop, Hive and HiveMetaStore service also I configured MySQL. I was able to create a new namespace with My intention is creating Iceberg Tables in OCI Object Storage. Is there any documentation I can check to achieve this? Thanks for your responses. |
I don't know any OCI related documentation. However, here's one on setting up a catalog and writing to it. I suggest getting that working and then replacing the catalog with your own. Since you are using HMS, you should be using the Hive Catalog https://py.iceberg.apache.org/configuration/#hive-catalog
|
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible. |
Apache Iceberg version
0.7.1 (latest release)
Please describe the bug 🐞
Problem:
Trying to create table in OCI Object Storage.
Metadata is successfully created but data is not.
Expected:
Iceberg structure created but just metadata is being created.
StackTrace:
Traceback (most recent call last): File "/home/marcolo/development/reorgParquets/.venv/lib/python3.10/site-packages/pyiceberg/catalog/__init__.py", line 418, in create_table_if_not_exists return self.create_table(identifier, schema, location, partition_spec, sort_order, properties) File "/home/marcolo/development/reorgParquets/.venv/lib/python3.10/site-packages/pyiceberg/catalog/hive.py", line 376, in create_table self._create_hive_table(open_client, tbl) File "/home/marcolo/development/reorgParquets/.venv/lib/python3.10/site-packages/pyiceberg/catalog/hive.py", line 325, in _create_hive_table open_client.create_table(hive_table) File "/home/marcolo/development/reorgParquets/.venv/lib/python3.10/site-packages/hive_metastore/ThriftHiveMetastore.py", line 3431, in create_table self.recv_create_table() File "/home/marcolo/development/reorgParquets/.venv/lib/python3.10/site-packages/hive_metastore/ThriftHiveMetastore.py", line 3457, in recv_create_table raise result.o3 hive_metastore.ttypes.MetaException: MetaException(message='java.lang.IllegalArgumentException: bucket is null/empty')
Iceberg Catalog:
`local_catalog = load_catalog(name='s3',
uri="thrift://localhost:9083",
warehouse= "s3a://my_bucket",
catalog_type= "hadoop",
The text was updated successfully, but these errors were encountered: