CDH5.8.2安裝之Hash verification failed

hackeruncle發表於2016-11-17

.問題 Hash verification failed

cdh5.8.2 web介面叢集安裝過程中,Parcels hash校驗失敗。

CDH5.8.2安裝之Hash verification failed

.解決方法1(矇蔽)

1.修改manifest.jsonhash

[root@hadoop-01 parcels]# cat CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel.sha

227d11e344698c70e654ca6768fc017735b73ae3

[root@hadoop-01 parcels]# sha1sum CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel

cb7c70d07e68a256a1cb3b06e79e688ac64f3432  CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel


[root@hadoop-01 parcels]# cat manifest.json | grep CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel

            "parcelName": "CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel",

 

 [root@hadoop-01 parcels]# vi manifest.json

#:/ 進入搜尋模式,輸入CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel,
將其的hash227d11e344698c70e654ca6768fc017735b73ae3 改為cb7c70d07e68a256a1cb3b06e79e688ac64f3432

2.web介面,單擊 Back,再單擊 Continue

CDH5.8.2安裝之Hash verification failed

.解決方法2(根源)

假如解決方法1,還是不能解決,可能parcel檔案損壞。

故需要重新下載,這時web介面不要關閉,單擊 Back,再單擊 Continue

1.刪除本地CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel檔案

[root@hadoop-01 parcels]# rm -f CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel 

2.重新下載

 [root@hadoop-01 parcels]# wget  

3.再次校驗hash值,對比

[root@hadoop-01 parcels]# sha1sum CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel

227d11e344698c70e654ca6768fc017735b73ae3  CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel

[root@hadoop-01 parcels]# 

[root@hadoop-01 parcels]# cat CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel.sha

227d11e344698c70e654ca6768fc017735b73ae3

 

### 一致,就說明下載檔案是完整的,未損壞 

4.web介面,單擊 Back,再單擊 Continue,發現error

CDH5.8.2安裝之Hash verification failed
CDH5.8.2安裝之Hash verification failed

ERROR:

? Src file /opt/cloudera/parcels/.flood/CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel/CDH-5.8.2-1.cdh5.8.2.p0.3-el6.parcel does not exist  -  hadoop-01 ...and 4 others

5.web介面,果斷快速的單擊 Back

CDH5.8.2安裝之Hash verification failed

 

6. 手工去每臺機器刪除資料夾/opt/cloudera/parcels/.flood 重啟agent

[root@hadoop-01 ~]# rm -rf /opt/cloudera/parcels/.flood

[root@hadoop-02 ~]# rm -rf /opt/cloudera/parcels/.flood

[root@hadoop-03 ~]# rm -rf /opt/cloudera/parcels/.flood

[root@hadoop-04 ~]# rm -rf /opt/cloudera/parcels/.flood

[root@hadoop-05 ~]# rm -rf /opt/cloudera/parcels/.flood

[root@hadoop-06 ~]# rm -rf /opt/cloudera/parcels/.flood


[root@hadoop-01 ~]# service cloudera-scm-agent restart

[root@hadoop-02 ~]# service cloudera-scm-agent restart

[root@hadoop-03 ~]# service cloudera-scm-agent restart

[root@hadoop-04 ~]# service cloudera-scm-agent restart

[root@hadoop-05 ~]# service cloudera-scm-agent restart

[root@hadoop-06 ~]# service cloudera-scm-agent restart 

7. web介面,再單擊 Continue,發現以下錯誤

? Untar failed with return code: 2, with tar output: stdout: [], stderr: [ gzip: stdin: invalid compressed data--crc error tar: Child returned status 1 tar: Error is not recoverable: exiting now ]  -  hadoop-04 

CDH5.8.2安裝之Hash verification failedCDH5.8.2安裝之Hash verification failed

8.谷歌,cloudera社群搜尋,無法解決

9.再次執行 步驟6

10.關閉當前頁,開啟

CDH5.8.2安裝之Hash verification failed

11. 單擊 Add Cloudera Management Service,建立cms服務

CDH5.8.2安裝之Hash verification failed

12.單擊 Add Cluster,建立叢集,失敗,無法單擊continue,應該是個bug

CDH5.8.2安裝之Hash verification failed


13. 強制解除安裝和清理的叢集的檔案和安裝包

14. 重新安裝,其介面如下

CDH5.8.2安裝之Hash verification failedCDH5.8.2安裝之Hash verification failed

 

. 吸取教訓:

a.校驗下載的檔案

b當出現Hash verification failed,不要做解決方案1,直接執行解決方案2step 1-3,然後單擊back,continue按鈕

c.乾脆執行解決方案2step 13-14

 
 

.備註

遇之問題,與之鬥爭,窮盡方法,提高自己,重新再來。


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30089851/viewspace-2128607/,如需轉載,請註明出處,否則將追究法律責任。

相關文章