Hi Team, I have to ingest files from s3a:// And wh...
# troubleshooting
n
Hi Team, I have to ingest files from s3a:// And when I try to use
org.apache.pinot.plugin.filesystem.S3PinotFS
I can’t extract output s3:// from base s3a:// path. Can any one help point me out how to use Hadoop-based S3 filesystem properly ? Thanks [error]
Unable to extract out the relative path for input file 's3://test/tmp/pinot/1738902620/20241231/00/_reporting_date_time=2024-12-31/part-00000-9a980735-a18d-4849-a657-c2116669227b.c000.avro', based on base input path: s3a://test/tmp/pinot/1738902620/20241231/00
m
@Ragesh Rajagopalan ^^
r
The inputDirURI and the input file should start with the same scheme. The mismatch is causing the error.
n
Thank you @Ragesh Rajagopalan
And say if my data engineer people prepare the data in ‘`s3a://{very_long_path}'` what is the pinotFSSpecs for this s3a scheme?
HadoopPinotFS
or
S3PinotFS
. I am confuse. @Ragesh Rajagopalan could you please shed the light on this corner please. Thank you.
r
Copy code
executionFrameworkSpec:
    name: 'standalone'
    segmentGenerationJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentGenerationJobRunner'
    segmentTarPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentTarPushJobRunner'
    segmentUriPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentUriPushJobRunner'
    segmentMetadataPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentMetadataPushJobRunner'
jobType: SegmentMetadataPush 
inputDirURI: 's3a://test/tmp/pinot/1738902620/20241231/00'
outputDirURI: 's3a://test/tmp/'
overwriteOutput: true
pinotFSSpecs:
    - scheme: s3a
      className: org.apache.pinot.plugin.filesystem.S3PinotFS
      configs:
        region: 'us-west-2'
        accessKey: myKey 
        secretKey: mySecret 
recordReaderSpec:
    dataFormat: 'csv'
    className: 'org.apache.pinot.plugin.inputformat.csv.CSVRecordReader'
    configClassName: 'org.apache.pinot.plugin.inputformat.csv.CSVRecordReaderConfig'
tableSpec:
    tableName: 'transcriptsv4'
    tableConfigURI: 'http://localhost:9000/tables/transcriptsv4'
pinotClusterSpecs:
    - controllerURI: 'http://localhost:9000'
pushJobSpec:
  pushAttempts: 2
  pushRetryIntervalMillis: 1000
^^ an example
n
Hi @Ragesh Rajagopalan I think my issue is exactly relate to this PR: https://github.com/apache/pinot/pull/14474/files Because all my inputDirURI, outputDirURI are
s3a://
but I don’t understand why SparkSegmentGenerationJobRunner try to output on
s3://
and above PR is appears to address that. Question is I can’t find this in any current release notes.
cc. @Mayank
Yes, I can confirm this. After cherry pick this change, my s3a:// issue has been resolved.