Hi Breno.
Thanks for your feedback.
I think I will override the nifi image by adding my own entrypoint ( which will
call the nifi start.sh at the end)
In my entrypoint, I will call another script that will mimic the nifi
script.sh. In this new script , I will add something like :
prop_replace 'nifi.content.repository.archive.max.retention.period'
"${NIFI_CONTENT_REPOSITORY_ARCHIVE_MAX_RETENTION_PERIOD:-'12 hours"}"
Regards
From: Breno Cesar <[email protected]>
Sent: Tuesday, February 22, 2022 3:07 PM
To: [email protected]
Subject: Re: how to setup nifi.content.repository.archive.max.retention.period
in a Nifi docker image ?
CAUTION: External Email : Be wary of clicking links or if this claims to be
internal.
Hi Nicolas,
As far as i know, there is no variable for this config.The documentation has a
lack about this topic and does not explain about it.
Doing some "googling", i found that someone already maped this variables.
https://github.com/dprophet/nifi/blob/master/nifi-docker/dockerhub/CONFIGURATION.md<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdprophet%2Fnifi%2Fblob%2Fmaster%2Fnifi-docker%2Fdockerhub%2FCONFIGURATION.md&data=04%7C01%7Cnbelot%40infovista.com%7C9d7b2b54bc1c49e25d8308d9f60ca55f%7Cc8d853de982e440492ffb4189dc94e37%7C0%7C0%7C637811356471583447%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=IRvhcPqQz2gYCRz5bRiVQCp%2F7JhRz5I9GJY6m6iSsXg%3D&reserved=0>
Assuming this configuration you need is a tunnig, and will not be done
frequenly, as far as I know, you can change it in the default nifi files on a
clean docker image, and export it for later use.
Breno
Em ter., 22 de fev. de 2022 às 10:01, Nicolas Belot
<[email protected]<mailto:[email protected]>> escreveu:
Hello everyone.
I use a docker image of nifi and I need to tune
nifi.content.repository.archive.max.retention.period.
Is there a way to simply set it up through an env variable ?
I read the start.sh script but
nifi.content.repository.archive.max.retention.period does not appear in this
script.
Regards
N.