Created on 11-27-2018 05:54 AM - edited 08-17-2019 04:08 PM
OS: RHL 7
I am still not very clear regarding the FQDN of the system needed while registering the host.
The screenshot is attached.
Created 11-27-2018 03:15 PM
Hi @Shraddha Singh,
It looks like your ambari-agent is running but its nota ble to contact the Ambari-server to TLS issue.
Can you carefully read this article and see if it helps you ?
additionaly try disable Cert verification in python refering to :https://access.redhat.com/articles/2039753#controlling-certificate-verification-7
sed -i 's/verify=platform_default/verify=disable/'/etc/python/cert-verification.cfg
Please accept this answer if it helps you
Created 11-27-2018 06:13 AM
Hi @Shraddha Singh,
From the screenshot its not evident what error you are facing.
Can you go click on the hostname and see what error its showing.
also Have you followed the pre-requisites to prepare all the nodes?
is passwordless ssh is set :https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-installation-ppc/content/set_up_password-less_ssh.html
and your newly added node is able to contact the ambari-server without password ?
Also make sure that the following command returns the correct output: (On all hosts)
hostname -f
also you can try installing ambari-agents manually if required : https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-administration/content/install_th...
and follow the below steps to make sure it will get connected to correct ambari-server and retry this confirm hosts :
Steps
* Configure the Ambari Agent by editing the ambari-agent.ini
file as shown in the following example:
vi /etc/ambari-agent/conf/ambari-agent.ini
[server]
hostname=<your.ambari.server.hostname>
url_port=8440
secured_url_port=8441
ambari-agent start
The agent registers with the Server on start.
Please accept this answer if this solves your query and you found it helpful
Created 11-27-2018 06:24 AM
I have manually nstalled the agent and made the changes in .ini file of ambari-agent and restarted everything but still I am getting the error that
Registration with the server failed.
I have changes the server name of .ini file as the output of hostname -f command.
Created 11-27-2018 06:30 AM
Hi @Shraddha Singh,
Can you do a tail -f on /var/log/ambari-agent/ambari-agent.log
[root@asnaik-script-amariadb1 ~]# tail -f /var/log/ambari-agent/ambari-agent.log INFO 2018-11-27 06:30:05,217 logger.py:75 - Testing the JVM's JCE policy to see it if supports an unlimited key length. INFO 2018-11-27 06:30:05,490 Hardware.py:176 - Some mount points were ignored: /, /dev, /dev/shm, /run, /sys/fs/cgroup, /run/user/0 INFO 2018-11-27 06:30:05,494 Controller.py:320 - Sending Heartbeat (id = 1279793) INFO 2018-11-27 06:30:05,499 Controller.py:333 - Heartbeat response received (id = 1279794) INFO 2018-11-27 06:30:05,499 Controller.py:342 - Heartbeat interval is 1 seconds INFO 2018-11-27 06:30:05,499 Controller.py:380 - Updating configurations from heartbeat INFO 2018-11-27 06:30:05,499 Controller.py:389 - Adding cancel/execution commands INFO 2018-11-27 06:30:05,500 Controller.py:406 - Adding recovery commands INFO 2018-11-27 06:30:05,500 Controller.py:475 - Waiting 0.9 for next heartbeat INFO 2018-11-27 06:30:06,401 Controller.py:482 - Wait for next heartbeat over
and see if you can find these in ambari-agent log
if ambari-agent is able to send heartbeat to ambari-server then we should see
tail -f /var/log/ambari-server/ambari-server.log
and see what exception or error you are finding when you press rety.
Created on 11-27-2018 11:46 AM - edited 08-17-2019 04:08 PM
The output of the command is attached: 8433 as i changed the url port to 8433,it is still not reachable
Created 11-27-2018 02:56 PM
I got the following result after running the command:
WARNING 2018-11-27 13:42:59,507 NetUtil.py:124 - Server at https://devdp30.eng.s sn:8440 is not reachable, sleeping for 10 seconds... INFO 2018-11-27 13:43:09,507 NetUtil.py:70 - Connecting to https://devdp30.eng.ssn:8440/ca ERROR 2018-11-27 13:43:09,509 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618) ERROR 2018-11-27 13:43:09,509 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. WARNING 2018-11-27 13:43:09,509 NetUtil.py:124 - Server at https://devdp30.eng.ssn:8440 is not reachable, sleeping for 10 seconds... INFO 2018-11-27 13:43:19,510 main.py:439 - Connecting to Ambari server at https://devdp30.eng.ssn:8440 (172.23.222.59) INFO 2018-11-27 13:43:19,510 NetUtil.py:70 - Connecting to https://devdp30.eng.ssn:8440/ca ERROR 2018-11-27 13:43:19,511 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618) ERROR 2018-11-27 13:43:19,511 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. WARNING 2018-11-27 13:43:19,511 NetUtil.py:124 - Server at https://devdp30.eng.ssn:8440 is not reachable, sleeping for 10 seconds... INFO 2018-11-27 13:43:29,512 NetUtil.py:70 - Connecting to https://devdp30.eng.ssn:8440/ca ERROR 2018-11-27 13:43:29,513 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618) ERROR 2018-11-27 13:43:29,513 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. WARNING 2018-11-27 13:43:29,514 NetUtil.py:124 - Server at https://devdp30.eng.ssn:8440 is not reachable, sleeping for 10 seconds...
Created 11-27-2018 06:36 AM
Hi @Shraddha Singh,
Follow the below prerequisites for installation
1. Enable NTP
$systemctl enable ntpd.service or $service ntpd start $systemctl status ntpd
2. Setting up Host Name
$vim /etc/hosts <ip_address> <fully.qualified.domain.name> <alias_name>
3. Use the "hostname" command to set the hostname on each host in your cluster.
$hostname <fully.qualified.domain.name>
4. $vim /etc/sysconfig/network
NETWORKING=yes HOSTNAME=<fully.qualified.domain.name>
5. Verification
$hostname –f <FQDN> $hostname –i <HOST_IP>
6. Configuring iptables
$service firewalld stop or $systemclt disable firewalld.service $service firewalld status
If you want to pre-install the Agents, you can perform a manual agent setup. This involves two steps:
1. Configuring Ambari Repo
Log in to your host as root Add ambari.repo file to /etc/yum.repos.d/
2. Confirm that the repository is configured by checking the repolist
$yum repolist
3. Install Ambari agent
$yum install ambari-agent
4. Configure the Ambari Agent by editing the ambari-agent.ini file as shown in the following example
$vim /etc/ambari-agent/conf/ambari-agent.ini [server] hostname=<your.ambari.server.hostname> url_port=8440 secured_url_port=8441
5. Start agent on all host
$ambari-agent start
6. Go to Ambari UI -> Install options -> select Perform manual registration -> Next
Hope this helps. Thanks
Created on 11-27-2018 08:11 AM - edited 08-17-2019 04:08 PM
Hi @Sampath Kumar,
I have followed all the steps stated above already for the installation but still while registering I am getting error.
devdp30.eng.ssn - is the hostname I have given and changed in all the required places.
Created 11-27-2018 03:15 PM
Hi @Shraddha Singh,
It looks like your ambari-agent is running but its nota ble to contact the Ambari-server to TLS issue.
Can you carefully read this article and see if it helps you ?
additionaly try disable Cert verification in python refering to :https://access.redhat.com/articles/2039753#controlling-certificate-verification-7
sed -i 's/verify=platform_default/verify=disable/'/etc/python/cert-verification.cfg
Please accept this answer if it helps you
Created 11-28-2018 04:16 AM
@Shraddha Singh were you able to resolve the issue with the abouve blog ?