ancient-apartment-23316
09/06/2022, 7:47 AM'failures': [{'error': 'Unable to emit metadata to DataHub GMS',
'info': {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException',
'stackTrace': 'com.linkedin.restli.server.RestLiServiceException [HTTP Status:422]: Failed to validate record with class '
'com.linkedin.dataset.DatasetUsageStatistics: ERROR :: /userCounts/0/user :: "Provided urn urn:li:corpuser:" '
'is invalid\n'
'\n'
'\tat com.linkedin.metadata.resources.entity.AspectResource.lambda$ingestProposal$3(AspectResource.java:142)',
'message': 'Failed to validate record with class com.linkedin.dataset.DatasetUsageStatistics: ERROR :: /userCounts/0/user :: '
'"Provided urn urn:li:corpuser:" is invalid\n',
'status': '422'}}],
I’m used the search here and found that I must use the transformers block
What should I add?
transformers:
- type: "simple_add_dataset_ownership"
config:
owner_urns:
- "urn:li:corpuser" #like this?better-orange-49102
09/06/2022, 7:47 AMtransformers:
- type: "simple_add_dataset_ownership"
config:
owner_urns:
- "urn:li:corpuser:your_user_id_here"
click on your user avatar in the web UI and see the URN in the URL if you're unsureancient-apartment-23316
09/06/2022, 7:51 AMbetter-orange-49102
09/06/2022, 8:04 AMancient-apartment-23316
09/06/2022, 9:37 AM[2022-09-06 12:29:01,890] ERROR {datahub.ingestion.run.pipeline:53} - failed to write record with workunit datasetUsageStatistics-1662336000000-for-urn:li:dataset:(urn:li:dataPlatform:snowflake,asdfasdf.asdasd.qerfqerfqref,DEV) with ('Unable to emit metadata to DataHub GMS', {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'stackTrace': 'com.linkedin.restli.server.RestLiServiceException [HTTP Status:422]: Failed to validate record with class com.linkedin.dataset.DatasetUsageStatistics: ERROR :: /userCounts/0/user :: "Provided urn urn:li:corpuser:" is invalid\n\n\tat com.linkedin.metadata.resources.entity.AspectResource.lambda$ingestProposal$3(AspectResource.java:142)', 'message': 'Failed to validate record with class com.linkedin.dataset.DatasetUsageStatistics: ERROR :: /userCounts/0/user :: "Provided urn urn:li:corpuser:" is invalid\n', 'status': 422}) and info {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'stackTrace': 'com.linkedin.restli.server.RestLiServiceException [HTTP Status:422]: Failed to validate record with class com.linkedin.dataset.DatasetUsageStatistics: ERROR :: /userCounts/0/user :: "Provided urn urn:li:corpuser:" is invalid\n\n\tat com.linkedin.metadata.resources.entity.AspectResource.lambda$ingestProposal$3(AspectResource.java:142)', 'message': 'Failed to validate record with class com.linkedin.dataset.DatasetUsageStatistics: ERROR :: /userCounts/0/user :: "Provided urn urn:li:corpuser:" is invalid\n', 'status': 422}
'info': {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException',
'stackTrace': 'com.linkedin.restli.server.RestLiServiceException [HTTP Status:422]: Failed to validate record with class '
'com.linkedin.dataset.DatasetUsageStatistics: ERROR :: /userCounts/0/user :: "Provided urn urn:li:corpuser:" '
'is invalid\n'
'\n'
'\tat com.linkedin.metadata.resources.entity.AspectResource.lambda$ingestProposal$3(AspectResource.java:142)',
'message': 'Failed to validate record with class com.linkedin.dataset.DatasetUsageStatistics: ERROR :: /userCounts/0/user :: '
'"Provided urn urn:li:corpuser:" is invalid\n',
'status': '422'}},better-orange-49102
09/06/2022, 9:38 AMProvided urn urn:li:corpuser:" is invalid\
how are you specifying the user in the recipebetter-orange-49102
09/06/2022, 9:39 AMurn:li:corpuser:datahubancient-apartment-23316
09/06/2022, 9:39 AMtransformers:
- type: "simple_add_dataset_ownership"
config:
owner_urns:
- "urn:li:corpuser:Username"ancient-apartment-23316
09/06/2022, 9:39 AMancient-apartment-23316
09/06/2022, 9:40 AMbetter-orange-49102
09/06/2022, 9:43 AMancient-apartment-23316
09/06/2022, 9:45 AMhundreds-photographer-13496
09/06/2022, 10:01 AMsnowflake-usage or snowflake-beta ?ancient-apartment-23316
09/06/2022, 10:07 AMancient-apartment-23316
09/06/2022, 10:31 AM{
"entityType": "dataset",
"entityUrn": "urn:li:dataset:(urn:li:oijopij:snowflake,kjnkjnkljnkjnlkj,DEV)",
"changeType": "UPSERT",
"aspectName": "ownership",
"aspect": {
"value": "{\"owners\": [{\"owner\": \"urn:li:corpuser:firstname.lastname@myorg.com\", \"type\": \"DATAOWNER\"}], \"lastModified\": {\"time\": 0, \"actor\": \"urn:li:corpuser:unknown\"}}",
"contentType": "application/json"
},
"systemMetadata": {
"lastObserved": 1662458866167,
"runId": "snowflake-beta-2022_09_06-13_00_09"
}
},
unknown - “lastModified\“: {\“time\“: 0, \“actor\“: \“urnlicorpuser:*unknown*\“}}”ancient-apartment-23316
09/06/2022, 10:31 AMancient-apartment-23316
09/06/2022, 10:31 AMancient-apartment-23316
09/06/2022, 10:32 AMancient-apartment-23316
09/06/2022, 10:36 AMsource:
type: "snowflake-beta"
config:
env: DEV
account_id: "qwe"
warehouse: "asd"
database_pattern:
allow:
- "zxc"
schema_pattern:
allow:
- "www"
username: "DATAHUB_USER"
password: "qwerty"
role: "DATAHUB_DEV"
transformers:
- type: "simple_add_dataset_ownership"
config:
owner_urns:
- "urn:li:corpuser:qwe.asd@sss.com"
sink:
type: "datahub-rest"
config:
server: "<http://dkafjgnakjfngkajfgnakjfg.amazonaws.com:8080>"ancient-apartment-23316
09/06/2022, 10:36 AMancient-apartment-23316
09/06/2022, 10:45 AM{'error': 'Unable to emit metadata to DataHub GMS',
'info': {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException',
'stackTrace': 'com.linkedin.restli.server.RestLiServiceException [HTTP Status:422]: Failed to validate record with class '
'com.linkedin.common.Operation: ERROR :: /actor :: "Provided urn urn:li:corpuser:" is invalid\n'
'\n'
'\tat com.linkedin.metadata.resources.entity.AspectResource.lambda$ingestProposal$3(AspectResource.java:142)',
'message': 'Failed to validate record with class com.linkedin.common.Operation: ERROR :: /actor :: "Provided urn '
'urn:li:corpuser:" is invalid\n',
'status': '422'}},hundreds-photographer-13496
09/06/2022, 10:48 AMbetter-orange-49102
09/06/2022, 10:53 AM@ symbol
for experimentation, if you remove the @sss.com and ingest the file, would the error go away? you can rollback the ingestion laterhundreds-photographer-13496
09/06/2022, 10:55 AMownership aspect, but with datasetUsageStatistics or operation aspect, for which transformer block may not work. @ancient-apartment-23316 - can you check if it works after specifying email_domain: <http://sss.com|sss.com> in recipe ?hundreds-photographer-13496
09/16/2022, 6:17 AMhundreds-photographer-13496
09/20/2022, 6:47 AMancient-apartment-23316
11/08/2022, 9:32 AM