For installation of Hadoop on Ubuntu 16, I am unable to download the Ambari repository file using the command shown on page 30 of the installation guide: https://docs.hortonworks.com/HDPDocuments/Ambari-188.8.131.52/bk_ambari-installation/bk_ambari-installati...
$ sudo wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates//ambari.list
--2018-08-08 21:38:36-- http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates//ambari.list
Resolving public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)... 184.108.40.206, 220.127.116.11, 18.104.22.168, ...
Connecting to public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)|22.214.171.124|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-08-08 21:38:36 ERROR 404: Not Found.
The response is a 404 error, indicating the file does not exist on the server. Could you confirm this for me?
The URL which you are using has missing ambari version hence it is an invalid URL. In your URL the ambari version is missing between the following strings in the URL updates/...../ambari.list
Please try the below URL:
wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/126.96.36.199/ambari.list -O /etc/apt/sources.list.d/ambari.list