bitter-lizard-32293
08/16/2022, 3:27 AMCaused by: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=index_not_found_exception, reason=no such index [datahub_usage_event]]
Details in đź§µbitter-lizard-32293
08/16/2022, 3:27 AM03:24:14 [ForkJoinPool.commonPool-worker-7] ERROR c.l.d.g.e.DataHubDataFetcherExceptionHandler - Failed to execute DataFetcher
java.lang.RuntimeException: Search query failed:
at com.linkedin.datahub.graphql.analytics.service.AnalyticsService.executeAndExtract(AnalyticsService.java:265)
at com.linkedin.datahub.graphql.analytics.service.AnalyticsService.getHighlights(AnalyticsService.java:236)
at com.linkedin.datahub.graphql.analytics.resolver.GetHighlightsResolver.getHighlights(GetHighlightsResolver.java:50)
at com.linkedin.datahub.graphql.analytics.resolver.GetHighlightsResolver.get(GetHighlightsResolver.java:29)
at com.linkedin.datahub.graphql.analytics.resolver.GetHighlightsResolver.get(GetHighlightsResolver.java:22)
at graphql.execution.ExecutionStrategy.fetchField(ExecutionStrategy.java:270)
at graphql.execution.ExecutionStrategy.resolveFieldWithInfo(ExecutionStrategy.java:203)
at graphql.execution.AsyncExecutionStrategy.execute(AsyncExecutionStrategy.java:60)
at graphql.execution.Execution.executeOperation(Execution.java:165)
at graphql.execution.Execution.execute(Execution.java:104)
at graphql.GraphQL.execute(GraphQL.java:557)
at graphql.GraphQL.parseValidateAndExecute(GraphQL.java:482)
at graphql.GraphQL.executeAsync(GraphQL.java:446)
at graphql.GraphQL.execute(GraphQL.java:377)
at com.linkedin.datahub.graphql.GraphQLEngine.execute(GraphQLEngine.java:88)
at com.datahub.graphql.GraphQLController.lambda$postGraphQL$0(GraphQLController.java:89)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=index_not_found_exception, reason=no such index [datahub_usage_event]]
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:187)
at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1892)
at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1869)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1626)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1583)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1553)
at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:1069)
at com.linkedin.datahub.graphql.analytics.service.AnalyticsService.executeAndExtract(AnalyticsService.java:260)
... 22 common frames omitted
bitter-lizard-32293
08/16/2022, 3:28 AMbitter-lizard-32293
08/16/2022, 3:28 AM$ curl "<http://localhost:9200/_ilm/policy/datahub_usage_event_policy>" | jq
{
"datahub_usage_event_policy": {
"version": 1,
"modified_date": "2022-08-14T20:35:15.719Z",
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_age": "7d"
}
}
},
"delete": {
"min_age": "60d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
}
}
}
bitter-lizard-32293
08/16/2022, 3:29 AM$ curl "<http://localhost:9200/_index_template/datahub_usage_event_index_template>" | jq
{
"index_templates": [
{
"name": "datahub_usage_event_index_template",
"index_template": {
"index_patterns": [
"*datahub_usage_event*"
],
"template": {
"settings": {
"index": {
"lifecycle": {
"name": "datahub_usage_event_policy"
}
}
},
"mappings": {
"properties": {
"browserId": {
"type": "keyword"
},
"@timestamp": {
"type": "date"
},
"userAgent": {
"type": "keyword"
},
"type": {
"type": "keyword"
},
"timestamp": {
"type": "date"
}
}
}
},
"composed_of": [],
"priority": 500,
"data_stream": {}
}
}
]
}
bitter-lizard-32293
08/16/2022, 3:30 AM02:54:22 [datahub-usage-event-consumer-job-client-0-C-1] INFO c.l.m.k.DataHubUsageEventsProcessor - Got usage event: {"type":"SearchResultsViewEvent","query":"ice","total":10,"actorUrn":"urn:li:corpuser:datahub","timestamp":1660618462854,"date":"Mon Aug 15 2022 19:54:22 GMT-0700 (Pacific Daylight Time)","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36","browserId":"f561d935-96a2-410c-a8e0-1baab1b83787"}
bitter-lizard-32293
08/16/2022, 3:32 AM$ curl 'localhost:9200/_cat/indices' | grep usage
green open dataset_datasetusagestatisticsaspect_v1_1658472208943 Ugl-dJDnQum0hp_Q6WZ_rA 1 1 0 0 416b 208b
green open dashboard_dashboardusagestatisticsaspect_v1 WOVOEFcVR56OsTt4oTA6wQ 1 1 0 0 416b 208b
So it seems like for some reason the DataHubUsageEventsProcessor
is not creating these indices.bitter-lizard-32293
08/16/2022, 3:32 AMdatahub_usage_event
index.bitter-lizard-32293
08/16/2022, 3:33 AMbumpy-needle-3184
08/16/2022, 6:33 AMbumpy-needle-3184
08/16/2022, 6:34 AMbitter-lizard-32293
08/16/2022, 1:17 PMbitter-lizard-32293
08/16/2022, 5:00 PMcurl -X PUT "<http://sproxy.service.envoy:10080/searchdatahub/_data_stream/datahub_usage_event?pretty>"
{
"acknowledged" : true
}
and then I see the index created:
curl 'localhost:9200/_cat/indices'
...
green open .ds-datahub_usage_event-000001 2QPTOwFeQbCV_qI9fdEOQw 1 1 33 0 258.2kb 145.6kb
...
It looks like the app's analytics tab is functional now 🤷‍♂️
Not sure if the create-indices script should include a step to explicitly create the datahub_usage_event
index aside from the template and ilm policy..bumpy-needle-3184
08/17/2022, 5:17 AMbitter-lizard-32293
08/17/2022, 1:34 PM