druid icon indicating copy to clipboard operation
druid copied to clipboard

Druid 28 Fresh Install Error on Kubernetes

Open CoinCoderBuffalo opened this issue 1 year ago • 2 comments

Affected Version

Druid 28.0.0 in Kubernetes Druid 29.0.0 in Kubernetes

Description

Fresh install of Druid. Druid deploys successfully in k8, but I see the following error in the Druid Console UI related to a metadata query:

Unknown exception / Compiling "GeneratedMetadata_CollationHandler" in Line 19, Column 14: Line 31, Column 50: Compiling "collations(org.apache.calcite.rel.RelNode r, org.apache.calcite.rel.metadata.RelMetadataQuery mq)" / org.codehaus.commons.compiler.InternalCompilerException

Note: I followed the upgrade steps, to add the column (not sure if required for a fresh install, but did it regardless) and gave the druid user account full access to the meta store database. image

I don't see any errors in the Druid k8 Pod logs of any relevance.

CoinCoderBuffalo avatar Jan 16 '24 17:01 CoinCoderBuffalo

When you open the console in the browser, can you look at the network tab in "Developer Tools" (assuming Chrome)? Through that, you can get the exact HTTP request that's failing with this error.

Are you not able to use druid at all with this error?

abhishekagarwal87 avatar Jan 17 '24 08:01 abhishekagarwal87

I see the following HTTP calls are failing. I am unable to load any data into druid. I am using derby as the metastore, I've also tried using postgres.

Notes: I see this error on versions: 28, 29 I don't see this error on version: 27

sql?capabilities { "error": "Unknown exception", "errorClass": "org.codehaus.commons.compiler.InternalCompilerException", "host": null, "errorCode": "legacyQueryException", "persona": "OPERATOR", "category": "RUNTIME_FAILURE", "errorMessage": "Compiling "GeneratedMetadata_ExplainVisibilityHandler" in Line 19, Column 14: Line 33, Column 28: Compiling "isVisibleInExplain(org.apache.calcite.rel.RelNode r, org.apache.calcite.rel.metadata.RelMetadataQuery mq, org.apache.calcite.sql.SqlExplainLevel a2)"", "context": { "host": null, "errorClass": "org.codehaus.commons.compiler.InternalCompilerException", "legacyErrorCode": "Unknown exception" } }

sql: { "error": "Unknown exception", "errorClass": "org.codehaus.commons.compiler.InternalCompilerException", "host": null, "errorCode": "legacyQueryException", "persona": "OPERATOR", "category": "RUNTIME_FAILURE", "errorMessage": "Compiling "GeneratedMetadata_CollationHandler" in Line 19, Column 14: Line 31, Column 50: Compiling "collations(org.apache.calcite.rel.RelNode r, org.apache.calcite.rel.metadata.RelMetadataQuery mq)"", "context": { "host": null, "errorClass": "org.codehaus.commons.compiler.InternalCompilerException", "legacyErrorCode": "Unknown exception" } } status: { "cause2":"io.kubernetes.client.openapi.ApiException: ", "cause1":"org.apache.druid.java.util.common.RE: Failed to get current leader for [druid-it-leaderelection-coordinator]", "servlet":"org.apache.druid.server.AsyncManagementForwardingServlet-924f3f1", "cause0":"java.lang.RuntimeException: org.apache.druid.java.util.common.RE: Failed to get current leader for [druid-it-leaderelection-coordinator]", "message":"java.lang.RuntimeException: org.apache.druid.java.util.common.RE: Failed to get current leader for [druid-it-leaderelection-coordinator]", "url":"/druid/coordinator/v1/lookups/status", "status":"500" }

CoinCoderBuffalo avatar Mar 07 '24 16:03 CoinCoderBuffalo

@abhishekagarwal87 any update on this issue?

CoinCoderBuffalo avatar Apr 07 '24 13:04 CoinCoderBuffalo

This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Jan 13 '25 00:01 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Feb 11 '25 00:02 github-actions[bot]