No package oracle-j2sdk1.7 available?

sandip divekar picture sandip divekar · Feb 28, 2014 · Viewed 6.9k times · Source

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 ?

Answer

xhancar picture xhancar · Oct 9, 2014

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