Changes between Version 10 and Version 11 of waue/2009/1005


Ignore:
Timestamp:
Oct 6, 2009, 7:22:01 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2009/1005

    v10 v11  
    66[[PageOutline]]
    77
    8 = 環境 =
     8= 零、環境 =
    99 * ubuntu 9.04
    1010 * kernel 2.6.24-24-generic (原本預設為 2.6.28-15 )
     
    1717   * sudo apt-get install automake  可得 1.10.2
    1818
    19  = 安裝 =
    20  == 0. 準備 ==
     19 = 一、安裝 =
     20
     21 == 0. 載入fuse的kernel module ==
     22
    2123{{{
    2224$ sudo apt-get install linux-image-2.6.24-24-generic fuse-utils libfuse-dev libfuse2 automake
     
    3133}}}
    3234
    33  ==  1. build fuse-hdfs ==
     35 ==  1. 編譯 fuse-hdfs ==
    3436
    3537改 /opt/hadoop-0.20.1/build.xml 的 1046行左右,去掉 doc相關敘述,如下:
     
    6769
    6870
    69  == 2. ==
     71 == 2. 設定 fuse_dfs 的環境參數 ==
    7072
    7173請檢查 /opt/hadoop/contrib/fuse-dfs/fuse_dfs_wrapper.sh 檔內的設定檔是否符合系統環境
     
    101103}}}
    102104
    103  ps . 若有錯請往前檢查
     105 ps . 若遇到錯誤請往前檢查
    104106
    105  = 執行 =
     107 = 二、執行 =
    106108
    107109 * 掛載hdfs-fuse
     
    132134}}}
    133135
    134  = 補充 =
     136 = 三、補充 =
    135137
    136138加入以下內容到 /etc/fstab
     
    148150缺點是用root mount 會導致權限問題,與因為export參數不完全,導致找不到libhdfs.so.0
    149151
    150  = bug fix =
     152 = 四、除錯 =
    151153
    152  * check java5
    153 改 build.xml 的 1046行左右,去掉 doc相關敘述,如下:
     154 == ant 時檢查check java5 或 forest 等錯誤訊息 ==
     155 * 改 build.xml 的 1046行左右,去掉 doc相關敘述,如下:
    154156{{{
    155157#!text
     
    157159}}}
    158160
    159  * 出現找不到 libhdfs.so.0,如:fuse_dfs: error while loading shared libraries: libhdfs.so.0:
     161 == 出現找不到 libhdfs.so.0 ==
    160162
    161 可檢查LD_LIBRARY_PATH是否設定正確:
     163如:fuse_dfs: error while loading shared libraries: libhdfs.so.0:
    162164
    163 並複製libhdfs.so(/opt/hadoop-0.20.1/c++/Linux-i386-32/lib/libhdfs.so )到該路徑內;
     165 * 可檢查LD_LIBRARY_PATH是否設定正確:
    164166
    165 再鍊結 libhdfs.so.0 -> libhdfs.so
     167 * 並複製libhdfs.so(/opt/hadoop-0.20.1/c++/Linux-i386-32/lib/libhdfs.so )到該路徑內;
     168
     169 * 再鍊結 libhdfs.so.0 -> libhdfs.so
    166170
    167171