mathew
12/25/2024, 6:37 PMpowershell
docker exec pinot-quickstart bin/pinot-admin.sh UploadSegment `
-controllerHost localhost `
-controllerPort 9000 `
-segmentDir /opt/pinot/data/segments `
-tableName t_silver_ticket
### Success Factors:
- Direct segment upload to Pinot
- Explicit table name specification
- Clear error messages if issues occur
- Simple and straightforward approach
## 2. Non-Working Method (Job Specification)
powershell
docker exec pinot-quickstart bin/pinot-admin.sh LaunchDataIngestionJob -jobSpecFile /opt/pinot/data/job-spec.json
### Issues:
1. Error Encountered:
- NullPointerException during segment push
- Failed in the SegmentTarPushJobRunner
2. Possible Causes:
- Complex configuration in job-spec.json
- Issues with segment generation before push
- Path or permission problems
## 3. Key Differences
1. Process Flow:
- Working Method: Direct upload of existing segments
- Non-Working Method: Attempts both segment creation and upload
2. Complexity:
- Working Method: Simple, single-step process
- Non-Working Method: Multi-step process with more points of failure
3. Configuration:
- Working Method: Minimal configuration needed
- Non-Working Method: Requires detailed job-spec.json configuration
## 4. Limitations
1. Working Method:
- Manual intervention required
- Not scalable for production
- No automated error handling
2. Non-Working Method:
- More complex setup
- Currently failing with errors
- Requires debugging and fixes
## 5. Conclusion
While the manual method works, it's not ideal for production. The job specification method, though currently failing, is the proper approach for production but needs fixing.Mayank
Kartik Khare
12/26/2024, 3:46 AMmathew
12/26/2024, 3:59 AMKartik Khare
12/26/2024, 1:43 PMmathew
12/26/2024, 1:45 PMKartik Khare
12/26/2024, 1:46 PM{
"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": {}
}mathew
12/26/2024, 1:46 PMKartik Khare
12/26/2024, 1:47 PMpushJobSpec not pushSpec
rest everything remains the samemathew
12/26/2024, 1:47 PMmathew
12/26/2024, 2:20 PM> -jobSpecFile /opt/pinot/data/job-spec.jsonWARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/opt/pinot/lib/pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar) to method java.lang.Object.finalize() WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2024/12/26 141446.543 ERROR [LaunchDataIngestionJobCommand] [main] Got exception to kick off standalone data ingestion job - java.lang.RuntimeException: Caught exception during running - org.apache.pinot.plugin.ingestion.batch.standalone.SegmentTarPushJobRunner at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.kickoffIngestionJob(IngestionJobLauncher.java:151) ~[pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.runIngestionJob(IngestionJobLauncher.java:121) ~[pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.tools.admin.command.LaunchDataIngestionJobCommand.execute(LaunchDataIngestionJobCommand.java:120) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.tools.Command.call(Command.java:33) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.tools.Command.call(Command.java:29) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at picocli.CommandLine.executeUserObject(CommandLine.java:2045) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at picocli.CommandLine.access$1500(CommandLine.java:148) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at picocli.CommandLine$RunLast.handle(CommandLine.java:2457) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at picocli.CommandLine$RunLast.handle(CommandLine.java:2419) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at picocli.CommandLine$RunLast.execute(CommandLine.java:2421) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at picocli.CommandLine.execute(CommandLine.java:2174) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.tools.admin.PinotAdministrator.execute(PinotAdministrator.java:174) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.tools.admin.PinotAdministrator.main(PinotAdministrator.java:210) [pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] Caused by: java.lang.NullPointerException at org.apache.pinot.segment.local.utils.SegmentPushUtils.pushSegments(SegmentPushUtils.java:166) ~[pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.segment.local.utils.SegmentPushUtils.pushSegments(SegmentPushUtils.java:109) ~[pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.plugin.ingestion.batch.standalone.SegmentTarPushJobRunner.uploadSegments(SegmentTarPushJobRunner.java:64) ~[pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.plugin.ingestion.batch.common.BaseSegmentPushJobRunner.run(BaseSegmentPushJobRunner.java:148) ~[pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.kickoffIngestionJob(IngestionJobLauncher.java:149) ~[pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar:1.3.0-SNAPSHOT-383bbce519f9dc54591240e161a9f909bda9c00d] ... 14 more java.lang.RuntimeException: Caught exception during running - org.apache.pinot.plugin.ingestion.batch.standalone.SegmentTarPushJobRunner at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.kickoffIngestionJob(IngestionJobLauncher.java:151) at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.runIngestionJob(IngestionJobLauncher.java:121) at org.apache.pinot.tools.admin.command.LaunchDataIngestionJobCommand.execute(LaunchDataIngestionJobCommand.java:120) at org.apache.pinot.tools.Command.call(Command.java:33) at org.apache.pinot.tools.Command.call(Command.java:29) at picocli.CommandLine.executeUserObject(CommandLine.java:2045) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465) at picocli.CommandLine$RunLast.handle(CommandLine.java:2457) at picocli.CommandLine$RunLast.handle(CommandLine.java:2419) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277) at picocli.CommandLine$RunLast.execute(CommandLine.java:2421) at picocli.CommandLine.execute(CommandLine.java:2174) at org.apache.pinot.tools.admin.PinotAdministrator.execute(PinotAdministrator.java:174) at org.apache.pinot.tools.admin.PinotAdministrator.main(PinotAdministrator.java:210) Caused by: java.lang.NullPointerException at org.apache.pinot.segment.local.utils.SegmentPushUtils.pushSegments(SegmentPushUtils.java:166) at org.apache.pinot.segment.local.utils.SegmentPushUtils.pushSegments(SegmentPushUtils.java:109) at org.apache.pinot.plugin.ingestion.batch.standalone.SegmentTarPushJobRunner.uploadSegments(SegmentTarPushJobRunner.java:64) at org.apache.pinot.plugin.ingestion.batch.common.BaseSegmentPushJobRunner.run(BaseSegmentPushJobRunner.java:148) at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.kickoffIngestionJob(IngestionJobLauncher.java:149) ... 14 more
mathew
12/26/2024, 2:20 PMKartik Khare
12/26/2024, 4:50 PM,
"pinotClusterSpecs": [
{
"controllerURI": "localhost:9000"
}
]
you need to replace localhost:9000 with your actual controller urlmathew
12/26/2024, 5:24 PMmathew
12/26/2024, 5:25 PMMayank
mathew
12/30/2024, 5:53 PMmathew
12/30/2024, 6:26 PMmathew
12/30/2024, 6:29 PMmathew
12/30/2024, 6:35 PMmathew
12/30/2024, 6:43 PM