Changes between Version 1 and Version 2 of NCHCCloudCourse100928_3_EXE
- Timestamp:
- Sep 28, 2010, 10:39:19 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NCHCCloudCourse100928_3_EXE
v1 v2 12 12 = Ex1. 從 local 上傳資料到 hdfs = 13 13 14 * 請在 local 端建立資料: /home/hadoop er/input15 * 請檢查 hdfs 無該資料夾: /user/hadoop er/program_put_input14 * 請在 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/hadoop er/input";46 String dst = "/user/hadoop er/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/hadoop er/program_put_input55 * 執行後請檢查 hdfs 是否有該資料夾: /user/hadoop/program_put_input 56 56