No package oracle-j2sdk1.7 available?

人走茶凉 提交于 2019-12-09 16:45:14

问题


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:


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.




回答2:


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



回答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/



来源:https://stackoverflow.com/questions/22090992/no-package-oracle-j2sdk1-7-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!