No package oracle-j2sdk1.7 available?

2020-07-09 06:42发布

问题:

I am running following command for cloudera installation

 ./cloudera-manager-installer.bin

After accepting oracle license i getting error installation failed for logs go to 2.install-oracle-j2sdk1.7.log

following is contents of the log file

Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.syringanetworks.net
 * extras: mirror.sanctuaryhost.com
 * updates: centos.corenetworks.net
Setting up Install Process
No package oracle-j2sdk1.7 available.
Error: Nothing to do

anyone has this type of error ? give suggestions ?

回答1:

On CentOS 6.4 I needed

yum clean all
rm -rf /var/cache/yum/x86_64/6/cloudera-manager

It's the same as user2130332 wrote, but the path is more complicated. So the universal solution would be:

yum clean all
find /var/cache/yum -type d | grep cloudera- | xargs rm -rf


回答2:

Assuming this is on a RHEL type system, try this:

yum clean all
rm -rf /var/cache/yum/cloudera-*

I had the same problem and this solved it.



回答3:

If it doesn't work for some reasons you can always download proper rpm from cloudera archive, install it with rpm -ivh and push the installation further

http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/RPMS/x86_64/