You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "YoavNordmann (via GitHub)" <gi...@apache.org> on 2025/04/29 09:44:47 UTC
[I] taskMaxNumFiles is being ignored [pinot]
YoavNordmann opened a new issue, #15666:
URL: https://github.com/apache/pinot/issues/15666
As per documentation available [here](https://dev.startree.ai/docs/ingest-data/file-ingestion-task): I am trying to use the `taskMaxNumFiles` parameter in my ingestion tasks, I came to the conclusion it is being ignored totally, even when `taskMaxDataSize` is not set.
Otherwise the following `FileIngestionTask` description would not be possible:
```json
{
"taskId": "Task_FileIngestionTask_aa953740-5d3a-4da7-b125-f406f2f60356_1745917410142_154",
"taskType": "FileIngestionTask",
"tableName": "business_events_OFFLINE",
"configs": {
"inputDirURI": "s3://business_events/",
"desiredSegmentSize": "500m",
"output.segment.dir.uri": "s3://startree-0mz58ga88-pinot-fs/cell-2vn0n1ese/business_events",
"segmentNamePrefix": "business_events",
"tableMaxNumTasks": "-1",
"inputFormat": "PARQUET",
"push.mode": "METADATA",
"sequenceId": "FileIngestionTask_1745917410052_154",
"segmentNamePostfix": "FileIngestionTask_1745917410052_154",
"tableName": "business_events_OFFLINE",
"input.fs.prop.secretKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
"schedule": "0 0/5 * ? * * *",
"recordReader.className": "org.apache.pinot.plugin.inputformat.parquet.ParquetRecordReader",
"input.fs.className": "org.apache.pinot.plugin.filesystem.S3PinotFS",
"input.fs.prop.region": "us-east-1",
"input.data.file.uri": "s3://business_events/data_12_1_5.snappy.parquet,s3://business_events/data_12_1_6.snappy.parquet,s3://business_events/data_12_1_7.snappy.parquet,s3://business_events/data_12_1_8.snappy.parquet,s3://business_events/data_12_1_9.snappy.parquet",
"taskMaxNumFiles": "1",
"uploadURL": "https://pinot-pinot-controller-headless.cell-n0n1es-managed.svc.cluster.local:9000/segments",
"push.controllerUri": "https://pinot-pinot-controller-headless.cell-n0n1es-managed.svc.cluster.local:9000",
"input.fs.prop.accessKey": "XXXXXXXXXXXXXXXXX",
"includeFileNamePattern": "glob:**/*.parquet",
"TASK_ID": "Task_FileIngestionTask_aa953740-5d3a-4da7-b125-f406f2f60356_1745917410142_154",
"triggeredBy": "MANUAL_TRIGGER"
}
}
```
As you can see, ` "taskMaxNumFiles": "1",` and `taskMaxDataSize` is not set, yet still, there are *5* files to handle in `input.data.file.uri`
```
s3://business_events/data_12_1_5.snappy.parquet
s3://business_events/data_12_1_6.snappy.parquet
s3://business_events/data_12_1_7.snappy.parquet
s3://business_events/data_12_1_8.snappy.parquet
s3://business_events/data_12_1_9.snappy.parquet
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] taskMaxNumFiles is being ignored [pinot]
Posted by "swaminathanmanish (via GitHub)" <gi...@apache.org>.
swaminathanmanish commented on issue #15666:
URL: https://github.com/apache/pinot/issues/15666#issuecomment-2854151165
@YoavNordmann - taskMaxNumFiles is a config to control the number of files picked up by the task and this may not be what you need since there's already desiredSegmentSize param. You can get rid of that param.
Could you please describe your requirement for FileIngestionTask.Based on those requirements, we will suggest the right configuration. By default we have segments of size approx 500Mb.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] taskMaxNumFiles is being ignored [pinot]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #15666:
URL: https://github.com/apache/pinot/issues/15666#issuecomment-4362375703
This issue has been closed because it has been inactive for 180 days. If you believe this issue is still relevant, please feel free to reopen it or create a new issue. Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] taskMaxNumFiles is being ignored [pinot]
Posted by "YoavNordmann (via GitHub)" <gi...@apache.org>.
YoavNordmann commented on issue #15666:
URL: https://github.com/apache/pinot/issues/15666#issuecomment-2854253537
Regardless of my needs, I would expect, as per documentation, that when I use the `taskMaxNumFiles` parameters, it will be used and respected. `desiredSegmentSize`, as the name suggests, is desired, but `taskMaxNumFiles` should take precedence. Furthermore, there is no mention of any connection between the two in the documentation.
This is needed when the minions are memory constrained,
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] taskMaxNumFiles is being ignored [pinot]
Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #15666:
URL: https://github.com/apache/pinot/issues/15666#issuecomment-2852401807
@KKcorps @swaminathanmanish Please take a look
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] taskMaxNumFiles is being ignored [pinot]
Posted by "KKcorps (via GitHub)" <gi...@apache.org>.
KKcorps commented on issue #15666:
URL: https://github.com/apache/pinot/issues/15666#issuecomment-2887563944
It is being ignored because `tableMaxNumTasks` is set to `-1`
In this case, it will run only one task and uses desiredSegmentSize
You can set it to a positive value and `taskMaxNumFiles` will start getting honoured
I'll update the documentation to make it more clear.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] taskMaxNumFiles is being ignored [pinot]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #15666:
URL: https://github.com/apache/pinot/issues/15666#issuecomment-4173740040
This issue has been automatically marked as stale because it has not had any activity in the last 150 days. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] taskMaxNumFiles is being ignored [pinot]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #15666: taskMaxNumFiles is being ignored
URL: https://github.com/apache/pinot/issues/15666
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org