Hi Team - Trying to understand why is Pinot not ab...
# troubleshooting
a
Hi Team - Trying to understand why is Pinot not able to upload the files to deep storage s3. Logs says the otherwise:-> Doesn't provide the exact error as to why it is unable to upload it. Here are the logs:
Copy code
2025/03/07 22:04:02.218 INFO [SegmentGenerationAndPushTaskExecutor] [TaskStateModelFactory-task_thread-35] Trying to push Pinot segment with push mode metadata from s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/order_test_OFFLINE_104_b225a551-e96f-4318-9a19-8dc16edc9b5d.tar.gz
2025/03/07 22:04:02.218 INFO [SegmentPushUtils] [TaskStateModelFactory-task_thread-35] Start pushing segment metadata: {s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/order_test_OFFLINE_104_b225a551-e96f-4318-9a19-8dc16edc9b5d.tar.gz=s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/order_test_OFFLINE_104_b225a551-e96f-4318-9a19-8dc16edc9b5d.tar.gz} to locations: [org.apache.pinot.spi.ingestion.batch.spec.PinotClusterSpec@7c301f47] for table order_test_OFFLINE
2025/03/07 22:04:02.218 INFO [SegmentPushUtils] [TaskStateModelFactory-task_thread-35] Checking if metadata tar gz file s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/order_test_OFFLINE_104_b225a551-e96f-4318-9a19-8dc16edc9b5d.metadata.tar.gz exists
2025/03/07 22:04:02.240 INFO [S3PinotFS] [TaskStateModelFactory-task_thread-35] Copy s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/order_test_OFFLINE_104_b225a551-e96f-4318-9a19-8dc16edc9b5d.tar.gz to local /data/tmp/segmentTar-3cbc8569-0aa4-4f53-821b-f271d9b8a026.tar.gz
2025/03/07 22:04:02.368 ERROR [TaskFactoryRegistry] [TaskStateModelFactory-task_thread-16] Caught exception while executing task: Task_SegmentGenerationAndPushTask_709a6d67-bab5-4d8d-b03f-34554c004713_1741384741744_85
java.lang.RuntimeException: Failed to execute SegmentGenerationAndPushTask
	at org.apache.pinot.plugin.minion.tasks.segmentgenerationandpush.SegmentGenerationAndPushTaskExecutor.executeTask(SegmentGenerationAndPushTaskExecutor.java:128) ~[pinot-all-1.3.0-jar-with-dependencies.jar:1.3.0-c0023da298126af6a01b802a04b66da34ba16134]
	at org.apache.pinot.minion.taskfactory.TaskFactoryRegistry$1.runInternal(TaskFactoryRegistry.java:152) [pinot-all-1.3.0-jar-with-dependencies.jar:1.3.0-c0023da298126af6a01b802a04b66da34ba16134]
	at org.apache.pinot.minion.taskfactory.TaskFactoryRegistry$1.run(TaskFactoryRegistry.java:118) [pinot-all-1.3.0-jar-with-dependencies.jar:1.3.0-c0023da298126af6a01b802a04b66da34ba16134]
	at org.apache.helix.task.TaskRunner.run(TaskRunner.java:75) [pinot-all-1.3.0-jar-with-dependencies.jar:1.3.0-c0023da298126af6a01b802a04b66da34ba16134]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.base/java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: software.amazon.awssdk.services.s3.model.NoSuchKeyException: The specified key does not exist. (Service: S3, Status Code: 404, Request ID: VA4Q92DJ3R2TMBHM, Extended Request ID: 1kcGi4SlhgYztHvRU8K1LXlpQlUfpU4jKFDPbq25tzcp7SSPbFqSXvx/HjUWTP/mMqcSX3DTLbA=)
Is this related to minion configurations? I have 10 minions which works in parallel. After 3-4 files are uploaded to S3 other tasks starts failing with above errors. Unable to figure out the issue. Can someone please help?
m
@Ragesh Rajagopalan could you help with this?
a
In controller logs - All I can see is:
Copy code
2025/03/11 19:12:28.811 INFO [MessageGenerationPhase] [HelixController-pipeline-task-pinot-quickstart-(357ba86c_TASK)] Event 357ba86c_TASK : Message already exists for Minion_ip-{address}.internal_9514 to transit TaskQueue_SegmentGenerationAndPushTask_Task_SegmentGenerationAndPushTask_9791bc7b-4040-4e25-aa9b-345347d4795f_1741720081832.TaskQueue_SegmentGenerationAndPushTask_Task_SegmentGenerationAndPushTask_9791bc7b-4040-4e25-aa9b-345347d4795f_1741720081832_5 from INIT to DROPPED
m
Check the place where it is receiving the push
r
When
push.mode
is of type
METADATA
, the expectation is that the segment is available in the deepstore. For the failed task, is the segment
s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/order_test_OFFLINE_104_b225a551-e96f-4318-9a19-8dc16edc9b5d.tar.gz
present in the deepstore S3 bucket?
m
It is likely not there. The question is why
r
There would be a log line like this in the minion logs
Moved generated segment from [{}] to location: [{}]
Check if this line is there or not
a
Checking...
There is :
Copy code
Example: Moved generated segment from [/data/tmp/PinotMinion/data/SegmentGenerationAndPushResult/tmp-b7630b00-7843-41e3-a5b3-784bfd6cdc41/output/order_test_OFFLINE_32_31bf6402-92c8-42d2-a73b-3f6d6ec2ff84.tar.gz] to location: [s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/segments/order_test_OFFLINE_32_31bf6402-92c8-42d2-a73b-3f6d6ec2ff84.tar.gz]
but I don't see the file getting copied to s3 location
r
you mean, when you manually check the bucket the file is not there?
a
Yes, it is not there
For Airlines data, I performed the same exercise and all files were loaded without any issues
Airlines data is in Kbs, but for order_test the segments generated are 400 MBs
r
check for exceptions from s3 client after this log line
Moved generated segment
a
After the above log: I see this ->
Copy code
2025/03/11 18:57:04.902 INFO [SegmentGenerationAndPushTaskExecutor] [TaskStateModelFactory-task_thread-24] Trying to push Pinot segment with push mode metadata from s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/segments/order_test_OFFLINE_32_31bf6402-92c8-42d2-a73b-3f6d6ec2ff84.tar.gz
2025/03/11 18:57:04.902 INFO [SegmentPushUtils] [TaskStateModelFactory-task_thread-24] Start pushing segment metadata: {s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/segments/order_test_OFFLINE_32_31bf6402-92c8-42d2-a73b-3f6d6ec2ff84.tar.gz=s3://apache-pinot/pinot-data/pinot-s3-example/controller-data/order_test/segments/order_test_iceberg_OFFLINE_32_31bf6402-92c8-42d2-a73b-3f6d6ec2ff84.tar.gz} to locations: [org.apache.pinot.spi.ingestion.batch.spec.PinotClusterSpec@6b3ac05] for table order_test_OFFLINE
And the s3 exception is:
Copy code
java.lang.RuntimeException: Failed to execute SegmentGenerationAndPushTask
    at org.apache.pinot.plugin.minion.tasks.segmentgenerationandpush.SegmentGenerationAndPushTaskExecutor.executeTask(SegmentGenerationAndPushTaskExecutor.java:128) ~[pinot-all-1.3.0-jar-with-dependencies.jar:1.3.0-c0023da298126af6a01b802a04b66da34ba16134]
    at org.apache.pinot.minion.taskfactory.TaskFactoryRegistry$1.runInternal(TaskFactoryRegistry.java:152) [pinot-all-1.3.0-jar-with-dependencies.jar:1.3.0-c0023da298126af6a01b802a04b66da34ba16134]
    at org.apache.pinot.minion.taskfactory.TaskFactoryRegistry$1.run(TaskFactoryRegistry.java:118) [pinot-all-1.3.0-jar-with-dependencies.jar:1.3.0-c0023da298126af6a01b802a04b66da34ba16134]
    at org.apache.helix.task.TaskRunner.run(TaskRunner.java:75) [pinot-all-1.3.0-jar-with-dependencies.jar:1.3.0-c0023da298126af6a01b802a04b66da34ba16134]
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
    at java.base/java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: software.amazon.awssdk.services.s3.model.NoSuchKeyException: The specified key does not exist. (Service: S3, Status Code: 404, Request ID: MB8GFEBRNWJWBX43, Extended Request ID: W+qyo0iD3TJ9dmJWm9ZNY2sH2DSa1jYm9CJJ+ADTap5ziMv5RTH16Ru3c/cE6sU9RtO2B4RS+sw=)
r
is it possible to share the minion log file?
a
I will send you portion of it
r
ok
a
Here is the dummy log:
@Ragesh Rajagopalan
r
Could you run the task with the following property?
"overwriteOutput": "true"
a
This goes in the ingestionConfig under batchIngestionConfig right?
r
I'm assuming you are configuring the task like the example given here. So, it should be under the
batchConfigMaps
a
Yes, that is correct!
r
Looking at this log line, it looks like the segment was not copied to the deepstore at all.
a
Yes
I have triggered the process
I see the issue is now resolved. The data is getting loaded parallelly now
Thank you so much Ragesh!
r
glad to hear that. I think there's a bug when the overWrite is not specified.
a
There was no mention of overwriteOutput in minion.
r
I will create the internal ticket to look into this.
a
Thank you so much!