Skip to main content
Yuriy_but
Gold ⭐️
September 14, 2020
Solved

cloudera agent TLS configuration

Hello.
I'm trying to use my own certs from CA(I converted them to right format)
I'm already configurated TLS for cloudera manager server (when I signed on https://{MASTER_IP}:7183 - I see it.
File cm_init.txt
 
setsettings AGENT_TLS true
setsettings WEB_TLS true
setsettings NEED_AGENTS_VALIDATION true
setsettings AUTO_TLS_TYPE NONE
setsettings KEYSTORE_PATH /opt/agentcerts/MYKEYSTORE.jks
setsettings KEYSTORE_PASSWORD MYPASSWORD
setsettings TRUSTSTORE_PATH /opt/agentcerts/MYTRUSTSTORE.jks
setsettings TRUSTSTORE_PASSWORD MYPASSWORD
Also I used them for HUE web UI and Hue Load Balancer - its also work too.
But, I need to configurate certs to agents too, because I didn't see status of my agents in (hosts ->all hosts tab).
I changed file /etc/cloudera-scm-agent/config.ini, there main changes on him:
 
use_tls=1
verify_cert_file=/opt/agentcerts/MYCERT.pem
client_key_file=/opt/agentcerts/MYKEY.pem
client_keypw_file=/opt/agentcerts/KEYPASS.pw
client_cert_file=/opt/agentcerts/MYCERT.pem
verify_cert_dir=/opt/agentcerts/
 But in log file /var/log/cloudera-scm-agent/cloudera-scm-agent.log I still see defaults conf while it starts:
 
[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent        INFO     Agent Logging Level: INFO
[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent        INFO     Agent config:
[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent        INFO      Security.max_cert_depth = 9
[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent        INFO      Security.use_tls = 0
[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent        INFO      Security.client_cert_file = /var/lib/cloudera-scm-agent/agent-cert/cm-auto-host_cert_chain.pem
[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent        INFO      Security.verify_cert_file = /var/lib/cloudera-scm-agent/agent-cert/cm-auto-in_cluster_ca_cert.pem
[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent        INFO      Security.client_key_file = /var/lib/cloudera-scm-agent/agent-cert/cm-auto-host_key.pem
[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent        INFO      Security.client_keypw_file = /var/lib/cloudera-scm-agent/agent-cert/cm-auto-host_key.pw
[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent        INFO      Security.cm_auto_cert_dir = /var/lib/cloudera-scm-agent/agent-cert
 
Especially Idk why in log I see what use_tls=0.
Yuriy_but
Yuriy_butAnswer
Gold ⭐️
September 17, 2020

Miracle!

It's start work while I delete file "config.ini.orig" from folder /etc/cloudera-scm/agent/

Now there only "config.ini" file.

8 replies

Bender
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
September 14, 2020

Hello @Yuriy_but ,

 

thank you for reaching out to the Community. What is the CDH version you are using, please?

 

For CDH6.3 please find here the related documentation on how to manually configure TLS Encryption for CM.

 

Did you follow the steps from the documentation, please?

 

Thank you:
Ferenc

Translate
Ferenc Erdelyi, Technical Solutions Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button. Learn more about the Cloudera Community: - Community Guidelines (https://community.cloudera.com/t5/custom/page/page-id/Community_Guidelines) - How to use the forum (/t5/help/faqpage)
Yuriy_but
Yuriy_butAuthor
Gold ⭐️
September 15, 2020

I has enabled TLS Encryption for agents, but when I change file "/etc/cloudera-scm-agent/config.ini" to use_tls=1 and use path for my CA certs - its doesn't apply, in log I see parameters "use_tls=0 and standard auto_tls path to files".

Translate
Bender
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
September 16, 2020

Hello @Yuriy_but ,

 

thank you for this information.

 

Did you enable "Use TLS Encryption for Agents" on CM, please?

Did you restart both CM and the agent on the host after making these changes?

To verify if the configuration change worked the documentation describes:

"In the Cloudera Manager Admin Console, go to Hosts > All Hosts. If you see successful heartbeats reported in the Last Heartbeat column after restarting the agents, TLS encryption is working properly."

Kind regards:

Ferenc 

Translate
Ferenc Erdelyi, Technical Solutions Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button. Learn more about the Cloudera Community: - Community Guidelines (https://community.cloudera.com/t5/custom/page/page-id/Community_Guidelines) - How to use the forum (/t5/help/faqpage)