Changes between Version 2 and Version 3 of jazz/09-07-02


Ignore:
Timestamp:
Jul 2, 2009, 11:06:28 PM (15 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/09-07-02

    v2 v3  
    11= 2009-07-02 =
    22
    3  * [狀況] NameNode 一直起不來
     3 * [狀況] Namenode 一直起不來
     4 * [解法] 從 namesecondary 拷貝 edits 到 name,然後重新啟動 Namenode
     5{{{
     6jazz@hadoop:~$ sudo cp /var/lib/hadoop/cache/hadoop/dfs/namesecondary/current/edits /var/lib/hadoop/cache/hadoop/dfs/name/current/edits
     7jazz@hadoop:~$ sudo /etc/init.d/hadoop-namenode restart
     8}}}
     9 * [錯誤追蹤] 很可能是因為系統碟沒有空間,但是我主要是追 /var/log/hadoop/hadoop-hadoop-namenode-hadoop.out 看到錯誤訊息是 hadoop045 帳號在跑東西
     10{{{
     11ERROR dfs.LeaseManager: /user/hadoop045/trend/output/countries/_logs/history
     12}}}
     13 * 接著在 /var/lib/hadoop/cache/hadoop/dfs/namesecondary/current/edits 也看到一堆 hadoop045 的檔案,因此懷疑 edits 檔是紀錄哪些讀寫是未完成。既然 Namenode 都起不來了,那些沒跑完的也跑不完,就乾脆把 edits 歸零了。原始 namenode 錯誤訊息如下:
    414{{{
    51509/07/02 09:18:06 INFO dfs.NameNode: STARTUP_MSG:
     
    6676************************************************************/
    6777}}}
    68  * [解法] 從 namesecondary 拷貝 edits 到 name
    69 {{{
    70 jazz@hadoop:~$ sudo cp /var/lib/hadoop/cache/hadoop/dfs/namesecondary/current/edits /var/lib/hadoop/cache/hadoop/dfs/name/current/edits
    71 }}}