Support Questions

Find answers, ask questions, and share your expertise

Ambari - Cluster Creation fails with http proxy

New Contributor

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:
1 ACCEPTED SOLUTION

Hi @Arulanand Dayalan

Can you try setting proxy for yum.

Refer this link.

View solution in original post

2 REPLIES 2

Hi @Arulanand Dayalan

Can you try setting proxy for yum.

Refer this link.

New Contributor

Thanks rpathak. It workd out.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.