Skip to content
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

After associating a Dataset with Structured Property (through GraphiQL), the dataset UI vanished #11995

Open
raychaudhuri-amitava opened this issue Dec 1, 2024 · 3 comments
Labels
bug Bug report

Comments

@raychaudhuri-amitava
Copy link

raychaudhuri-amitava commented Dec 1, 2024

Hello,

Datahub setup is done using:
python3 -m datahub docker quickstart --arch arm64
python -m datahub docker ingest-sample-data

Issue:
I tried to associate a Structured Property with Dataset using the following mutation graphql:
mutation upsertStructuredProperties {
upsertStructuredProperties(
input: {
assetUrn: "urn:li:dataset:(urn:li:dataPlatform:hive,SampleHiveDataset,PROD)",
structuredPropertyInputParams: [
{
structuredPropertyUrn: "urn:li:structuredProperty:PIIROWS",
values: [
{
stringValue: "event_name-event_data"
}
]
}
]
}
) {
properties{
structuredProperty{
urn
}
}
}
}
After this I am not able to see anything on UI.
http://localhost:9002/dataset/urn:li:dataset:(urn:li:dataPlatform:hive,SampleHiveDataset,PROD)
DataHub
Something went wrong.
An unexpected error occurred. Please try again later, or reach out to your administrator
Need support? Check out these resources:
DataHub Project
DataHub Docs
DataHub GitHub (edited)
Screenshot 2024-12-02 at 3 16 41 AM

@raychaudhuri-amitava raychaudhuri-amitava added the bug Bug report label Dec 1, 2024
@datamacgyver
Copy link

Suspect I'm having the same issue on 0.15.0, even creating structured properties in the UI raises and internal server error. Did you ever fix it @raychaudhuri-amitava ?

@datamacgyver
Copy link

datamacgyver commented Jan 14, 2025

The logs are exciting:

025-01-14 21:11:44,444 [ForkJoinPool.commonPool-worker-357] ERROR c.l.d.g.e.DataHubDataFetcherExceptionHandler:45 - Failed to execute
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class com.linkedin.datahub.graphql.types.entitytype.EntityTypeUrnMapper
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
at java.base/java.util.concurrent.CompletableFuture$BiRelay.tryFire(CompletableFuture.java:1498)
at java.base/java.util.concurrent.CompletableFuture$CoCompletion.tryFire(CompletableFuture.java:1219)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162)
at org.dataloader.DataLoaderHelper.lambda$dispatchQueueBatch$3(DataLoaderHelper.java:273)
at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:990)
at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:974)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.linkedin.datahub.graphql.types.entitytype.EntityTypeUrnMapper
at com.linkedin.datahub.graphql.types.entitytype.EntityTypeEntityMapper.apply(EntityTypeEntityMapper.java:40)
at com.linkedin.datahub.graphql.types.entitytype.EntityTypeEntityMapper.map(EntityTypeEntityMapper.java:23)
at com.linkedin.datahub.graphql.types.entitytype.EntityTypeType.lambda$batchLoad$0(EntityTypeType.java:71)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at com.linkedin.datahub.graphql.types.entitytype.EntityTypeType.batchLoad(EntityTypeType.java:73)
at com.linkedin.datahub.graphql.GmsGraphQLEngine.lambda$createDataLoader$266(GmsGraphQLEngine.java:3138)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
... 6 common frames omitted
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalArgumentException: Multiple entries with same key: dataProcessInstance=urn:li:entityType:datahub.dataProcessInstance and dataProcessInstance=urn:li:entityType:datahub.dataProcessInstance [in thread "ForkJoinPool.commonPool-worker-34"]
at com.google.common.collect.ImmutableMap.conflictException(ImmutableMap.java:378)
at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:372)
at com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket(RegularImmutableMap.java:246)
at com.google.common.collect.RegularImmutableMap.fromEntryArrayCheckingBucketOverflow(RegularImmutableMap.java:133)
at com.google.common.collect.RegularImmutableMap.fromEntryArray(RegularImmutableMap.java:95)
at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:572)
at com.google.common.collect.ImmutableMap$Builder.buildOrThrow(ImmutableMap.java:600)
at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:587)
at com.linkedin.datahub.graphql.types.entitytype.EntityTypeUrnMapper.(EntityTypeUrnMapper.java:83)
... 19 common frames omitted
2025-01-14 21:11:44,445 [ForkJoinPool.commonPool-worker-360] ERROR c.datahub.graphql.GraphQLController:151 - Errors while executing query: query getSearchResultsForMultiple($input: SearchAcrossEntitiesInput!) {
searchAcrossEntities(input: $input) {
...searchResults
__typename
}
}

fragment searchResults on SearchResults {
start
count
total
searchResults {
entity {
...searchResultFields
__typename
}
matchedFields {
name
value
entity {
urn
type
...entityDisplayNameFields
__typename
}
__typename
}
insights {
text
icon
..., result: {errors=[{message=An unknown error occurred., locations=[{line=1325, column=5}],

@raychaudhuri-amitava
Copy link
Author

Suspect I'm having the same issue on 0.15.0, even creating structured properties in the UI raises and internal server error. Did you ever fix it @raychaudhuri-amitava ?

I am using custom properties instead of structural properties. I will move to structural properties once this issue is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report
Projects
None yet
Development

No branches or pull requests

2 participants