| 37 | 完成則 /opt/hadoop/build/contrib/ 內則有 fuse-dfs 資料夾 |
| 38 | |
| 39 | == 2. == |
| 40 | 請檢查 /opt/hadoop/build/contrib/fuse-dfs/fuse_dfs_wrapper.sh 檔內的設定檔是否符合系統環境 |
| 41 | |
| 42 | {{{ |
| 43 | #!text |
| 44 | export HADOOP_HOME=/opt/hadoop |
| 45 | export PATH=$HADOOP_HOME/contrib/fuse_dfs:$PATH |
| 46 | export OS_ARCH=i386 |
| 47 | export JAVA_HOME=/usr/lib/jvm/java-6-sun |
| 48 | export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/$OS_ARCH/server:/usr/local/share/hdfs/libhdfs/:/usr/local/lib |
| 49 | }}} |
| 50 | |
| 51 | {{{ |
| 52 | $ cp -rf ./build/contrib/fuse-dfs contrib/ |
| 53 | $ sudo mkdir /usr/local/share/hdfs/ |
| 54 | $ sudo cp /opt/hadoop/build/libhdfs /usr/local/share/hdfs/libhdfs/ |
| 55 | }}} |
| 56 | |
| 57 | {{{ |
| 58 | $ cd /opt/hadoop/build/contrib/fuse-dfs/ |
| 59 | $ ./fuse_dfs_wrapper.sh |
| 60 | }}} |
| 61 | == 3. == |
| 62 | |
| 63 | {{{ |
| 64 | $ mkdir /tmp/fusehdfs |
| 65 | $ fuse_dfs_wrapper.sh dfs://secuse.nchc.org.tw:9000 /tmp/fusehdfs -d` |
| 66 | }}} |
| 67 | |
| 68 | 另外一個視窗 |
| 69 | {{{ |
| 70 | $ ls /tmp/fusehdfs |
| 71 | }}} |