Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Is Ambari public server down?

avatar
Explorer

I am trying to install Ambari with pubic repositories. At first step, I got:

root@msl-dpe-perf77:/usr/local/Ambari# wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates//ambari.list
--2018-07-28 09:57:26--  http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates//ambari.list
Resolving public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)... 52.84.235.43, 52.84.235.34, 52.84.235.239, ...
Connecting to public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)|52.84.235.43|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-07-28 09:57:26 ERROR 404: Not Found.

I had been using the same process earlier of the week and it works fine. I had tried machine without firewall.

1 ACCEPTED SOLUTION

avatar
Explorer

There are 2 problems in the Ambari installation document for Ubuntu 16 at https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation/content/download_the...

wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates//ambari.list
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
apt-get update

As both Geoffrey and Jay had pointed out, the first sample command missing version number and document did not instruct to insert that for the execution

For 2nd command to retrieve Linux key, the given format will result in timeout due to the syntax used.

root@msl-dpe-perf77:/usr/local/Ambari# apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
Executing: /tmp/tmp.1enMMyqYWS/gpg.1.sh --recv-keys
--keyserver
keyserver.ubuntu.com
B9733A7A07513CAD
gpg: requesting key 07513CAD from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
root@msl-dpe-perf77:/usr/local/Ambari# 

Following syntax will resolve this error

root@msl-dpe-perf77:/usr/local/Ambari# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv B9733A7A07513CAD
Executing: /tmp/tmp.PQTyyilAKr/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv
B9733A7A07513CAD
gpg: requesting key 07513CAD from hkp server keyserver.ubuntu.com
gpg: key 07513CAD: "Jenkins (HDP Builds) <jenkin@hortonworks.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
root@msl-dpe-perf77:/usr/local/Ambari#

View solution in original post

3 REPLIES 3

avatar
Master Mentor

@Harry Li

I am almost sure the repos are HA configure I just noticed you have double // after updates in your URL is that correct?a

avatar
Master Mentor

@Harry Li

Your repo URL is missing the ambari version which should be there between "updates" and "ambari.list" strings ... we see two slashes there. Which repo URL wrong

# wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates//ambari.list



So please check your URL. For Example if you want to download Ambari 2.6.2.2 repo then the URL will be line download

# wget -O /etc/apt/sources.list.d/ambari.list -nv http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/2.6.2.2/ambari.list

.

Notice:

/updates/2.6.2.2/ambari.list

avatar
Explorer

There are 2 problems in the Ambari installation document for Ubuntu 16 at https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation/content/download_the...

wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates//ambari.list
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
apt-get update

As both Geoffrey and Jay had pointed out, the first sample command missing version number and document did not instruct to insert that for the execution

For 2nd command to retrieve Linux key, the given format will result in timeout due to the syntax used.

root@msl-dpe-perf77:/usr/local/Ambari# apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
Executing: /tmp/tmp.1enMMyqYWS/gpg.1.sh --recv-keys
--keyserver
keyserver.ubuntu.com
B9733A7A07513CAD
gpg: requesting key 07513CAD from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
root@msl-dpe-perf77:/usr/local/Ambari# 

Following syntax will resolve this error

root@msl-dpe-perf77:/usr/local/Ambari# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv B9733A7A07513CAD
Executing: /tmp/tmp.PQTyyilAKr/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv
B9733A7A07513CAD
gpg: requesting key 07513CAD from hkp server keyserver.ubuntu.com
gpg: key 07513CAD: "Jenkins (HDP Builds) <jenkin@hortonworks.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
root@msl-dpe-perf77:/usr/local/Ambari#