Changes between Version 5 and Version 6 of III131019/Lab9


Ignore:
Timestamp:
Oct 19, 2013, 10:24:01 PM (11 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • III131019/Lab9

    v5 v6  
    5656         } else {
    5757+          // Add by Jazz
    58 +          System.out.println("ls("+Path.CUR_DIR+",false)");
     58+          System.out.println("ls("+Path.CUR_DIR+",false), Path.CUR_DIR = " + Path.CUR_DIR);
    5959           exitCode = ls(Path.CUR_DIR, false);
    6060         }
     
    8080    -C  變更至指定目錄並包含後面所列的檔案
    8181}}}
     82
     83 * lab003/FsShell 所做的動作:
     84   1. 安裝 ant
     85   2. 編譯 src/FsShell.java 並使用 jar -u 將產生的 .class 更新到 hadoop-core-$VERSION.jar
     86   3. 顯示 hadoop-core-$VERSION.jar 與原始備份 hadoop-core-$VERSION.jar.org 的差異(請觀察日期)
     87   4. 採用 HADOOP_CONF_DIR 環境變數切換成單機模式,請留意畫面中出現的 srcFS 內容
     88   5. 切換回全分散式模式,請留意畫面中出現的 srcFS 內容
     89
     90== 實作習題 ==
     91
     92 <問題 1> 執行 lab003/FsShell,在單機模式時,srcFs 物件是哪一個 Java 類別
     93{{{
     94#!text
     95      (A) org.apache.hadoop.fs.LocalFileSystem
     96      (B) org.apache.hadoop.hdfs.DistributedFileSystem
     97      (C) org.apache.hadoop.fs.shell.Count
     98      (D) org.apache.hadoop.fs.shell.CommandFormat
     99}}}
     100
     101 <問題 2> 執行 lab003/FsShell,在全分散模式時,srcFs 物件是哪一個 Java 類別
     102{{{
     103#!text
     104      (A) org.apache.hadoop.fs.LocalFileSystem
     105      (B) org.apache.hadoop.hdfs.DistributedFileSystem
     106      (C) org.apache.hadoop.fs.shell.Count
     107      (D) org.apache.hadoop.fs.shell.CommandFormat
     108}}}