Diogo Baeder
01/28/2022, 6:56 PMpinot.yaml file, in the controller config, for deploying via the official Helm chart:
extra:
# Note: Extra configs will be appended to pinot-controller.conf file
configs: |-
pinot.set.instance.id.to.hostname=true
controller.task.scheduler.enabled=true
# Note: change this to the real bucket, after creating it in S3
controller.data.dir=s3://<redacted>
controller.local.temp.dir=/tmp/pinot-tmp-data/
pinot.controller.storage.factory.class.s3=org.apache.pinot.plugin.filesystem.S3PinotFS
pinot.controller.storage.factory.s3.region=<redacted>
pinot.controller.segment.fetcher.protocols=file,http,s3
pinot.controller.segment.fetcher.s3.class=org.apache.pinot.common.utils.fetcher.PinotFSSegmentFetcher
Is this the correct configuration to do - to append these configs to the existing ones? Or should the approach have been different? I'm asking this because I found a weird directory in one of the Controller local filesystems:
root@pinot-controller-1:/opt/pinot# du -sh /var/pinot/controller/data\,s3\:/
0 /var/pinot/controller/data,s3:/
By the looks of it, it seems like a configuration mistake somewhere
[SOLVED! - SOLUTION:]
Because the official Helm chart already defines that configuration, it ends up concatenating the one from the extras and the default one when loading from the final file, because that setting ends up defined twice in pinot-controller.conf inside the Controller container. The solution for this is to, instead of putting controller.data.dir as a one-line string in the extra configs, just define that setting starting from the controller options in that YAML file, then data instead of extra, then dir, so that the option replaces the default value.Jeff Moszuti
01/28/2022, 8:34 PMpinot-s3 needs to be added to the JVM args of controller (and minion)
-Dplugins.dir=/opt/pinot/plugins -Dplugins.include=pinot-s3Diogo Baeder
01/28/2022, 8:35 PMJeff Moszuti
01/28/2022, 8:52 PMDiogo Baeder
01/28/2022, 8:56 PMMark Needham
controller.data.dir - you are right that it seems to be appending that value to another value. I'm not sure how we can get it to override the initial value. I guess @Mayank might knowDiogo Baeder
01/28/2022, 9:59 PMMark Needham
Diogo Baeder
01/28/2022, 10:04 PMroot@pinot-controller-0:/opt/pinot# du -sh /var/pinot/controller/data,s3:/
166M /var/pinot/controller/data,s3:/
and I see no objects in my S3 bucketMark Needham
Mark Needham
data.dir valuesDiogo Baeder
01/28/2022, 10:07 PMDiogo Baeder
01/29/2022, 1:49 AMMayank
Diogo Baeder
01/29/2022, 5:36 PMDiogo Baeder
01/30/2022, 5:40 PMMark Needham
Mayank
Diogo Baeder
01/30/2022, 9:20 PMMark Needham
Mark Needham
Mark Needham
Diogo Baeder
01/30/2022, 10:09 PMDiogo Baeder
01/31/2022, 11:59 AMMark Needham
Diogo Baeder
01/31/2022, 12:02 PMMark Needham
Diogo Baeder
01/31/2022, 12:14 PMDiogo Baeder
01/31/2022, 12:14 PM