Closed shaofengshi closed 3 months ago
Start Gravitino playground, open Jupyter notebook, open "gravitino-fileset-example.ipynb", and then execute step by step.
When execute the second step,
metalake = gravitino_admin_client.create_metalake(name=metalake_name, comment="metalake comment", properties={})
it reported error:
TypeError Traceback (most recent call last) Cell In[6], line 9 7 # Create metalake via Gravitino admin client 8 metalake_name="default" ----> 9 metalake = gravitino_admin_client.create_metalake(name=metalake_name, 10 comment="metalake comment", 11 properties={}) 12 print(metalake) TypeError: GravitinoAdminClient.create_metalake() got an unexpected keyword argument 'name'
It seems that, the scripts in notebook used the un-released 0.6.0 python API, while pip installed is old 0.5 release (see https://github.com/apache/gravitino/blob/v0.5.1/clients/client-python/gravitino/client/gravitino_admin_client.py).
To fix, the notebook should use old API, unstill 0.6.0 got released.
My fault, my environment is not clean. Close this issue.
Start Gravitino playground, open Jupyter notebook, open "gravitino-fileset-example.ipynb", and then execute step by step.
When execute the second step,
it reported error:
It seems that, the scripts in notebook used the un-released 0.6.0 python API, while pip installed is old 0.5 release (see https://github.com/apache/gravitino/blob/v0.5.1/clients/client-python/gravitino/client/gravitino_admin_client.py).
To fix, the notebook should use old API, unstill 0.6.0 got released.