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:
-
Sep 28, 2010, 10:39:19 AM (16 years ago)
- Author:
-
waue
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v1
|
v2
|
|
| 12 | 12 | = Ex1. 從 local 上傳資料到 hdfs = |
| 13 | 13 | |
| 14 | | * 請在 local 端建立資料: /home/hadooper/input |
| 15 | | * 請檢查 hdfs 無該資料夾: /user/hadooper/program_put_input |
| | 14 | * 請在 local 端建立資料: /home/hadoop/input |
| | 15 | * 請檢查 hdfs 無該資料夾: /user/hadoop/program_put_input |
| 16 | 16 | |
| 17 | 17 | {{{ |
| … |
… |
|
| 43 | 43 | static public void main(String args[]){ |
| 44 | 44 | Configuration conf = new Configuration(); |
| 45 | | String src = "/home/hadooper/input"; |
| 46 | | String dst = "/user/hadooper/program_put_input"; |
| | 45 | String src = "/home/hadoop/input"; |
| | 46 | String dst = "/user/hadoop/program_put_input"; |
| 47 | 47 | boolean status = putToHdfs(src, dst, conf); |
| 48 | 48 | System.err.println("create? :" + status); |
| … |
… |
|
| 53 | 53 | }}} |
| 54 | 54 | |
| 55 | | * 執行後請檢查 hdfs 是否有該資料夾: /user/hadooper/program_put_input |
| | 55 | * 執行後請檢查 hdfs 是否有該資料夾: /user/hadoop/program_put_input |
| 56 | 56 | |