Member since
01-20-2016
2
Posts
1
Kudos Received
0
Solutions
01-20-2016
06:42 PM
1 Kudo
Thank you all for prompt replies and extra thanks to @Ancil McBarnett your answer was toward the right direction. I enabled all traffic in my security group (for testing purposes) as opposed to only tcp traffic before. As seen in the above logs the right port for ambari-server is 8440. That resolved the issue and now agents can be registered through Ambari. Just in sake of completeness my setup is: OS: RHEL-7.2 Ambari: 2.1.2 JDK: 1.8 Python: 2.7
... View more
01-20-2016
05:30 AM
I have created 3 AWS EC2 RHEL-7 instances, installed ambari server v2.2 (with jdk1.7) on 1 of them, then try to run the "create cluster" wizard. Then Ambari, even though passes all steps, fails in the final step to register agent with the server. The only node it succeeds to register is itself (the instance where ambari server is already running). It seems to me that there is an issue with the below call: Connecting to https://ip-172-31-31-118.ec2.internal:8440/ca ', None Security groups allow for all connections and no firewalls are running. Not completely sure if it can be SSL related or something else to do with java (I have already tried with jdk1.8). The ambari server node that succeeds generates the following log lines: INFO 2016-01-19 19:19:36,639 NetUtil.py:60 - Connecting to https://ip-172-31-31-118.ec2.internal:8440/connection_info
INFO 2016-01-19 19:19:36,754 security.py:99 - SSL Connect being called.. connecting to the server
INFO 2016-01-19 19:19:36,917 security.py:60 - SSL connection established. Two-way SSL authentication is turned off on the server.
Please find below the whole error log from nodes that failed:
==========================
Running setup agent script...
==========================
Command start time 2016-01-19 19:19:31
('INFO 2016-01-19 19:19:54,528 main.py:71 - loglevel=logging.INFO
INFO 2016-01-19 19:19:54,528 main.py:71 - loglevel=logging.INFO
INFO 2016-01-19 19:19:54,530 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-01-19 19:19:54,531 DataCleaner.py:120 - Data cleanup started
INFO 2016-01-19 19:19:54,531 DataCleaner.py:122 - Data cleanup finished
INFO 2016-01-19 19:19:54,538 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-01-19 19:19:54,540 main.py:289 - Connecting to Ambari server at https://ip-172-31-31-118.ec2.internal:8440 (172.31.31.118)
INFO 2016-01-19 19:19:54,540 NetUtil.py:60 - Connecting to https://ip-172-31-31-118.ec2.internal:8440/ca
', None)
('INFO 2016-01-19 19:19:54,528 main.py:71 - loglevel=logging.INFO
INFO 2016-01-19 19:19:54,528 main.py:71 - loglevel=logging.INFO
INFO 2016-01-19 19:19:54,530 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-01-19 19:19:54,531 DataCleaner.py:120 - Data cleanup started
INFO 2016-01-19 19:19:54,531 DataCleaner.py:122 - Data cleanup finished
INFO 2016-01-19 19:19:54,538 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-01-19 19:19:54,540 main.py:289 - Connecting to Ambari server at https://ip-172-31-31-118.ec2.internal:8440 (172.31.31.118)
INFO 2016-01-19 19:19:54,540 NetUtil.py:60 - Connecting to https://ip-172-31-31-118.ec2.internal:8440/ca
', None)
Connection to ip-172-31-20-141.ec2.internal closed.
SSH command execution finished
host=ip-172-31-20-141.ec2.internal, exitcode=0
Command end time 2016-01-19 19:19:56
Registering with the server...
Registration with the server failed.
... View more
Labels:
- Labels:
-
Apache Ambari