- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Ambari - Cluster Creation fails with http proxy
- Labels:
-
Apache Ambari
Created on ‎05-30-2016 06:12 AM - edited ‎09-16-2022 03:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had successfully installed Ambari server and now i am trying to create an cluster. From the server i will be able to connect to internet only through proxy. When i created the cluster it was throwing the error in 'Advanced Repositary Options'. To fix this i added proxy host and port as JVM variable in /var/lib/ambari-server/ambari-env.sh script and restarted the server and was able to proceed to next section. I entered hostname and private key and clicked 'Register and Confirm'. Registration fails for all hosts failed with the below error. I think the proxy is not being used. Can you please let me know how to resolve this issue or setting up local repository is the only way. Thanks in advance.
INFO:root:BootStrapping hosts ['blb44cehhdp002.cehdev.com', 'blb44cehhdp003.cehdev.com', 'blb44cehhdp004.cehdev.com', 'blb44cehhdp005.cehdev.com', 'blb44cehhdp006.cehdev.com'] using /usr/lib/python2.6/site-packages/ambari_server cluster primary OS: redhat6 with user 'root' sshKey File /var/run/ambari-server/bootstrap/1/sshKey password File null using tmp dir /var/run/ambari-server/bootstrap/1 ambari: blb44cehhdp001.cehdev.com; server_port: 8080; ambari version: 2.2.2.0; user_run_as: root INFO:root:Executing parallel bootstrap ERROR:root:ERROR: Bootstrap of host blb44cehhdp003.cehdev.com fails because previous action finished with non-zero exit code (1) ERROR MESSAGE: tcgetattr: Invalid argument Connection to blb44cehhdp003.cehdev.com closed. STDOUT: http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/repodata/repomd.xml: (28, 'connect() timed out!') Trying other mirror. http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/repodata/repomd.xml: (28, 'connect() timed out!') Trying other mirror. http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/ambari/ambari-agent-2.2.2.0-... [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/ambari/ambari-agent-2.2.2.0-... (28, 'connect() timed out!') Trying other mirror. Error Downloading Packages: ambari-agent-2.2.2.0-460.x86_64: failure: ambari/ambari-agent-2.2.2.0-460.x86_64.rpm from Updates-ambari-2.2.2.0: [Errno 256] No more mirrors to try. http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/repodata/repomd.xml: (28, 'connect() timed out!') Trying other mirror. http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/ambari/ambari-agent-2.2.2.0-... [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/ambari/ambari-agent-2.2.2.0-... (28, 'connect() timed out!') Trying other mirror. Error Downloading Packages:
Created ‎05-30-2016 06:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try setting proxy for yum.
Refer this link.
Created ‎05-30-2016 06:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎05-30-2016 10:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks rpathak. It workd out.
