我正在嘗試安裝 Hadoop 2.7.3。在 Elementary OS(我相信是 Ubuntu)上按照建築.txtHadoop 檔案附帶的。
該文件表示我需要透過以下步驟安裝 Oracle JDK 1.7:
$ sudo apt-get purge openjdk*
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer
一切正常,直到最後一步,它退出並顯示一條錯誤訊息,我不知道該怎麼做(抱歉,如果貼上太長;我很樂意編輯它,但不知道相關內容是什麼):
--2017-05-26 10:58:06-- http://download.oracle.com/otn-pub/java/jdk/7u80-
b15/jdk-7u80-linux-x64.tar.gz Resolving download.oracle.com
(download.oracle.com)... 199.117.103.169, 199.117.103.171
Connecting to download.oracle.com
(download.oracle.com)|199.117.103.169|:80... connected. HTTP request
sent, awaiting response... 302 Moved Temporarily Location:
https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz
[...]
[following]
--2017-05-26 10:58:06-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1495814405_54d4699c133b9ceee2666c152616ece6
Connecting to download.oracle.com
(download.oracle.com)|199.117.103.169|:80... connected.
HTTP request sent, awaiting response... 404 Not Found 2017-05-26
10:58:07 ERROR 404: Not Found.
download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing package oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit
status 1 dpkg: dependency problems prevent configuration of
oracle-jdk7-installer: oracle-jdk7-installer depends on
oracle-java7-installer; however: Package oracle-java7-installer is
not configured yet.
我估計
- 404 是主要問題 - 它正在尋找文件但找不到它們
所以我的問題是
這是真的嗎?這裡的障礙是什麼?
我該如何解決它,或者我必須走另一條路?
(我正在關注白Hadoop - 權威指南對於整體方法。 )