<https://github.com/startreedata/learn/tree/main/p...
# troubleshooting
m
https://github.com/startreedata/learn/tree/main/pinot-advanced/09-minion was going through this git hub link to know more about minions, seems like there is no data on how the ingestion is working. can u pls suggest an alternate resource
m
Search for minion based ingestion in docs.pinot.apache.org
m
@Mayank there is no clear documetation about ADLS . In documentation, its all about S3. "ingestionConfig": { "batchIngestionConfig": { "segmentIngestionType": "APPEND", "segmentIngestionFrequency": "DAILY", "batchConfigMaps": [ { "input.fs.className": "org.apache.pinot.plugin.filesystem.S3PinotFS", "input.fs.prop.region": "us-west-2", "input.fs.prop.secretKey": "....", "input.fs.prop.accessKey": "....", "inputDirURI": "s3://my.s3.bucket/batch/airlineStats/rawdata/", "includeFileNamePattern": "glob:*/.avro", "excludeFileNamePattern": "glob:*/.tmp", "inputFormat": "avro" } ] } }, "task": { "taskTypeConfigsMap": { "SegmentGenerationAndPushTask": { "schedule": "0 */10 * * * ?", "tableMaxNumTasks": "10" } } } Here is the ingestion config that enables minion based ingestion from S3 to pinot. But I want ADLS to pinot ingestion. I was looking for the ingestion config specific to ADLS. The keys etc. will be different right?
m
@Ragesh Rajagopalan @Manish ^^
r
Yes, we don't have docs demonstrating Azure examples as of now. This is in the works and would be available in couple of months. Meanwhile, the configs to connect to azure would look like the following. These are the configs that is specifics to azure and other configs are same for all clouds.
Copy code
"input.fs.className": "org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS",
      "input.fs.prop.authenticationType": "accessKey",
      "input.fs.prop.accountName": "my_account_key",
	  "input.fs.prop.accessKey": "my_access_key",
      "input.fs.prop.fileSystemName": "my_file_system_name",
      "inputDirURI": "abfss://xxxx@yyyy.dfs.core.windows.net/datasets/salesdata",
m
@Ragesh Rajagopalan @Mayank @Manish I tried with the updated table config u gave. But no ingestion is taking place. The tasks are not getting scheduled, the segments are not generated. I am running pinot locally using docker.
But the interesting part is that, the ingestion through job spec file methos is working
{ "executionFrameworkSpec": { "name": "standalone", "segmentGenerationJobRunnerClassName": "org.apache.pinot.plugin.ingestion.batch.standalone.SegmentGenerationJobRunner", "segmentTarPushJobRunnerClassName": "org.apache.pinot.plugin.ingestion.batch.standalone.SegmentTarPushJobRunner" }, "jobType": "SegmentCreationAndTarPush", "inputDirURI": "/opt/pinot/data", "includeFileNamePattern": "glob:*/.parquet", "outputDirURI": "/opt/pinot/data/segments", "overwriteOutput": true, "pinotFSSpecs": [ { "scheme": "file", "className": "org.apache.pinot.spi.filesystem.LocalPinotFS" } ], "recordReaderSpec": { "dataFormat": "parquet", "className": "org.apache.pinot.plugin.inputformat.parquet.ParquetRecordReader" }, "tableSpec": { "tableName": "t_silver_ticket", "schemaURI": "http://localhost:9000/schemas/t_silver_ticket", "tableConfigURI": "http://localhost:9000/tables/t_silver_ticket" }, "pushJobSpec": {}, "pinotClusterSpecs": [ { "controllerURI": "http://localhost:9000" } ] } here is my jobspec file. The segments are created locally and the ingestion happens to pinot. I am confused why the minion based approach is not at all working? @Ragesh Rajagopalan @Mayank can u pls look into this. I am dropping my able config below: { "tableName": "t_silver_ticket", "tableType": "OFFLINE", "segmentsConfig": { "timeColumnName": "created_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", "minion": "DefaultTenant" }, "metadata": { "customConfigs": {} }, "ingestionConfig": { "batchIngestionConfig": { "segmentIngestionType": "APPEND", "segmentIngestionFrequency": "DAILY", "batchConfigMaps": [ { "input.fs.className": "org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS", "input.fs.prop.authenticationType": "accessKey", "input.fs.prop.accountName": "testwzdatalake", "input.fs.prop.accessKey": "xxxxxxxxxxxxxxxxxxxxxxxxxx", "input.fs.prop.fileSystemName": "parquet-to-pinot", "inputDirURI": "abfss://parquet-to-pinot@testwzdatalake.dfs.core.windows.net/files/", "includeFileNamePattern": "glob:*/.parquet", "excludeFileNamePattern": "glob:*/.tmp", "inputFormat": "parquet" } ] } }, "task": { "taskTypeConfigsMap": { "SegmentGenerationAndPushTask": { "schedule": "0 */10 * * * ?", "tableMaxNumTasks": "10" } } } }
Hi @Manish @Mayank @Ragesh Rajagopalan My issue is resolved. Now I am able to read data from adls container and ingest to pinot. Special thanks to this guy @Ragesh Rajagopalan. The issue was due to mismatch in the "input.fs.prop.authenticationType" key. The correct table config is attached below, for someone confused in future 🙂 { "OFFLINE": { "tableName": "t_silver_ticket_OFFLINE", "tableType": "OFFLINE", "segmentsConfig": { "schemaName": "t_silver_ticket", "replication": "1", "timeType": "MILLISECONDS", "timeColumnName": "created_on", "segmentPushType": "APPEND", "segmentAssignmentStrategy": "BalanceNumSegmentAssignmentStrategy", "minimizeDataMovement": false }, "tenants": { "broker": "DefaultTenant", "server": "DefaultTenant" }, "tableIndexConfig": { "enableDefaultStarTree": false, "nullHandlingEnabled": false, "invertedIndexColumns": [ "ticket_state" ], "aggregateMetrics": false, "sortedColumn": [ "created_on" ], "rangeIndexVersion": 2, "optimizeDictionaryForMetrics": false, "optimizeDictionary": false, "enableDynamicStarTreeCreation": false, "columnMajorSegmentBuilderEnabled": true, "autoGeneratedInvertedIndex": false, "createInvertedIndexDuringSegmentGeneration": false, "loadMode": "MMAP", "optimizeDictionaryType": false, "noDictionarySizeRatioThreshold": 0.85 }, "metadata": { "customConfigs": {} }, "task": { "taskTypeConfigsMap": { "SegmentGenerationAndPushTask": { "schedule": "0 */5 * * * ?", "tableMaxNumTasks": "10" } } }, "ingestionConfig": { "batchIngestionConfig": { "batchConfigMaps": [ { "input.fs.className": "org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS", "input.fs.prop.authenticationType": "ACCESS_KEY", "input.fs.prop.accountName": "{container_name}", "input.fs.prop.accessKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "input.fs.prop.fileSystemName": "{folder_name}", "inputDirURI": "abfss://parquet-to-pinot@testwzdatalake.dfs.core.windows.net/files", "includeFileNamePattern": "glob:*/.parquet", "excludeFileNamePattern": "glob:*/.tmp", "inputFormat": "parquet" } ], "segmentIngestionType": "APPEND", "segmentIngestionFrequency": "DAILY", "consistentDataPush": false }, "continueOnError": false, "rowTimeValueCheck": false, "segmentTimeValueCheck": true }, "isDimTable": false } } Thanks Pinot Community for all the help!
m
Thanks a lot Mathew for confirming. And thanks @Ragesh Rajagopalan for helping out.