Created on 06-21-2018 03:17 PM - edited 08-17-2019 05:32 PM
I'm getting an error while setting up HDP-Services.
I'm doing it without Internet and I have setup a local repository on the same machine itself.
I used a tar file and saved it on the same server itself and accessed it using file:///
Somehow it is still trying to install from internet.
Please Help
Created 06-21-2018 03:27 PM
Please try this:
1. Navigate inside the "/etc/yum.repos.d/" directory in terminal.
# cd /etc/yum.repos.d/
2. Search for files which has "" listed inside it.
# gret 'mirrorlist.centos.org' /etc/yum.repos.d/*
.
3. You might find some files like which has the mentioned URL and then add "enabled=0" to disable that repo. Something like following or comment out the mirror list.
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra baseurl=http://xyz.com/centos/$releasever/os/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
In order to know more about how to disable a yum repo please refer to:
b. https://www.if-not-true-then-false.com/2010/yum-remove-repo-repository-yum-disable-repo-repository/
4. Perform yum clean
# yum clean all
.
then try again.
Created 06-22-2018 01:23 PM
Thanks @Jay Kumar SenSharma!
This worked.
So I am setting up a cluster without the internet. During the Services Install and start step, the installer is still trying to access the internet. It tries to 'yum install' a package as it is not there. For example, python-devel,gcc,mysql-server etc were some packages that it tried to install and failed because internet is not available.
My HDP repositories have all been setup on local itself.
Is this a problem with my CentOS local repository. If yes, how do I maintain an updated repository.
Is there access to a list of packages that the HDP-Services would be installing. This would help account for the packages that are required.