按照文档逐步安装CDH。
启用自动TLS,在安装所有代理后,得到错误消息:
Installation failed. Failed to receive heartbeat from agent.
Ensure that the host's hostname is configured properly.
Ensure that port 7182 is accessible on the Cloudera Manager Server (check firewall rules).
Ensure that ports 9000 and 9001 are not in use on the host being added.
Check agent logs in /var/log/cloudera-scm-agent/ on the host being added. (Some of the logs can be found in the installation details).
If Use TLS Encryption for Agents is enabled in Cloudera Manager (Administration -> Settings -> Security), ensure that /etc/cloudera-scm-agent/config.ini has use_tls=1 on the host being added. Restart the corresponding agent and click the Retry link here.
并在日志中。
>>[26/Jun/2019 19:18:34 +0000] 7551 MainThread agent ERROR Heartbeating to n1.c.com:7182 failed.
>>Traceback (most recent call last):
>> File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1387, in _send_heartbeat
>> self.cfg.max_cert_depth)
>> File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/https.py", line 139, in __init__
>> self.conn.connect()
>> File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/M2Crypto/httpslib.py", line 69, in connect
>> sock.connect((self.host, self.port))
>> File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/M2Crypto/SSL/Connection.py", line 309, in connect
>> ret = self.connect_ssl()
>> File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/M2Crypto/SSL/Connection.py", line 295, in connect_ssl
>> return m2.ssl_connect(self.ssl, self._timeout)
>>SSLError: sslv3 alert bad certificate
我注意到“需要具有企业许可证才能启用自动TLS。”,这是一个问题吗?我没有获取CDH的企业许可证。