Hi Team , Can you pls help me to solve an issue I ...
# troubleshooting
m
Hi Team , Can you pls help me to solve an issue I am facing with data ingestion to pinot, using minions { "tableName": "t_silver_ticket", "tableType": "OFFLINE", "segmentsConfig": { "timeColumnName": "ticket_updated_on", "timeType": "MILLISECONDS", "segmentPushType": "APPEND", "segmentAssignmentStrategy": "BalanceNumSegmentAssignmentStrategy", "schemaName": "t_silver_ticket", "replication": "1" }, "tableIndexConfig": { "loadMode": "MMAP", "invertedIndexColumns": [ "ticket_state" ], "sortedColumn": [ "created_on" ] }, "tenants": { "broker": "DefaultTenant", "server": "DefaultTenant" }, "metadata": { "customConfigs": {} }, "ingestionConfig": { "batchIngestionConfig": { "segmentIngestionType": "APPEND", "segmentIngestionFrequency": "HOURLY", "batchConfigMaps": [ { "input.fs.className": "org.apache.pinot.plugin.filesystem.AzurePinotFS", "input.fs.prop.accountName": "testwzdatalake", "input.fs.prop.accountKey": "xxxxxxxxxxxxxxxx", "inputDirURI": "abfs://parquet-to-pinot@testwzdatalake.dfs.core.windows.net/", "includeFileNamePattern": "glob:*/.parquet", "excludeFileNamePattern": "glob:*/.tmp", "inputFormat": "parquet" } ] } }, "task": { "taskTypeConfigsMap": { "SegmentGenerationAndPushTask": { "schedule": "0 */10 * * * ?", "taskQueueConfig": "SegmentGenerationAndPushTask" } } } } This is the table config I am using. I uploaded the schema and table to pinot and I can see the SegmentGenerationandPushTask in Pinot UI. But no tasks/segments are created. My use case is to read parquet files from ADLS container and ingest to pinot.
m
Can you click on "schedule now" from minion UI and see what happens?
m
Failed message is shown
'Could not schedule task' this error is shown
m
I see. Can you check on controller logs to see whats going on for this task and table (
SegmentGenerationAndPushTask
and table
t_silver_ticket
You can grep for all logs coming from
SegmentGenerationAndPushTaskGenerator
in pinotController.log
m
okay @Manish Let me check and I ll get back to you. Also thanks for taking time to help me
Hi @Manish I could understand this from the controller logs Looking at the logs, there's a recurring issue with the SegmentGenerationAndPushTask for the t_silver_ticket_OFFLINE table. The key problem appears to be that the controller is not the leader ("isLeader: false") and is unable to generate the segment generation and push task.
what does this mean? like is this the core issue?
Here are the key observations: 1. The task is scheduled to run every 10 minutes (cron: 0 */10 * * * ?) 2. Each attempt results in an error: "Unable to generate the SegmentGenerationAndPush task" 3. The controller consistently reports isLeader: false
Pinot Controller Leadership and Task Generation Issue Report I*ssue Summary* The Apache Pinot cluster is experiencing persistent leadership and task generation failures, preventing data ingestion from Azure Data Lake Storage. Key Symptoms 1. Leadership Status: Controller consistently reports isLeader: false 2. Task Generation: Unable to generate SegmentGenerationAndPushTask Storage: Configuration change from AzurePinotFS to ADLSGen2PinotFS did not resolve the issue 1. Controller Configuration Issues # Current Configuration (Missing Critical Parameters) controller.helix.cluster.name=pinot controller.port=9000 controller.data.dir=/var/pinot/controller/data controller.zk.str=pinot-zookeeper:2181 Missing critical configurations: • Leadership election type • Split commit configuration • Leader election participant settings 2. Zookeeper Integration # Zookeeper Status Check Result Node does not exist: /pinot/controller Indicates controller-zookeeper registration failure 3. Task Scheduling Pattern Every 10 minutes: - Task execution attempt - isLeader: false reported - Task generation failure - Next schedule set
{ "tableName": "t_silver_ticket", "tableType": "OFFLINE", "segmentsConfig": { "timeColumnName": "ticket_updated_on", "timeType": "MILLISECONDS", "segmentPushType": "APPEND", "segmentAssignmentStrategy": "BalanceNumSegmentAssignmentStrategy", "schemaName": "t_silver_ticket", "replication": "1" }, "tableIndexConfig": { "loadMode": "MMAP", "invertedIndexColumns": [ "ticket_state" ], "sortedColumn": [ "created_on" ] }, "tenants": { "broker": "DefaultTenant", "server": "DefaultTenant" }, "metadata": { "customConfigs": {} }, "ingestionConfig": { "batchIngestionConfig": { "segmentIngestionType": "APPEND", "segmentIngestionFrequency": "HOURLY", "batchConfigMaps": [ { "input.fs.className": "org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS", "input.fs.prop.accountName": "testwzdatalake", "input.fs.prop.accessKey": "DbCLb0YMxe05V++wUeEF4SpSvlPhfE78oVs7NTfPJ8/0OFAR3G/w/N1l96Zpzm0Kgse8mv4+v1zA+ASt6gxULA==", "inputDirURI": "adl2://parquet-to-pinot@testwzdatalake.dfs.core.windows.net/", "includeFileNamePattern": "glob:*/.parquet", "excludeFileNamePattern": "glob:*/.tmp", "inputFormat": "parquet" } ] } }, "task": { "taskTypeConfigsMap": { "SegmentGenerationAndPushTask": { "schedule": "0 */10 * * * ?", "taskQueueConfig": "SegmentGenerationAndPushTask", "storage.factory.class.adl2": "org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS", "storage.factory.adl2.accountName": "testwzdatalake", "storage.factory.adl2.accessKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "storage.factory.adl2.fileSystemName": "parquet-to-pinot", "segment.fetcher.adl2.class": "org.apache.pinot.common.utils.fetcher.PinotFSSegmentFetcher", "segment.fetcher.protocols": "adl2,file,http" } } } } This is the table config I am using