Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

problem installing HDP 2.4 with no internet

problem installing HDP 2.4 with no internet

Master Collaborator

I m trying to install HDP 2.4 from local repository files but its not accepting my URLs. I have unzipped the repository files in /var/www/HDP as per document . The urls i am using are

http://localhost:8080/hdp/HDP/centos6/2.x/updates/2.4.2.0 http://localhost:8080/hdp/HDP-UTILS-1.1.0.20/repos/centos6

also tried

http://localhost/hdp/HDP/centos6/2.x/updates/2.4.2.0 http://localhost/hdp/HDP-UTILS-1.1.0.20/repos/centos6

and

http://localhost/HDP/centos6/2.x/updates/2.4.2.0 http://localhost/HDP-UTILS-1.1.0.20/repos/centos6

no luck .

28 REPLIES 28

Re: problem installing HDP 2.4 with no internet

Master Collaborator

adding screen shot capture.jpg

Re: problem installing HDP 2.4 with no internet

Master Collaborator

sorry this is not an answer .. its a comment

Re: problem installing HDP 2.4 with no internet

@Sami Ahmad

This should work

http://localhost/HDP/centos6/2.x/updates/2.4.2.0/

http://localhost/HDP-UTILS-1.1.0.20/repos/centos6/

Before that can you please check whether httpd service is installed and started?

If it is installed you can see all your repo files by clicking on link or just do

curl -v http://localhost/HDP/centos6/2.x/updates/2.3.2.0/ and you see the output

Install httpd server:

yum install httpd

Start:

/bin/systemctl start httpd.service

Status:

/bin/systemctl status httpd.service

Link for more info

Re: problem installing HDP 2.4 with no internet

Master Collaborator

all the urls work in browser, but when I give your command its complaining about proxy server. I installed yum using proxy server and there is a http_proxy variable defined on the OS level .

[root@hadoop1 yum.repos.d]# curl -v http://localhost/HDP/centos6/2.x/updates/2.3.2.0/
* About to connect() to proxy dotatofwproxy.tolls.dot.state.fl.us port 8080 (#0)
*   Trying 10.200.30.18... connected
* Connected to dotatofwproxy.tolls.dot.state.fl.us (10.200.30.18) port 8080 (#0)
> GET http://localhost/HDP/centos6/2.x/updates/2.3.2.0/ HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: localhost
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* Empty reply from server
* Connection #0 to host dotatofwproxy.tolls.dot.state.fl.us left intact
curl: (52) Empty reply from server
* Closing connection #0
[root@hadoop1 yum.repos.d]# pwd
/etc/yum.repos.d
[root@hadoop1 yum.repos.d]#

Re: problem installing HDP 2.4 with no internet

Master Collaborator

also the errors I am seeing on all nodes except master node is

resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install hdp-select' returned 1. Error: Cannot retrieve repository metadata (repomd.xml) for repository: HDP-2.4. Please verify its path and try again





Re: problem installing HDP 2.4 with no internet

Master Collaborator

the directory is /var/www/html actually

/var/www/html [root@hadoop1 html]# ls HDP HDP-UTILS-1.1.0.20 [root@hadoop1 html]#

Re: problem installing HDP 2.4 with no internet

Replace "localhost" with the host name or its FQDN. Then make sure your Apache server works: create a test file: echo "Hello world" > /var/www/html/hello.html and try to access it as http://<hostname>/hello.html from other nodes. Once that works the local repo URLs will be http://<hostname>/HDP/. and http://<hostname>/HDP-UTILS-.

Re: problem installing HDP 2.4 with no internet

Master Collaborator

yes I did .. but now its failing on hadoop1 (master node) also . with same error :

Error: Cannot retrieve repository metadata (repomd.xml) for repository: HDP-2.4. Please verify its path and try again [root@hadoop1 ~]#

Re: problem installing HDP 2.4 with no internet

Master Collaborator

yes not only apache wor\ks but also both the URLs translates correctly

http://hadoop1/HDP/HDP-UTILS-1.1.0.20/repos/centos6/

http://hadoop1/HDP/HDP/centos6/2.x/updates/2.4.2.0/

Don't have an account?
Coming from Hortonworks? Activate your account here