close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_repos.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Oct 6, 2009, 5:52:58 PM (16 years ago)
- Author:
-
waue
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v7
|
v8
|
|
| 53 | 53 | $ sudo mkdir /usr/local/share/hdfs/ |
| 54 | 54 | $ sudo cp /opt/hadoop/build/libhdfs /usr/local/share/hdfs/libhdfs/ |
| | 55 | $ mkdir /tmp/fusehdfs |
| 55 | 56 | }}} |
| 56 | 57 | |
| … |
… |
|
| 65 | 66 | |
| 66 | 67 | == 3. == |
| | 68 | * 掛載 |
| | 69 | {{{ |
| | 70 | $ fuse_dfs_wrapper.sh dfs://secuse.nchc.org.tw:9000 /tmp/fusehdfs |
| | 71 | }}} |
| | 72 | |
| | 73 | 於另外一個視窗 |
| 67 | 74 | |
| 68 | 75 | {{{ |
| 69 | | $ mkdir /tmp/fusehdfs |
| 70 | | $ fuse_dfs_wrapper.sh dfs://secuse.nchc.org.tw:9000 /tmp/fusehdfs -d |
| | 76 | $ cd /tmp/fusehdfs |
| | 77 | #// 可以自由下達 讀、寫、新增、刪除檔案 等指令 |
| 71 | 78 | }}} |
| 72 | 79 | |
| 73 | | 另外一個視窗 |
| | 80 | * 卸載 |
| 74 | 81 | {{{ |
| 75 | | $ ls /tmp/fusehdfs |
| | 82 | $ fuseumount -u /tmp/fusehdfs |
| 76 | 83 | }}} |
| 77 | 84 | |
| 78 | | = 4. = |
| | 85 | = 補充 = |
| 79 | 86 | |
| 80 | 87 | 加入以下內容到 /etc/fstab |
| … |
… |
|
| 83 | 90 | fuse_dfs#dfs://hadoop_server.foo.com:9000 /export/hdfs fuse -oallow_other,rw,-ousetrash,-oinitchecks 0 0 |
| 84 | 91 | }}} |
| | 92 | |
| | 93 | 好處是之後就可以用mount 指令來掛載 |
| | 94 | {{{ |
| | 95 | $ sudo mount /tmp/fusehdfs |
| | 96 | $ sudo umount /tmp/fusehdfs |
| | 97 | }}} |
| | 98 | |
| | 99 | 缺點是用root mount 會導致權限問題,與因為export參數不完全,導致找不到libhdfs.so.0 |
| | 100 | |
| 85 | 101 | = bug fix = |
| 86 | 102 | * check java5 |