CDH

使用cdh安装hadoop时候,报“ MainThread agent ERROR Failed to connect to previous supervisor.”

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.
  /var/log/cloudera-scm-agent/cloudera-scm-agent.log 内容如下:[27/Oct/2017 09:23:54 +0000] 108304 MainThread agent        INFO     To override these variables, use /etc/cloudera-scm-agent/config.ini. Environment variables for CDH locations are not used when CDH is installed from parcels. [27/Oct/2017 09:23:54 +0000] 108304 MainThread agent        INFO     Re-using pre-existing directory: /run/cloudera-scm-agent/process [27/Oct/2017 09:23:54 +0000] 108304 MainThread agent        INFO     Re-using pre-existing directory: /run/cloudera-scm-agent/supervisor [27/Oct/2017 09:23:54 +0000] 108304 MainThread agent        INFO     Re-using pre-existing directory: /run/cloudera-scm-agent/flood [27/Oct/2017 09:23:54 +0000] 108304 MainThread agent        INFO     Re-using pre-existing directory: /run/cloudera-scm-agent/supervisor/include [27/Oct/2017 09:23:54 +0000] 108304 MainThread agent        ERROR    Failed to connect to previous supervisor. Traceback (most recent call last):   File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.12.0-py2.7.egg/cmf/agent.py", line 2109, in find_or_start_supervisor     self.configure_supervisor_clients()   File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.12.0-py2.7.egg/cmf/agent.py", line 2290, in configure_supervisor_clients     supervisor_options.realize(args=["-c", os.path.join(self.supervisor_dir, "supervisord.conf")])   File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 1599, in realize     Options.realize(self, *arg, **kw)   File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 333, in realize     self.process_config()   File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 341, in process_config     self.process_config_file(do_usage)   File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 376, in process_config_file     self.usage(str(msg))   File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 164, in usage     self.exit(2) SystemExit: 2 [27/Oct/2017 09:23:54 +0000] 108304 Dummy-1 daemonize    WARNING  Stopping daemon. [27/Oct/2017 09:23:54 +0000] 108304 Dummy-1 agent        INFO     Stopping agent... [27/Oct/2017 09:23:54 +0000] 108304 Dummy-1 agent        INFO     No extant cgroups; unmounting any cgroup roots

fish - Hadooper

赞同来自:

确认将老的supervisord都杀干净了。可以先ps ax | fgrep supervisord 看下是否有老的进程。

要回复问题请先登录注册