This message was deleted.
# troubleshooting
s
This message was deleted.
v
manual compaction?
can you paste the spec here?
b
Manual compaction
v
please paste the compaction spec here
b
{ "type": "kafka", "spec": { "dataSchema": { "dataSource": "responseLog", "timestampSpec": { "column": "timestamp", "format": "auto", "missingValue": null }, "dimensionsSpec": { "dimensions": [ { "type": "string", "name": "domain", "multiValueHandling": "SORTED_ARRAY", "createBitmapIndex": true }, { "type": "string", "name": "device", "multiValueHandling": "SORTED_ARRAY", "createBitmapIndex": true }, { "type": "string", "name": "adUnitId", "multiValueHandling": "SORTED_ARRAY", "createBitmapIndex": true }, { "type": "string", "name": "supplyPartner", "multiValueHandling": "SORTED_ARRAY", "createBitmapIndex": true }, { "type": "string", "name": "supplyPartnerId", "multiValueHandling": "SORTED_ARRAY", "createBitmapIndex": true }, { "type": "string", "name": "demandPartner", "multiValueHandling": "SORTED_ARRAY", "createBitmapIndex": true }, { "type": "string", "name": "demandPartnerId", "multiValueHandling": "SORTED_ARRAY", "createBitmapIndex": true }, { "type": "string", "name": "tenantId", "multiValueHandling": "SORTED_ARRAY", "createBitmapIndex": true } ], "dimensionExclusions": [ "__time", "requestId", "requestIdIn", "dspTxnId", "TotalAdResponse", "timestamp" ], "includeAllDimensions": false }, "metricsSpec": [ { "type": "thetaSketch", "name": "TotalAdResponse", "fieldName": "dspTxnId", "size": 16384, "shouldFinalize": true, "isInputThetaSketch": false, "errorBoundsStdDev": null }, { "type": "thetaSketch", "name": "requestIdIn", "fieldName": "requestId", "size": 16384, "shouldFinalize": true, "isInputThetaSketch": false, "errorBoundsStdDev": null } ], "granularitySpec": { "type": "uniform", "segmentGranularity": "DAY", "queryGranularity": "DAY", "rollup": true, "intervals": [] }, "transformSpec": { "filter": null, "transforms": [] } }, "ioConfig": { "topic": "responseLog", "inputFormat": { "type": "json", "flattenSpec": null, "featureSpec": {}, "keepNullColumns": false }, "replicas": 1, "taskCount": 1, "taskDuration": "PT1200S", "consumerProperties": { "bootstrap.servers": "192.168.1.1899092,192.168.1.1069092,192.168.1.185:9092" }, "autoScalerConfig": null, "pollTimeout": 100, "startDelay": "PT5S", "period": "PT30S", "useEarliestOffset": true, "completionTimeout": "PT1240S", "lateMessageRejectionPeriod": null, "earlyMessageRejectionPeriod": null, "lateMessageRejectionStartDateTime": null, "stream": "responseLog", "useEarliestSequenceNumber": true, "type": "kafka" }, "tuningConfig": { "type": "kafka", "appendableIndexSpec": { "type": "onheap", "preserveExistingMetrics": false }, "maxRowsInMemory": 1000000, "maxBytesInMemory": 0, "skipBytesInMemoryOverheadCheck": false, "maxRowsPerSegment": 5000000, "maxTotalRows": null, "intermediatePersistPeriod": "PT5M", "basePersistDirectory": "/home/ec2-user/bharat/apache-druid-24.0.0/var/tmp/druid-realtime-persist9903246862918681507", "maxPendingPersists": 0, "indexSpec": { "bitmap": { "type": "roaring", "compressRunOnSerialization": true }, "dimensionCompression": "lz4", "metricCompression": "lz4", "longEncoding": "longs", "segmentLoader": null }, "indexSpecForIntermediatePersists": { "bitmap": { "type": "roaring", "compressRunOnSerialization": true }, "dimensionCompression": "lz4", "metricCompression": "lz4", "longEncoding": "longs", "segmentLoader": null }, "reportParseExceptions": false, "handoffConditionTimeout": 0, "resetOffsetAutomatically": false, "segmentWriteOutMediumFactory": null, "workerThreads": null, "chatThreads": null, "chatRetries": 8, "httpTimeout": "PT10S", "shutdownTimeout": "PT80S", "offsetFetchPeriod": "PT30S", "intermediateHandoffPeriod": "P2147483647D", "logParseExceptions": false, "maxParseExceptions": 2147483647, "maxSavedParseExceptions": 0, "skipSequenceNumberAvailabilityCheck": false, "repartitionTransitionDuration": "PT120S" } }, "context": null }
@Vijay Narayanan
v
This is the kafka ingestion spec. You had issue with compaction?
b
Yes
v
please get me the spec for the compaction task
b
Given
v
I thought you were using manual compaction? Paste the full json here
adn also the error you are seeing with compaction
I need the full json of the spec. This error is due to some issue with the json
It may be simpler if you just use the from and specify the compaction task and just enable auto compaction. There is no need to run compaction manually
b
Will paste in 10 mins
I didn’t get use from and specify compaction
v
instead of directly editing json just specify the attributes in the form
b
I do here only
v
So the error is when you enable auto compaction?
b
I am still not Getting . I am not seeing option of auto compaction . I just edit rule and submit
v
That is auto compaction. So the error is when you submit?
b
No once i submit it shows running and after some time I see failed compact task in task list
v
Paste the task log here
b
I am unable to see task log it shows. 404 error
@Vijay Narayanan Caused by: java.lang.IllegalArgumentException: Cannot construct instance of
org.apache.druid.segment.loading.LocalLoadSpec
, problem: [/home/ec2-user/bharat/apache-druid-25.0.0/var/druid/segments/responseLog/2023-01-13T000000.000Z_2023-01-14T000000.000Z/2023-01-12T183000.015Z/47/5e0c06a6-7b49-4aa0-9eb5-42b428d4fab5/index/] does not exist
This is error I am getting in middle manager log
Is it because of local storage of segment
v
What is your deep storage?
b
Local
v
Is this a single node or multi node setup
b
Mukti mode
With master on one node , two node for middle manager and historical and one node for broker and router
@Vijay Narayanan
v
With multi node setup you need either s3 or a network file system as deep storage. Local will not work. All nodes must be able to access all the segments in deep storage.