Support Questions

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

Unable to install hadoop due to missing dependency

avatar
New Contributor

I followed the manual rpm installation guide on rhel 7.3, i.e. added the repository and tried to install hadoop. However I get the following error message:

[root@hostname yum.repos.d]# yum install hadoop

Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

...

(9/15): HDP-UTILS-1.1.0.21/primary_db | 38 kB 00:00:00

(10/15): HDP-2.6.0.3/primary_db | 77 kB 00:00:00

...

Resolving Dependencies

--> Running transaction check

---> Package hadoop.noarch 0:2.7.3.2.6.0.3-8.el6 will be installed

--> Processing Dependency: hadoop_2_6_0_3_8 for package: hadoop-2.7.3.2.6.0.3-8.el6.noarch

--> Finished Dependency Resolution

Error: Package: hadoop-2.7.3.2.6.0.3-8.el6.noarch (HDP-2.6.0.3)

Requires: hadoop_2_6_0_3_8

You could try using --skip-broken to work around the problem

Any ideas?

1 ACCEPTED SOLUTION

avatar
New Contributor

I forgot to mention that I'm running on POWER. I changed the repo urls to centos7-ppc and now everything seems to work.

Thanks for your help!

View solution in original post

3 REPLIES 3

avatar
Master Mentor

@Jonas Pfefferle

You have mentioned that you are using "rhel 7.3" But your packages that are going to be installed are showing that it is using RHEL6 packages "hadoop.noarch 0:2.7.3.2.6.0.3-8.el6"

So please check your "/etc/yum.repos.d/*.repo" files to find out if you have copied an incorrect repo file there.

Remove any file there which is pointing to either centos6 or rhel6 and then do a yum clean all and then try installing the package again.

You can get the "hdp.repo" file from this link according to your OS version: https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-installation/content/hdp_26_repos...

.

Example:

# wget -nv http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.1.0/hdp.repo  -O /etc/yum.repos.d/hdp.repo

# yum clean all

.

Then try to install the desired packages.

avatar
New Contributor

Good catch! However the repo file seems to be correct:

[root@hostname]# cat /etc/yum.repos.d/hdp.repo

#VERSION_NUMBER=2.6.0.3-8

[HDP-2.6.0.3]

name=HDP Version - HDP-2.6.0.3

baseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3

gpgcheck=1

gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3/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://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7

gpgcheck=1

gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

enabled=1

priority=1

I did a yum clean all again but still get the same error.

avatar
New Contributor

I forgot to mention that I'm running on POWER. I changed the repo urls to centos7-ppc and now everything seems to work.

Thanks for your help!