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.

HDP 2.3 Sandbox adding nodes fails

Solved Go to solution

HDP 2.3 Sandbox adding nodes fails

New Contributor

I'm trying to add 2 nodes using the hdp sandbox for the hdpca class. Both nodes fail during install and come back with the same error. I can ssh into each node and ping node1. Here's where the errors start in the install log:

==========================
Running setup agent script...
========================== 
Command start time 2016-03-03 13:34:37 
http://node1/hdp/Updates-ambari-2.1.1/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror. 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Updates-ambari-1.7.0. Please verify its path and try again 
http://node1/hdp/Updates-ambari-2.1.1/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror. 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Updates-ambari-1.7.0. Please verify its path and try again
('', None)
Connection to node2 closed.
SSH command execution finished
host=node2, exitcode=1
Command end time 2016-03-03 13:34:38 
ERROR: Bootstrap of host node2 fails because previous action finished with non-zero exit code (1) 
ERROR MESSAGE: tcgetattr: Inappropriate ioctl for device 
Connection to node2 closed. 
STDOUT: http://node1/hdp/Updates-ambari-2.1.1/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror. 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Updates-ambari-1.7.0. Please verify its path and try again 
http://node1/hdp/Updates-ambari-2.1.1/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror. 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Updates-ambari-1.7.0. Please verify its path and try again
('', None) 
Connection to node2 closed.
1 ACCEPTED SOLUTION

Accepted Solutions

Re: HDP 2.3 Sandbox adding nodes fails

New Contributor

Thanks for all the replies! All i needed to do was install the httpd service and start it up and it worked like a charm.

Thanks all!

7 REPLIES 7

Re: HDP 2.3 Sandbox adding nodes fails

Mentor

Do you have connectivity to outside? Please check your /etc/yum.repos.d directory you may have multipe repo files and also add 2.3.2 repo for sandbox 2.3.2 or 2.4 repo for newest sandbox.

Re: HDP 2.3 Sandbox adding nodes fails

Adding to Artem's comment, please make sure that node1 and node2 can ping one another. This looks like either node2 does not know how to resolve node1's IP address or else you do not have network access between the nodes. You should be able to place entries in /etc/hosts on both nodes to correct this and also ensure that iptables is turned off on all nodes.

Re: HDP 2.3 Sandbox adding nodes fails

@Kyle Prins

See this thread https://community.hortonworks.com/questions/15506/error-cannot-retrieve-repository-metadata-repomdxm...

The above thread may not completely apply to yours as you are working on local repo.

Please check the iptables and check if you can run wget on the file to check its existence.

Re: HDP 2.3 Sandbox adding nodes fails

@Kyle Prins

The sandbox gives you an easy way to have a working Hadoop installation in a VM. If you need a multi nodes cluster my advice is to install an HDP cluster by yourself. This way, you will understand what have been installed and how it was configured. Use Ambari for the installation, it's straightforward and quick : http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_Installing_HDP_AMB/content/index.html

If you want to have all nodes as VMs in your local machine, you can use Vagrant too. Look at these links to have an idea on how to do it http://uprush.github.io/hdp/2014/12/29/hdp-cluster-on-your-laptop/ and https://cwiki.apache.org/confluence/display/AMBARI/Quick+Start+Guide

Re: HDP 2.3 Sandbox adding nodes fails

New Contributor

Thanks for all the replies! All i needed to do was install the httpd service and start it up and it worked like a charm.

Thanks all!

Re: HDP 2.3 Sandbox adding nodes fails

New Contributor

Nice! it works!

httpd service is already installed. We only need to run "httpd" command in node1.

Highlighted

Re: HDP 2.3 Sandbox adding nodes fails

New Contributor

Even I've got the same issue. I'm practicing the hortonworks partner courses HDP administration lab. I'm trying to add node2 and node3 using "Add hosts" under Hosts tab in ambari. In the "Confirm Hosts" Step it's failing. Can someone help.

Here is the link for my question:

https://community.hortonworks.com/questions/148076/failing-to-add-hosts-using-ambari-ui.html

Don't have an account?
Coming from Hortonworks? Activate your account here