Tuesday, August 12, 2014

oracle-jdk-7 403 forbidden or The request or reply is too large


While trying to install cloudera manager I keep getting 403 Forbidden when it tries to install oracle-jdk -7.
When  I tried downloading the file manually I kept getting "The request or reply is too large."

1. One potential solution:
http://askubuntu.com/questions/453367/download-failed-oracle-jdk-7-is-not-installed

after getting error 403, use ls:
ls /var/cache/oracle-jdk7-installer/

download the JDK tar.gz from someplace else on web (google archive filename) and compare its md5 checksum against the one given on oracle's website.

sudo cp ~/Downloads/jdk-7u55-linux-x64.tar.gz /var/cache/oracle-jdk7-installer/

sudo apt-get install oracle-java7-installer

2. Found out why it was happening:
The local network went through squid proxy that had a 100MB limit. The JDK archive is 130+ MB
Moved to another network and it started installing :P

No comments:

Post a Comment