Can someone guide me on how to do the rollup by monthly for the data thats already ingested into druid cluster at weekly level.Chitra
--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/CABPo10ob6hzmOHV21cGHpG80fXyoVg1_-EWz2i8sjfWj7LWFsg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/CAP%2BetTsNbiBtoZEXbHBFVFsMuW0yfEhL0ZAqqMM%2BhJLq6EbuuQ%40mail.gmail.com.
{
"type": "index_parallel",
"spec": {
"dataSchema" : {
"dataSource": "reLoad",
"timestampSpec": {
"format": "auto",
"column": "ts"
},
"transformSpec": {
"transforms": [
{
"type": "expression",
"name": "legacy_order_downloaded",
"expression": "bytes_sent >= byte_offset"
}
],
"filter": {
"type": "not",
"field": {
"type": "selector",
"dimension": "order_id",
"value": ""
}
}
},
"dimensionsSpec": {
"dimensions": [
{"name": "order_id", "type": "string"},
{"name": "legacy_order_downloaded", "type": "long"}
]
},
"metricsSpec": [
{"name": "bytes_sent", "type": "longSum", "fieldName": "bytes_sent"},
{"name": "byte_offset", "type": "longMax", "fieldName": "byte_offset"}
],
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "HOUR",
"queryGranularity": "MINUTE",
"rollup": true
}
},
"ioConfig": {
"type": "index_parallel",
"inputSource": {
"type": "druid",
"dataSource": "firstLoad",
"interval": "2020-11-09/2020-11-11",
"dimensions": ["order_id","legacy_order_downloaded"],
"metrics": ["byte_offset","bytes_sent"]
},
"appendToExisting": false
}
},
"tuningConfig": {
"type": "index_parallel",
"maxRowsPerSegment": 500000,
"maxNumConcurrentSubTasks": 5
}
}
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/CABPo10pz_bGQHv-fdo5T2tdXGzF5q-KmLv5h22YjvZHtgyB%3DXQ%40mail.gmail.com.
2021-02-22T21:08:29,020 ERROR [task-runner-0-priority-0] org.apache.druid.indexing.common.task.IndexTask - Encountered exception in BUILD_SEGMENTS.
java.lang.NullPointerException
at org.apache.druid.indexing.common.task.FiniteFirehoseProcessor.process(FiniteFirehoseProcessor.java:96) ~[druid-indexing-service-0.16.0-incubating.jar:0.16.0-incubating]
at org.apache.druid.indexing.common.task.IndexTask.generateAndPublishSegments(IndexTask.java:859) ~[druid-indexing-service-0.16.0-incubating.jar:0.16.0-incubating]
at org.apache.druid.indexing.common.task.IndexTask.runTask(IndexTask.java:467) [druid-indexing-service-0.16.0-incubating.jar:0.16.0-incubating]
at org.apache.druid.indexing.common.task.AbstractBatchIndexTask.run(AbstractBatchIndexTask.java:137) [druid-indexing-service-0.16.0-incubating.jar:0.16.0-incubating]
at org.apache.druid.indexing.overlord.SingleTaskBackgroundRunner$SingleTaskBackgroundRunnerCallable.call(SingleTaskBackgroundRunner.java:419) [druid-indexing-service-0.16.0-incubating.jar:0.16.0-incubating]
at org.apache.druid.indexing.overlord.SingleTaskBackgroundRunner$SingleTaskBackgroundRunnerCallable.call(SingleTaskBackgroundRunner.java:391) [druid-indexing-service-0.16.0-incubating.jar:0.16.0-incubating]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
2021-02-22T21:08:29,033 INFO [task-runner-0-priority-0] org.apache.druid.segment.realtime.firehose.ServiceAnnouncingChatHandlerProvider - Unregistering chat handler[index_rollup-developmentReq_2021-02-22T21:08:24.482Z]
2021-02-22T21:08:29,033 INFO [task-runner-0-priority-0] org.apache.druid.indexing.overlord.TaskRunnerUtils - Task [index_rollup-devhub_2021-02-22T21:08:24.482Z] status changed to [FAILED].
2021-02-22T21:08:29,041 INFO [task-runner-0-priority-0] org.apache.druid.indexing.worker.executor.ExecutorLifecycle - Task completed with status: {
"id" : "index_rollup-developmentReq_2021-02-22T21:08:24.482Z",
"status" : "FAILED",
"duration" : 71,
"errorMsg" : "java.lang.NullPointerException\n\tat org.apache.druid.indexing.common.task.FiniteFirehoseProcessor.pro...",
"location" : {
"host" : null,
"port" : -1,
"tlsPort" : -1
}
}
2021-02-22T21:08:29,066 INFO [main] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering org.apache.druid.server.http.SegmentListerResource as a root resource class
2021-02-22T21:08:29,067 INFO [main] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering com.fasterxml.jackson.jaxrs.smile.JacksonSmileProvider as a provider class
2021-02-22T21:08:29,067 INFO [main] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider as a provider class
2021-02-22T21:08:29,067 INFO [main] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering org.apache.druid.server.initialization.jetty.CustomExceptionMapper as a provider class
2021-02-22T21:08:29,067 INFO [main] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering org.apache.druid.server.initialization.jetty.ForbiddenExceptionMapper as a provider class
2021-02-22T21:08:29,068 INFO [main] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory - Registering org.apache.druid.server.initialization.jetty.BadRequestExceptionMapper as a provider class
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/21e41c0c-29b4-4d58-9bfd-fdf791f0e037n%40googlegroups.com.