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

config changes to get kaldb working locally #1

Closed
wants to merge 3 commits into from
Closed

Conversation

autata
Copy link
Collaborator

@autata autata commented Feb 9, 2024

Summary

Describe the goal of this PR. Mention any related Issue numbers.

Requirements

@@ -9,7 +9,7 @@ services:
- ALLOW_ANONYMOUS_LOGIN=yes

kafka:
image: 'bitnami/kafka:3.2.3'
image: 'bitnami/kafka:latest'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: pin working version

private static int getHowMany(JsonNode body) {
return body.get("size").asInt();
}

// This is required. consider returning a more useful error to the user than 500
// or setting a reasonable default (not sure what that would be)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should return something like this instead of 500
{
"error": {
"code": 400,
"message": "Bad Request",
"details": "The 'query.gte' field is required but missing in the request."
}
}

@@ -85,14 +85,20 @@ private static String getQueryString(JsonNode body) {
return queryString;
}

// This is required. consider returning a more useful error to the user than 500
// or setting a reasonable default (default seems a good option here)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should use whatever default size ES uses so it works like their docs

@@ -1,5 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="KalDb Query Node" type="Application" factoryName="Application">
<option name="ALTERNATIVE_JRE_PATH" value="21" />
Copy link

@mansu mansu Feb 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The run config works for me without this. So, it may be an issue with your intelliJ setup.

@autata
Copy link
Collaborator Author

autata commented Feb 22, 2024

closing this. separated out into different PRs and opened against the slackhq project

@autata autata closed this Feb 22, 2024
zarna1parekh pushed a commit that referenced this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants