Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Getting oracle-j2sdk1.7 installation failed while installing CDH5

avatar
Rising Star

Hello All , 

I get this error 
oracle-j2sdk1.7 installation failed. See /var/log/cloudera-manager-installer/2.install-oracle-j2sdk1.7.log for details. Click OK to revert this installation.
When i try to install CDH5 .I checked the log file it was mentioned as 
Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile Error: Cannot find a valid baseurl for repo: base Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"

 

OS : Centos 6.4 


Please provide me a solution to intall the same 

 

Thanks
Bala
1 ACCEPTED SOLUTION

avatar
Rising Star
Hello All ,
Thanks for your response .
I got it solved . My ultimate end was to start the cloudera manager . It worked .
I just disabled the iptables by
[root@INCHCMPCCHE01 cloudera-scm-server]# /etc/init.d/iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@INCHCMPCCHE01 cloudera-scm-server]# /etc/init.d/iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: nat mangle filte[ OK ]
iptables: Unloading modules: [ OK ]

Thank you 🙂
Thanks
Bala

View solution in original post

7 REPLIES 7

avatar
Expert Contributor
Sounds like a problem with the mirror with the centos mirror. Are you able
to reach the URL directly from the machine (say via ping/wget/etc.)? If so,
try again perhaps?

avatar
Rising Star

Yes I tried to access the link http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os in firefox browser . It worked . But yet i get this error

Thanks
Bala

avatar
Master Guru

The error is from yum, so I suggest looking for answers there.  A web search turned up various hits for yum and IPv6.  This one seemed to have the most suggestions:

 

http://vaishnaav.com/2013/12/17/centos-yum-error-14-pcyurl-error-7-failed-to-connect-to-2a02249813d5...

 

This backs up the suggestion that it may be a problem with the firewall:

 

https://www.centos.org/forums/viewtopic.php?t=6478

 

Once the yum/network issue is resolved, the installation should proceed.

 

Regards,

 

Ben

avatar
Rising Star
I tried ..What ever given in the link . still i get the same error ...


[root@INCHCMPCCHE01 user1]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:67
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:67
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 192.168.122.0/24 state RELATED,ESTABLISHED
ACCEPT all -- 192.168.122.0/24 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@INCHCMPCCHE01 user1]#
Thanks
Bala

avatar
Master Guru

Maybe shut off iptables ( service iptables stop ) and then run the install.  If the network/yum can't get ironed out, then you may need to use Path B or C install rather than the "bin" install.

 

See http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installat...

avatar
Rising Star
Hello All ,
Thanks for your response .
I got it solved . My ultimate end was to start the cloudera manager . It worked .
I just disabled the iptables by
[root@INCHCMPCCHE01 cloudera-scm-server]# /etc/init.d/iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@INCHCMPCCHE01 cloudera-scm-server]# /etc/init.d/iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: nat mangle filte[ OK ]
iptables: Unloading modules: [ OK ]

Thank you 🙂
Thanks
Bala

avatar
New Contributor

Hi ,

got same error while try to add hosts through cloudera manager.

 

Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"

 

-In host machine

* CentOS 6.6 (Final)

* firewall turn off

* yum update working fine

 

Here we are using proxy ...  proxy settings configured with /etc/yum.conf 

 

Regards

Robin David