Ayush Kumar Jha
11/24/2021, 6:20 PMjava.lang.IllegalStateException: Unable to extract out the relative path for input file file path "file path"
in 0.8.0 and 0.9.0 but it is working fine in 0.7.1Mayank
Ayush Kumar Jha
11/24/2021, 6:48 PMexecutionFrameworkSpec:
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'
jobType: SegmentCreationAndTarPush
inputDirURI: '<adl://path/to/input/directory/>'
outputDirURI: '<adl://path/to/output/directory/>'
overwriteOutput: true
pinotFSSpecs:
- scheme: adl
className: org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS
configs:
accountName: ''
accessKey: ''
fileSystemName: ''
recordReaderSpec:
dataFormat: 'avro'
className: 'org.apache.pinot.plugin.inputformat.orc.ORCRecordReader'
tableSpec:
tableName: 'TABLE_NAME'
pinotClusterSpecs:
- controllerURI: 'controller_uri'Ayush Kumar Jha
11/24/2021, 6:48 PMFailed to generate Pinot segment for file - file:/TABLE_NAME/FILE1
java.lang.IllegalStateException: Unable to extract out the relative path for input file 'file:/TABLE_NAME/FILE1', based on base i
nput path: <adl://path/to/TABLE_NAME/>
at shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:444) ~[pinot-all-0.8.0-jar-with-dependencies.jar:0.8.0-c4ceff06d21fc1c1b8
8469a8dbae742a4b609808]
at org.apache.pinot.common.segment.generation.SegmentGenerationUtils.getRelativeOutputPath(SegmentGenerationUtils.java:156) ~[pinot-all-0.8.0-jar-with
-dependencies.jar:0.8.0-c4ceff06d21fc1c1b88469a8dbae742a4b609808]
at org.apache.pinot.plugin.ingestion.batch.standalone.SegmentGenerationJobRunner.lambda$submitSegmentGenTask$1(SegmentGenerationJobRunner.java:276) ~[
pinot-batch-ingestion-standalone-0.8.0-shaded.jar:0.8.0-9a0f41bc24243ff74315723b0153b534c2596e30]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]Ayush Kumar Jha
11/24/2021, 6:50 PMMayank
<http://LOGGER.info|LOGGER.info>("Initializing PinotFS for scheme {}, classname {}", scheme, fsClassName);Mayank
dataFormat: 'avro', but you are using 'org.apache.pinot.plugin.inputformat.orc.ORCRecordReader'?Ayush Kumar Jha
11/24/2021, 7:08 PMInitializing PinotFS for scheme adl, classname org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS
Authenticating using the access key to the account.
ADLSGen2PinotFS is initialized (accountName=accountName, fileSystemName=fileSystemName, dfsServiceEndpointUrl=dfsServiceEndpointUrl, blobServiceEndpointUrl=blobServiceEndpointUrl, enableChecksum=false)Mayank
Seunghyun
11/24/2021, 7:37 PMpublic static void main(String[] args) {
getRelativeOutputPath(URI.create("<adl://path/to/TABLE_NAME>"), URI.create("file:/TABLE_NAME/FILE1"), URI.create("<adl://path/to/OUTPUT_TABLE_NAME>"));
}Xiang Fu
adl not fileSeunghyun
11/24/2021, 7:40 PMinputFile is passed as file:/TABLE_NAME/FILE1Seunghyun
11/24/2021, 7:40 PM<adl://path/to/TABLE_NAME/FILE1>Xiang Fu
Mayank
Xiang Fu
String[] files = _inputDirFS.listFiles(_inputDirURI, true); is giving all the uris with file scheme?Xiang Fu
Seunghyun
11/24/2021, 7:49 PMMayank
Xiang Fu