Support Questions

Find answers, ask questions, and share your expertise

Issue with local repository with no internet access

New Contributor

I am trying to create a local repository with No internet access for the below version of Amabari and HDP

wget -nv http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.5.0.0/HDP-2.5.0.0-centos7-rpm.tar.gz

wget -nv http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7/HDP-UTILS-1.1.0.21-centos7.tar...

wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.1.0/ambari-2.4.1.0-centos7.tar.g...

I did this

tar -zvxf ambari-2.4.1.0-centos7.tar.gz -C /var/www/html/

tar -zvxf HDP-UTILS-1.1.0.21-centos7.tar.gz -C /var/www/html/

tar -zvxf HDP-2.5.0.0-centos7-rpm.tar.gz -C /var/www/html/


My vi /etc/yum.repos.d/hdp.repo shows like below

#VERSION_NUMBER=2.5.0.0-1245 [HDP-2.5.0.0]

name=HDP Version - HDP-2.5.0.0

baseurl=http://[Masternode ip]/HDP/centos7/

gpgcheck=0

gpgkey=http://[Masternode ip]/HDP/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

enabled=1

priority=1

[HDP-UTILS-1.1.0.21]

name=HDP-UTILS

Version - HDP-UTILS-1.1.0.21

baseurl=http://[Masternode ip]/HDP-UTILS-1.1.0.21/repos/centos7/

gpgcheck=0

gpgkey=http://[Masternode ip]/HDP-UTILS-1.1.0.21/repos/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

enabled=1

priority=1

I am not able to resolve the baseurl path for HDP UTILS in the repo, baseurl=http://[Masternode ip]/HDP-UTILS-1.1.0.21/repos/centos7/ , "HDP-UTILS-1.1.0.21/repos/centos7" location not exists in my /var/www/html folder!! can anyone help me to resolve this?

3 REPLIES 3

Super Mentor

@Goldy Manikoth

After extracting the tar.gz file please verify the PATH that it extracted:

tar -zvxf HDP-UTILS-1.1.0.21-centos7.tar.gz -C /var/www/html/  
tar -zvxf HDP-2.5.0.0-centos7-rpm.tar.gz -C /var/www/html/ 

.

The baseurl should be pointing to some directory like following:

baseurl=http://[Masternode ip]/HDP/centos7/2.x/updates/2.5.0.0/

.

Similarly for the "HDP-UTILS" repo as well:

baseurl=http://[Masternode ip]/HDP-UTILS-1.1.0.21/repos/centos7

Also please check if your "WebServer" (http://[Masternode ip]) is UP and running fine without any error.

Please check If using Browser you can navigate the the mentioned baseurl?

Also please refer to the following Youtube video which looks good : https://www.youtube.com/watch?v=rPi0a5n0Mxc

.

New Contributor

My issues is with

Similarly for the "HDP-UTILS" repo as well:

  1. baseurl=http://[Masternode ip]/HDP-UTILS-1.1.0.21/repos/centos7

After extracting the I am not able to find any folder named HDP-UTILS-1.1.0.21 under /var/www/html/

tar -zvxf HDP-UTILS-1.1.0.21-centos7.tar.gz -C /var/www/html/

my http server is up and running, no issue with that.

New Contributor

My issue is with HDP-UTIL extraction where I am not able to find any folder named HDP-UTILS-1.1.0.21 under var/www/html where I extracted the tar file. hence the below base url never resolved. My Http service is running and i am able to get a test page.

tar -zvxf HDP-UTILS-1.1.0.21-centos7.tar.gz -C /var/www/html/

baseurl=http://[Masternode ip]/HDP-UTILS-1.1.0.21/repos/centos7