close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Oct 19, 2013, 10:50:03 PM (12 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v1
|
v2
|
|
| 5 | 5 | = 實作十一 Lab11 = |
| 6 | 6 | |
| | 7 | * 延續上一個實作,我們也可以參考 !FsShell.java 的 copyToLocal(String[]argv, int pos) 函數,來撰寫從 HDFS 下載到本地端的程式 |
| | 8 | {{{ |
| | 9 | #!java |
| | 10 | |
| | 11 | {{{ |
| | 12 | #!java |
| | 13 | 159 void copyToLocal(String[]argv, int pos) throws IOException { |
| | 14 | .... 略 .... |
| | 15 | 183 Path srcpath = new Path(srcstr); |
| | 16 | 184 FileSystem srcFS = getSrcFileSystem(srcpath, verifyChecksum); |
| | 17 | .... 略 .... |
| | 18 | }}} |
| 7 | 19 | {{{ |
| 8 | 20 | cd ~/hadoop_labs/lab005 |