-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Python Emitter not working pypy v0.14.1.3 throws unrecognized field found but not allowed
#11679
Comments
Can confirm setting pip packages to: |
unrecognized field found but not allowed
Same issue here with datahub v0.14.1, |
For some reason 0.14.1.5 is not compatable with 0.14.1 of the server. Example errors: 2024-10-30 14:59:01,029] ERROR {datahub.ingestion.run.pipeline:77} - failed to write record with workunit urn:li:container:c56575847879a9c23df584253cd14d8f-containerProperties with ('Unable to emit metadata to DataHub GMS, likely because the server version is too old relative to the client: Failed to validate record with class com.linkedin.container.ContainerProperties: ERROR :: /env :: unrecognized field found but not allowed\n', {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'message': 'Failed to validate record with class com.linkedin.container.ContainerProperties: ERROR :: /env :: unrecognized field found but not allowed\n', 'status': 422, 'urn': 'urn:li:container:c56575847879a9c23df584253cd14d8f', 'workunit_id': 'urn:li:container:c56575847879a9c23df584253cd14d8f-containerProperties'}) and info {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'message': 'Failed to validate record with class com.linkedin.container.ContainerProperties: ERROR :: /env :: unrecognized field found but not allowed\n', 'status': 422, 'urn': 'urn:li:container:c56575847879a9c23df584253cd14d8f', 'workunit_id': 'urn:li:container:c56575847879a9c23df584253cd14d8f-containerProperties'} [2024-10-30 15:07:06,765] ERROR {datahub.ingestion.run.pipeline:77} - failed to write record with workunit urn:li:tag:dc_display_in_catalogue-tagKey with ('Unable to emit metadata to DataHub GMS, likely because the server version is too old relative to the client: Failed to validate record with class com.linkedin.dashboard.DashboardInfo: ERROR :: /dashboards :: unrecognized field found but not allowed\n', {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'message': 'Failed to validate record with class com.linkedin.dashboard.DashboardInfo: ERROR :: /dashboards :: unrecognized field found but not allowed\n', 'status': 422, 'urn': 'urn:li:tag:dc_display_in_catalogue', 'workunit_id': 'urn:li:tag:dc_display_in_catalogue-tagKey'}) and info {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'message': 'Failed to validate record with class com.linkedin.dashboard.DashboardInfo: ERROR :: /dashboards :: unrecognized field found but not allowed\n', 'status': 422, 'urn': 'urn:li:tag:dc_display_in_catalogue', 'workunit_id': 'urn:li:tag:dc_display_in_catalogue-tagKey'} Similar issues are being reported here datahub-project/datahub#11679 0.14.1.2 seems to work.
For some reason 0.14.1.5 is not compatable with 0.14.1 of the server. Example errors: 2024-10-30 14:59:01,029] ERROR {datahub.ingestion.run.pipeline:77} - failed to write record with workunit urn:li:container:c56575847879a9c23df584253cd14d8f-containerProperties with ('Unable to emit metadata to DataHub GMS, likely because the server version is too old relative to the client: Failed to validate record with class com.linkedin.container.ContainerProperties: ERROR :: /env :: unrecognized field found but not allowed\n', {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'message': 'Failed to validate record with class com.linkedin.container.ContainerProperties: ERROR :: /env :: unrecognized field found but not allowed\n', 'status': 422, 'urn': 'urn:li:container:c56575847879a9c23df584253cd14d8f', 'workunit_id': 'urn:li:container:c56575847879a9c23df584253cd14d8f-containerProperties'}) and info {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'message': 'Failed to validate record with class com.linkedin.container.ContainerProperties: ERROR :: /env :: unrecognized field found but not allowed\n', 'status': 422, 'urn': 'urn:li:container:c56575847879a9c23df584253cd14d8f', 'workunit_id': 'urn:li:container:c56575847879a9c23df584253cd14d8f-containerProperties'} [2024-10-30 15:07:06,765] ERROR {datahub.ingestion.run.pipeline:77} - failed to write record with workunit urn:li:tag:dc_display_in_catalogue-tagKey with ('Unable to emit metadata to DataHub GMS, likely because the server version is too old relative to the client: Failed to validate record with class com.linkedin.dashboard.DashboardInfo: ERROR :: /dashboards :: unrecognized field found but not allowed\n', {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'message': 'Failed to validate record with class com.linkedin.dashboard.DashboardInfo: ERROR :: /dashboards :: unrecognized field found but not allowed\n', 'status': 422, 'urn': 'urn:li:tag:dc_display_in_catalogue', 'workunit_id': 'urn:li:tag:dc_display_in_catalogue-tagKey'}) and info {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'message': 'Failed to validate record with class com.linkedin.dashboard.DashboardInfo: ERROR :: /dashboards :: unrecognized field found but not allowed\n', 'status': 422, 'urn': 'urn:li:tag:dc_display_in_catalogue', 'workunit_id': 'urn:li:tag:dc_display_in_catalogue-tagKey'} Similar issues are being reported here datahub-project/datahub#11679 0.14.1.2 seems to work.
No official tag was published for the v0.14.1 release datahub-project/datahub#11655 However, I suspect that leaving this at the previous version may have been the wrong thing to do, as we are now experiencing compatability issues with the python package, similar to datahub-project/datahub#11679 I'm going to try updating to the latest tag and see if it resolves the comptability issues on v0.14.1.5 of the python package.
We are encountering a similar issue with a custom source we've written using the python package. We create the container metadata using the yield from mcp_builder.gen_containers(
container_key=database_container_key,
name=database_name,
sub_types=sub_types,
domain_urn=domain_urn,
external_url=None,
description=database_description,
created=None,
last_modified=last_modified,
tags=display_tag,
owner_urn=owner_urn,
qualified_name=None,
extra_properties=db_meta_dict,
) On the most recent version of the python package, it logs the following, even though the server is updated to version v0.14.1.
We have the same results as @remisalmon - v0.14.1 works as expected, but any later versions trigger these validation errors. |
Next server side release will address this as well as add a way to ignore unknown fields from future consumers. |
Same issue with dbt core ingestion = "Unable to emit metadata to DataHub GMS". Please use acryl-datahub==0.14.0 and acryl-datahub[dbt]==0.14.0 so the dbt core ingestion can work. |
Describe the bug
Running Datahub Server on Version 14.0.1 and Test on 14.1 we run into following bug since today. Probably a Problem with the pip acryl-datahub Project. Friday there was a shift from v0.14.1.2 to v0.14.1.3.
When I emit Dashboards as MCP events to the Datahub GMS Server in get this error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As before emitting Dashboard with the SDK should work.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: