Support Questions

Find answers, ask questions, and share your expertise

why fail to regist ambari2.2.0 agent on centos 6,because of timeout to down repomd.xml,but wget *.repmd.xml is OK

avatar
New Contributor
==========================
Running setup agent script...
==========================

Command start time 2016-01-03 15:48:09
http://public-repo-1.hortonworks.com/ambari/cento... [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/cento... (28, 'connect() timed out!')
Trying other mirror.
http://public-repo-1.hortonworks.com/ambari/cento... [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/cento... (28, 'connect() timed out!')
Trying other mirror.
http://public-repo-1.hortonworks.com/ambari/cento... [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/cento... (28, 'connect() timed out!')
Trying other mirror.
Error Downloading Packages:
  ambari-agent-2.2.0.0-1310.x86_64: failure: ambari/ambari-agent-2.2.0.0-1310.x86_64.rpm from Updates-ambari-2.2.0.0: [Errno 256] No more mirrors to try.http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.0.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/cento... (28, 'connect() timed out!')
Trying other mirror.
http://public-repo-1.hortonworks.com/ambari/cento... [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/cento... (28, 'connect() timed out!')
Trying other mirror.
Error Downloading Packages:
  ambari-agent-2.2.0.0-1310.x86_64: failure: ambari/ambari-agent-2.2.0.0-1310.x86_64.rpm from Updates-ambari-2.2.0.0: [Errno 256] No more mirrors to try.http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.0.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/cento... (28, 'connect() timed out!')
Trying other mirror.
http://public-repo-1.hortonworks.com/ambari/cento... [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/cento... (28, 'connect() timed out!')
Trying other mirror.
Error Downloading Packages:
  ambari-agent-2.2.0.0-1310.x86_64: failure: ambari/ambari-agent-2.2.0.0-1310.x86_64.rpm from Updates-ambari-2.2.0.0: [Errno 256] No more mirrors to try.but, manual wget is OK:wget http://public-repo-1.hortonworks.com/ambari/cento...
--2016-01-03 15:57:28--  http://public-repo-1.hortonworks.com/ambari/cento...
正在连接 *.*.*:9999... 已连接。
已发出 Proxy 请求,正在等待回应... 200 OK
长度:2985 (2.9K) [text/xml]
正在保存至: “repomd.xml”100%[===================================================================================================================================================>] 2,985  --.-K/s  in 0s  2016-01-03 15:57:28 (95.3 MB/s) - 已保存 “repomd.xml” [2985/2985])
1 ACCEPTED SOLUTION

avatar
New Contributor

finally,i fix the problem caused by configuration about http_proxy ,follow next:

  1. On the Ambari Server, edit /var/lib/ambari-server/ambari-env.sh.
  2. Add "-Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=1234" to the AMBARI_JVM_ARGS.
  3. Restart the Ambari Server to pick up this change.

View solution in original post

3 REPLIES 3

avatar

It is timing out...maybe try it again after some time. I was able to download the rpm from my cluster

# wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.0.0/ambari/ambari-agent-2.2.0.0-...
--2016-01-03 00:39:20--  http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.0.0/ambari/ambari-agent-2.2.0.0-...
Resolving public-repo-1.hortonworks.com... 54.230.141.247, 54.230.141.15, 54.230.141.28, ...
Connecting to public-repo-1.hortonworks.com|54.230.141.247|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20125140 (19M) [application/x-rpm]
Saving to: “ambari-agent-2.2.0.0-1310.x86_64.rpm”


100%[===============================================================================================================================================================>] 20,125,140  5.16M/s   in 4.1s


2016-01-03 00:39:24 (4.72 MB/s) - “ambari-agent-2.2.0.0-1310.x86_64.rpm” saved [20125140/20125140]

avatar
New Contributor

wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.0.0/ambari/ambari-agent-2.2.0.0-...

I also can down it well with wget .....

can i install manual with "ambari-agent-2.2.0.0-1310.x86_64.rpm" ? 2.2.0 is statable?

and more:

all base url can't validate ,like http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.0.0

so i check "Skip Repository Base URL validation (Advanced)"

avatar
New Contributor

finally,i fix the problem caused by configuration about http_proxy ,follow next:

  1. On the Ambari Server, edit /var/lib/ambari-server/ambari-env.sh.
  2. Add "-Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=1234" to the AMBARI_JVM_ARGS.
  3. Restart the Ambari Server to pick up this change.