Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Failed to start Cloudera Manager Agent

Solved Go to solution
Highlighted

Failed to start Cloudera Manager Agent

New Contributor

Hi, Please help me to address below issue.. after agent installation , while starting cloudera manager agent on second VM machine I am getting following error ..

 

----------------- logs is as shown below --------------


Starting cloudera-scm-agent: [FAILED]
END (1)
agent logs:
BEGIN tail -n 50 /var/log/cloudera-scm-agent//cloudera-scm-agent.out | sed 's/^/>>/'
>> [--orphan_process_directory_refresh_interval ORPHAN_PROCESS_DIRECTORY_REFRESH_INTERVAL]
>> [--agent_httpd_port AGENT_HTTPD_PORT] --package_dir
>> PACKAGE_DIR [--parcel_dir PARCEL_DIR]
>> [--supervisord_path SUPERVISORD_PATH]
>> [--supervisord_httpd_port SUPERVISORD_HTTPD_PORT]
>> [--standalone STANDALONE] [--master MASTER]
>> [--environment ENVIRONMENT] [--host_id HOST_ID]
>> [--disable_supervisord_events] --hostname HOSTNAME
>> --ip_address IP_ADDRESS
>> [--reported_hostname REPORTED_HOSTNAME] [--use_tls]
>> [--client_key_file CLIENT_KEY_FILE]
>> [--client_cert_file CLIENT_CERT_FILE]
>> [--verify_cert_file VERIFY_CERT_FILE]
>> [--verify_cert_dir VERIFY_CERT_DIR]
>> [--client_keypw_file CLIENT_KEYPW_FILE]
>> [--client_keypw_cmd CLIENT_KEYPW_CMD]
>> [--max_cert_depth MAX_CERT_DEPTH] [--logfile LOGFILE]
>> [--logdir LOGDIR] [--optional_token] [--clear_agent_dir]
>> [--sudo_command SUDO_COMMAND] [--pidfile PIDFILE]
>> [--comm_name COMM_NAME]
>>cmf-agent: error: argument --hostname is required
>>[26/Jun/2018 00:17:43 +0000] 11328 MainThread agent INFO SCM Agent Version: 5.13.0
>>[26/Jun/2018 00:17:43 +0000] 11328 MainThread agent ERROR Could not determine hostname or ip address; proceeding.
>>Traceback (most recent call last):
>> File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.13.0-py2.6.egg/cmf/agent.py", line 2686, in parse_arguments
>> ip_address = socket.gethostbyname(fqdn)
>>gaierror: [Errno -3] Temporary failure in name resolution
>>usage: cmf-agent [-h] [--agent_dir AGENT_DIR] [--daemon] [--lib_dir LIB_DIR]
>> [--orphan_process_directory_staleness_threshold ORPHAN_PROCESS_DIRECTORY_STALENESS_THRESHOLD]
>> [--orphan_process_directory_refresh_interval ORPHAN_PROCESS_DIRECTORY_REFRESH_INTERVAL]
>> [--agent_httpd_port AGENT_HTTPD_PORT] --package_dir
>> PACKAGE_DIR [--parcel_dir PARCEL_DIR]
>> [--supervisord_path SUPERVISORD_PATH]
>> [--supervisord_httpd_port SUPERVISORD_HTTPD_PORT]
>> [--standalone STANDALONE] [--master MASTER]
>> [--environment ENVIRONMENT] [--host_id HOST_ID]
>> [--disable_supervisord_events] --hostname HOSTNAME
>> --ip_address IP_ADDRESS
>> [--reported_hostname REPORTED_HOSTNAME] [--use_tls]
>> [--client_key_file CLIENT_KEY_FILE]
>> [--client_cert_file CLIENT_CERT_FILE]
>> [--verify_cert_file VERIFY_CERT_FILE]
>> [--verify_cert_dir VERIFY_CERT_DIR]
>> [--client_keypw_file CLIENT_KEYPW_FILE]
>> [--client_keypw_cmd CLIENT_KEYPW_CMD]
>> [--max_cert_depth MAX_CERT_DEPTH] [--logfile LOGFILE]
>> [--logdir LOGDIR] [--optional_token] [--clear_agent_dir]
>> [--sudo_command SUDO_COMMAND] [--pidfile PIDFILE]
>> [--comm_name COMM_NAME]
>>cmf-agent: error: argument --hostname is required
>> [--orphan_process_directory_refresh_interval ORPHAN_PROCESS_DIRECTORY_REFRESH_INTERVAL]
>> [--agent_httpd_port AGENT_HTTPD_PORT] --package_dir
>> PACKAGE_DIR [--parcel_dir PARCEL_DIR]
>> [--supervisord_path SUPERVISORD_PATH]
>> [--supervisord_httpd_port SUPERVISORD_HTTPD_PORT]
>> [--standalone STANDALONE] [--master MASTER]
>> [--environment ENVIRONMENT] [--host_id HOST_ID]
>> [--disable_supervisord_events] --hostname HOSTNAME
>> --ip_address IP_ADDRESS
>> [--reported_hostname REPORTED_HOSTNAME] [--use_tls]
>> [--client_key_file CLIENT_KEY_FILE]
>> [--client_cert_file CLIENT_CERT_FILE]
>> [--verify_cert_file VERIFY_CERT_FILE]
>> [--verify_cert_dir VERIFY_CERT_DIR]
>> [--client_keypw_file CLIENT_KEYPW_FILE]
>> [--client_keypw_cmd CLIENT_KEYPW_CMD]
>> [--max_cert_depth MAX_CERT_DEPTH] [--logfile LOGFILE]
>> [--logdir LOGDIR] [--optional_token] [--clear_agent_dir]
>> [--sudo_command SUDO_COMMAND] [--pidfile PIDFILE]
>> [--comm_name COMM_NAME]
>>cmf-agent: error: argument --hostname is required
>>[26/Jun/2018 00:17:43 +0000] 11328 MainThread agent INFO SCM Agent Version: 5.13.0
>>[26/Jun/2018 00:17:43 +0000] 11328 MainThread agent ERROR Could not determine hostname or ip address; proceeding.
>>Traceback (most recent call last):
>> File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.13.0-py2.6.egg/cmf/agent.py", line 2686, in parse_arguments
>> ip_address = socket.gethostbyname(fqdn)
>>gaierror: [Errno -3] Temporary failure in name resolution
>>usage: cmf-agent [-h] [--agent_dir AGENT_DIR] [--daemon] [--lib_dir LIB_DIR]
>> [--orphan_process_directory_staleness_threshold ORPHAN_PROCESS_DIRECTORY_STALENESS_THRESHOLD]
>> [--orphan_process_directory_refresh_interval ORPHAN_PROCESS_DIRECTORY_REFRESH_INTERVAL]
>> [--agent_httpd_port AGENT_HTTPD_PORT] --package_dir
>> PACKAGE_DIR [--parcel_dir PARCEL_DIR]
>> [--supervisord_path SUPERVISORD_PATH]
>> [--supervisord_httpd_port SUPERVISORD_HTTPD_PORT]
>> [--standalone STANDALONE] [--master MASTER]
>> [--environment ENVIRONMENT] [--host_id HOST_ID]
>> [--disable_supervisord_events] --hostname HOSTNAME
>> --ip_address IP_ADDRESS
>> [--reported_hostname REPORTED_HOSTNAME] [--use_tls]
>> [--client_key_file CLIENT_KEY_FILE]
>> [--client_cert_file CLIENT_CERT_FILE]
>> [--verify_cert_file VERIFY_CERT_FILE]
>> [--verify_cert_dir VERIFY_CERT_DIR]
>> [--client_keypw_file CLIENT_KEYPW_FILE]
>> [--client_keypw_cmd CLIENT_KEYPW_CMD]
>> [--max_cert_depth MAX_CERT_DEPTH] [--logfile LOGFILE]
>> [--logdir LOGDIR] [--optional_token] [--clear_agent_dir]
>> [--sudo_command SUDO_COMMAND] [--pidfile PIDFILE]
>> [--comm_name COMM_NAME]
>>cmf-agent: error: argument --hostname is required
END (0)
BEGIN tail -n 50 /var/log/cloudera-scm-agent//cloudera-scm-agent.log | sed 's/^/>>/'
tail: cannot open `/var/log/cloudera-scm-agent//cloudera-scm-agent.log' for reading: No such file or directory
tail: cannot open `/var/log/cloudera-scm-agent//cloudera-scm-agent.log' for reading: No such file or directory
END (0)

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Failed to start Cloudera Manager Agent

Expert Contributor

There is an issue with the hostname you have configured on the host.

Can you make sure that "hostname -f" resolves to a valid FQDN?

View solution in original post

2 REPLIES 2

Re: Failed to start Cloudera Manager Agent

Expert Contributor

There is an issue with the hostname you have configured on the host.

Can you make sure that "hostname -f" resolves to a valid FQDN?

View solution in original post

Highlighted

Re: Failed to start Cloudera Manager Agent

New Contributor
Thank you, I had mentioned alias in front of hostname in /etc/sysconfig/network file. i removed alias issue resolved .. hostname -f command helped me identify the issue
Regards
Siv
Don't have an account?
Coming from Hortonworks? Activate your account here