-
Notifications
You must be signed in to change notification settings - Fork 1
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
21.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ services: | |
- ALLOW_ANONYMOUS_LOGIN=yes | ||
|
||
kafka: | ||
image: 'bitnami/kafka:3.2.3' | ||
image: 'bitnami/kafka:latest' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. todo: pin working version |
||
container_name: kaldb_kafka | ||
ports: | ||
- '9092:9092' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
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) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably should return something like this instead of 500 |
||
private static long getStartTimeEpochMs(JsonNode body) { | ||
return body.get("query").findValue("gte").asLong(); | ||
} | ||
|
||
// 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) | ||
private static long getEndTimeEpochMs(JsonNode body) { | ||
return body.get("query").findValue("lte").asLong(); | ||
} | ||
|
There was a problem hiding this comment.
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.