Search code examples
hadoopkerberosclouderamit-kerberoskdc

Cloudera node /etc/krb5.conf replaced at every reboot


I have a question, why are my cloudera nodes replacing the file /etc/krb5.conf ata every reboot ?? Im trying to make modifications, and when someone issues a reboot the file is again replaced by the old config file


Solution

  • Both CDH and HDP distros have an option to let their Hadoop cluster manager (Cloudera Manager vs. Ambari) also manage the Kerberos client config on all nodes.
    Or rather, they have an option not to let it manage it for you...

    From CDH 6.3 documentation

    Choose whether Cloudera Manager should deploy and manage the krb5.conf on your cluster or not ...
    this page will let you configure the properties that will be emitted in it. In particular, the safety valves on this page can be used to configure cross-realm authentication.

    From HDP 3.1 documentation

    (Optional) To manage your Kerberos client krb5.conf manually (and not have Ambari manage the krb5.conf), expand the Advanced krb5-conf section and uncheck the "Manage" option.
    (Optional) To not have Ambari install the Kerberos client libraries on all hosts, expand the Advanced kerberos-env section and uncheck the “Install OS-specific Kerberos client package(s)” option