Skip to content

Instantly share code, notes, and snippets.

@Samstiles
Created September 17, 2015 23:05
Show Gist options
  • Select an option

  • Save Samstiles/c486ba61f2435d8aedee to your computer and use it in GitHub Desktop.

Select an option

Save Samstiles/c486ba61f2435d8aedee to your computer and use it in GitHub Desktop.
2015-09-17T23:04:12.627+0000 hyperion 66629a40-5d90-11e5-9baf-c22dbe83bb0f sam-ThinkPad-W541 INFO [hyperion.producers.druid] - Executing druid query
{:type :druid,
:druid-query
{:queryType :groupBy,
:dataSource "prometheus",
:granularity :all,
:dimensions ["tenant-id"],
:aggregations
[{:type :count, :name "count"}
{:type :min, :name "minLength", :fieldName "queue-length"}
{:type :max, :name "maxLength", :fieldName "queue-length"}],
:postAggregations
[{:type :arithmetic,
:name "avgLength",
:fn "/",
:fields
[{:type :fieldAccess,
:name "queue-length",
:fieldName "queue-length"}
{:type :fieldAccess, :name "count", :fieldName "count"}]}],
:filter
{:type :and,
:fields
[{:type :selector,
:dimension "event-type",
:value ":queue-duration"}
{:type :selector,
:dimension "tenant-id",
:value "00000000-0000-0000-000000000000"}]},
:intervals ["2010-01-01T00:00/2020-01-01T00"]}}
CAUGHT AN ERROR PERFORMING DRUID QUERY FOR QUEUE LENGTH#error {
:cause "clj-http: status 500"
:data {:status 500, :headers {"Date" "Thu, 17 Sep 2015 23:04:13 GMT", "Content-Type" "application/json", "Content-Length" "162", "Server" "Jetty(9.2.5.v20141112)"}, :body "{\"error\":\"Instantiation of [simple type, class io.druid.query.groupby.GroupByQuery] value failed: Missing fields [[queue-length]] for postAggregator [avgLength]\"}", :request-time 1058, :trace-redirects ["http://us-east-1a-dev-druid-broker.internal.liveopslabs.com:8080/druid/v2"], :orig-content-encoding nil}
:via
[{:type clojure.lang.ExceptionInfo
:message "clj-http: status 500"
:data {:status 500, :headers {"Date" "Thu, 17 Sep 2015 23:04:13 GMT", "Content-Type" "application/json", "Content-Length" "162", "Server" "Jetty(9.2.5.v20141112)"}, :body "{\"error\":\"Instantiation of [simple type, class io.druid.query.groupby.GroupByQuery] value failed: Missing fields [[queue-length]] for postAggregator [avgLength]\"}", :request-time 1058, :trace-redirects ["http://us-east-1a-dev-druid-broker.internal.liveopslabs.com:8080/druid/v2"], :orig-content-encoding nil}
:at [clj_http.client$wrap_exceptions$fn__33701 invoke "client.clj" 183]}]
:trace
[[clj_http.client$wrap_exceptions$fn__33701 invoke "client.clj" 183]
[clj_http.client$wrap_accept$fn__33893 invoke "client.clj" 536]
[clj_http.client$wrap_accept_encoding$fn__33899 invoke "client.clj" 550]
[clj_http.client$wrap_content_type$fn__33888 invoke "client.clj" 525]
[clj_http.client$wrap_form_params$fn__33980 invoke "client.clj" 697]
[clj_http.client$wrap_nested_params$fn__33997 invoke "client.clj" 726]
[clj_http.client$wrap_method$fn__33940 invoke "client.clj" 641]
[clj_http.cookies$wrap_cookies$fn__33293 invoke "cookies.clj" 124]
[clj_http.links$wrap_links$fn__33572 invoke "links.clj" 51]
[clj_http.client$wrap_unknown_host$fn__34006 invoke "client.clj" 742]
[clj_http.client$post doInvoke "client.clj" 857]
[clojure.lang.RestFn invoke "RestFn.java" 423]
[clj_druid.client$query doInvoke "client.clj" 102]
[clojure.lang.RestFn invoke "RestFn.java" 573]
[hyperion.producers.druid$druid_connect$execute_druid_query__34185 invoke "druid.clj" 42]
[hyperion.producers.druid$eval34449$execute_queue_length__34450$fn__34451 invoke "druid.clj" 213]
[hyperion.producers.druid$eval34449$execute_queue_length__34450 invoke "druid.clj" 200]
[hyperion.handlers.api$process_realtime_request invoke "api.clj" 18]
[hyperion.handlers.api$delegate_request invoke "api.clj" 43]
[hyperion.consumers.api$enqueue_request$fn__34510 invoke "api.clj" 58]
[hyperion.consumers.api$enqueue_request invoke "api.clj" 58]
[hyperion.consumers.api$api_routes$fn__34523$fn__34536 invoke "api.clj" 80]
[compojure.core$make_route$fn__11885 invoke "core.clj" 130]
[compojure.core$pre_init$fn__11972 invoke "core.clj" 256]
[hal9002.http_util$eval22877$wrap_param_extraction__22878$fn__22879$fn__22880 invoke "http_util.clj" 212]
[compojure.core$pre_init$fn__11974$fn__11975 invoke "core.clj" 259]
[compojure.core$wrap_route_middleware$fn__11881 invoke "core.clj" 117]
[compojure.core$if_route$fn__11853 invoke "core.clj" 41]
[compojure.core$if_method$fn__11845 invoke "core.clj" 27]
[compojure.core$routing$fn__11892 invoke "core.clj" 144]
[clojure.core$some invoke "core.clj" 2570]
[compojure.core$routing doInvoke "core.clj" 144]
[clojure.lang.RestFn invoke "RestFn.java" 1305]
[hyperion.consumers.api$api_routes$fn__34523 invoke "api.clj" 73]
[compojure.core$if_context$fn__11954 invoke "core.clj" 211]
[compojure.core$routing$fn__11892 invoke "core.clj" 144]
[clojure.core$some invoke "core.clj" 2570]
[compojure.core$routing doInvoke "core.clj" 144]
[clojure.lang.RestFn applyTo "RestFn.java" 139]
[clojure.core$apply invoke "core.clj" 632]
[compojure.core$routes$fn__11896 invoke "core.clj" 149]
[compojure.core$routing$fn__11892 invoke "core.clj" 144]
[clojure.core$some invoke "core.clj" 2570]
[compojure.core$routing doInvoke "core.clj" 144]
[clojure.lang.RestFn applyTo "RestFn.java" 139]
[clojure.core$apply invoke "core.clj" 632]
[compojure.core$routes$fn__11896 invoke "core.clj" 149]
[compojure.core$routing$fn__11892 invoke "core.clj" 144]
[clojure.core$some invoke "core.clj" 2570]
[compojure.core$routing doInvoke "core.clj" 144]
[clojure.lang.RestFn applyTo "RestFn.java" 139]
[clojure.core$apply invoke "core.clj" 632]
[compojure.core$routes$fn__11896 invoke "core.clj" 149]
[hal9002.server$main_middleware$fn__24692$fn__24693 invoke "server.clj" 69]
[compojure.core$wrap_routes$fn__11980 invoke "core.clj" 267]
[ring.middleware.json$wrap_json_body$fn__24646 invoke "json.clj" 46]
[hal9002.http_util$eval22837$wrap_public_body__22838$fn__22839$fn__22840 invoke "http_util.clj" 196]
[hal9002.http_util$wrap_request_body$fn__22655 invoke "http_util.clj" 55]
[hal9002.http_util$wrap_public_json_response$fn__22898 invoke "http_util.clj" 224]
[hal9002.http_util$eval22857$wrap_public_response__22858$fn__22859$fn__22860 invoke "http_util.clj" 202]
[hal9002.http_util$wrap_transit_response$fn__22667 invoke "http_util.clj" 75]
[hal9002.server$gulp_errors$fn__24671 invoke "server.clj" 24]
[ring.middleware.keyword_params$wrap_keyword_params$fn__24246 invoke "keyword_params.clj" 35]
[ring.middleware.params$wrap_params$fn__24428 invoke "params.clj" 64]
[ring.middleware.absolute_redirects$wrap_absolute_redirects$fn__24566 invoke "absolute_redirects.clj" 36]
[ring.middleware.content_type$wrap_content_type$fn__24523 invoke "content_type.clj" 30]
[ring.middleware.default_charset$wrap_default_charset$fn__24543 invoke "default_charset.clj" 26]
[ring.middleware.not_modified$wrap_not_modified$fn__24504 invoke "not_modified.clj" 44]
[immutant.web.internal.undertow$create_http_handler$reify__18937 handleRequest "undertow.clj" 130]
[org.projectodd.wunderboss.web.async.websocket.UndertowWebsocket$2 handleRequest "UndertowWebsocket.java" 103]
[io.undertow.server.session.SessionAttachmentHandler handleRequest "SessionAttachmentHandler.java" 68]
[io.undertow.server.Connectors executeRootHandler "Connectors.java" 197]
[io.undertow.server.HttpServerExchange$1 run "HttpServerExchange.java" 759]
[java.util.concurrent.ThreadPoolExecutor runWorker "ThreadPoolExecutor.java" 1142]
[java.util.concurrent.ThreadPoolExecutor$Worker run "ThreadPoolExecutor.java" 617]
[java.lang.Thread run "Thread.java" 745]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment