Skip to main content
yagoaparecidoti
Gold ⭐️
Apr 13, 2022 8:27 PM UTC
Question

nifi manages the supervisor.conf file?

we need to know if nifi is responsible for the file below:

 

/run/cloudera-scm-agent/process/24750-nifi-NIFI_NODE/supervisor.conf

 

because this file contains information that we are not finding in the nifi settings in the CDM

9 replies

mszurap
Platinum ⭐️
Platinum ⭐️
Apr 14, 2022 8:45 AM UTC

Hi @yagoaparecidoti , in general, the "supervisor.conf" in the process directory (actually the whole process directory) is prepared by Cloudera Manager (server) before starting a process (CM server sends the whole package of information including config files to the CM agent which extracts it in a new process directory). The supervisor.conf file contains all the environment and command related information which is needed for the Supervisor daemon to start the process. There might be some default values taken from the cluster or from the service type.
Do you have some specific questions about it?

Translate
yagoaparecidoti
Gold ⭐️
Apr 14, 2022 1:57 PM UTC

hi @mszurap, how are you?

 

right, in the file "supervisor.conf" there is a parameter called "KRB5CCNAME=/tmp/kbr5cc_dffe", I would like to know where this information is coming from.

Translate
mszurap
Platinum ⭐️
Platinum ⭐️
Apr 14, 2022 2:42 PM UTC

Hi, I'm doing well, thank you, hope you're good too.

That property usually points to a relative path - which exists in the process directory:

KRB5CCNAME='krb5cc_cldr'

if that's not the case, I would look into whether the root user's (or maybe the "cloudera-scm" user's) .bashrc file has overridden that KRB5CCNAME environment variable by any chance.

Translate
yagoaparecidoti
Gold ⭐️
Apr 14, 2022 3:16 PM UTC

hi @mszurap , 

 

in the file "/run/cloudera-scm-agent/process/24750-nifi-NIFI_NODE/supervisor.conf" has exactly the parameter "KRB5CCNAME='krb5cc_cldr'"

 

do we need to know where he is getting this information from?

 

we already looked in the .bashrc and .bash_profile of the root user and other users, nothing was found.

Translate
mszurap
Platinum ⭐️
Platinum ⭐️
Apr 14, 2022 4:16 PM UTC

So is it "/tmp/kbr5cc_dffe" or "krb5cc_cldr"? Or where do you see the "KRB5CCNAME=/tmp/kbr5cc_dffe"? 

The "krb5cc_cldr" is used for all (? not sure, but all which I've quickly verified had that) services - we can say it's hardcoded - it is anyways "private" to the process itself, that holds the kerberos ticket cache which only that process is using (and renewing if needed).

Translate
cjervis
Community Manager
Community Manager
Apr 15, 2022 1:48 PM UTC

@yagoaparecidoti If your issue is resolved, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 

 

 

 

Screen Shot 2019-08-06 at 1.54.47 PM.pngmark as solution button

 

 

Translate
Keep the questions coming