No package oracle-j2sdk1.7 available?

2020-07-09 06:34发布

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 ?

3条回答
一纸荒年 Trace。
2楼-- · 2020-07-09 06:48

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
查看更多
Melony?
3楼-- · 2020-07-09 07:05

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/

查看更多
干净又极端
4楼-- · 2020-07-09 07:06

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.

查看更多
登录 后发表回答