在CentOS 7中安装Cloudera Manager时没有可用的软件包oracle-j2sdk1.7

时间:2018-10-30 06:26:10

标签: hadoop centos cloudera cloudera-cdh cloudera-manager

我正在按照以下命令进行cloudera安装

 ./cloudera-manager-installer.bin

接受oracle许可证后,出现以下错误

  

oracle-j2sdk1.7安装失败。   有关详细信息,请参见/var/log/cloudera-manager-installer/1.install-oracle-j2sdk1.7.log。   单击“确定”还原此安装。

当我使用1.install-oracle-j2sdk1.7.log进入文件夹cd /var/log/cloudera-manager-installer/登录文件vi 1.install-oracle-j2sdk1.7.log并查看该文件时,看到以下错误

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.cogentco.com
 * extras: mirrors.advancedhosters.com
 * updates: mirror.umd.edu
No package oracle-j2sdk1.7 available.
Error: Nothing to do

我尝试了所有提到的here解决方案,当我重新安装它时,仍然遇到相同的错误。当我尝试

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

我收到此消息:

rm: cannot remove ‘/var/cache/yum/x86_64/7/cloudera-cdh5/gen/primary.xml’: Permission denied
rm: cannot remove ‘/var/cache/yum/x86_64/7/cloudera-cdh5/gen/primary.xml.sqlite’: Permission denied
rm: cannot remove ‘/var/cache/yum/x86_64/7/cloudera-cdh5/packages’: Permission denied
rm: cannot remove ‘/var/cache/yum/x86_64/7/cloudera-cdh5/cachecookie’: Permission denied
rm: cannot remove ‘/var/cache/yum/x86_64/7/cloudera-cdh5/primary.xml.gz’: Permission denied
rm: cannot remove ‘/var/cache/yum/x86_64/7/cloudera-cdh5/gen/primary.xml’: Permission denied
rm: cannot remove ‘/var/cache/yum/x86_64/7/cloudera-cdh5/gen/primary.xml.sqlite’: Permission denied
rm: cannot remove ‘/var/cache/yum/x86_64/7/cloudera-cdh5/packages’: Permission denied

有人可以提供帮助或提出建议吗?

1 个答案:

答案 0 :(得分:1)

为了摆脱删除时拒绝此权限的问题,您需要

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