Changes between Version 10 and Version 11 of waue/2009/1005
- Timestamp:
- Oct 6, 2009, 7:22:01 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
waue/2009/1005
v10 v11 6 6 [[PageOutline]] 7 7 8 = 環境 =8 = 零、環境 = 9 9 * ubuntu 9.04 10 10 * kernel 2.6.24-24-generic (原本預設為 2.6.28-15 ) … … 17 17 * sudo apt-get install automake 可得 1.10.2 18 18 19 = 安裝 = 20 == 0. 準備 == 19 = 一、安裝 = 20 21 == 0. 載入fuse的kernel module == 22 21 23 {{{ 22 24 $ sudo apt-get install linux-image-2.6.24-24-generic fuse-utils libfuse-dev libfuse2 automake … … 31 33 }}} 32 34 33 == 1. buildfuse-hdfs ==35 == 1. 編譯 fuse-hdfs == 34 36 35 37 改 /opt/hadoop-0.20.1/build.xml 的 1046行左右,去掉 doc相關敘述,如下: … … 67 69 68 70 69 == 2. ==71 == 2. 設定 fuse_dfs 的環境參數 == 70 72 71 73 請檢查 /opt/hadoop/contrib/fuse-dfs/fuse_dfs_wrapper.sh 檔內的設定檔是否符合系統環境 … … 101 103 }}} 102 104 103 ps . 若 有錯請往前檢查105 ps . 若遇到錯誤請往前檢查 104 106 105 = 執行 =107 = 二、執行 = 106 108 107 109 * 掛載hdfs-fuse … … 132 134 }}} 133 135 134 = 補充 =136 = 三、補充 = 135 137 136 138 加入以下內容到 /etc/fstab … … 148 150 缺點是用root mount 會導致權限問題,與因為export參數不完全,導致找不到libhdfs.so.0 149 151 150 = bug fix=152 = 四、除錯 = 151 153 152 * check java5153 改 build.xml 的 1046行左右,去掉 doc相關敘述,如下:154 == ant 時檢查check java5 或 forest 等錯誤訊息 == 155 * 改 build.xml 的 1046行左右,去掉 doc相關敘述,如下: 154 156 {{{ 155 157 #!text … … 157 159 }}} 158 160 159 * 出現找不到 libhdfs.so.0,如:fuse_dfs: error while loading shared libraries: libhdfs.so.0:161 == 出現找不到 libhdfs.so.0 == 160 162 161 可檢查LD_LIBRARY_PATH是否設定正確: 163 如:fuse_dfs: error while loading shared libraries: libhdfs.so.0: 162 164 163 並複製libhdfs.so(/opt/hadoop-0.20.1/c++/Linux-i386-32/lib/libhdfs.so )到該路徑內; 165 * 可檢查LD_LIBRARY_PATH是否設定正確: 164 166 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 166 170 167 171