Changes between Version 1 and Version 2 of NCHCCloudCourse100802/Lab2
- Timestamp:
- Aug 4, 2010, 11:45:18 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NCHCCloudCourse100802/Lab2
v1 v2 2 2 #!html 3 3 <div style="text-align: center;"><big 4 style="font-weight: bold;"><big><big>實作二: HDFS Shell操作練習</big></big></big></div> 5 }}} 4 style="font-weight: bold;"><big><big>實作二: HDFS Shell操作練習</big></big></big><big>Lab2: HDFS Shell in practice</big></big></div> 5 }}} 6 6 7 [[PageOutline]] 7 8 8 == 前言==9 10 * 此部份接續 實做一9 == 前言 Preface == 10 11 * 此部份接續[wiki:NCHCCloudCourse100802/Lab1 實作一][[BR]]Please refer to [wiki:NCHCCloudCourse100802/Lab1 Lab1] 11 12 12 = Content 1. HDFS Shell基本操作 = 13 == 1.1 瀏覽你HDFS目錄 == 13 = Content 1: HDFS Shell 基本操作 = 14 = Content 1: Basic HDFS Shell Commands = 15 16 == 1.1 瀏覽你HDFS目錄 == 17 == 1.1 Browsing Your HDFS Folder == 14 18 15 19 {{{ 16 20 /opt/hadoop$ bin/hadoop fs -ls 17 }}} 18 19 == 1.2 上傳資料到HDFS目錄 == 20 * 上傳 21 /opt/hadoop$ bin/hadoop fs -lsr 22 }}} 23 24 == 1.2 上傳資料到 HDFS 目錄 == 25 == 1.2 Upload Files or Folder to HDFS == 26 27 * 上傳 Upload 21 28 22 29 {{{ … … 24 31 }}} 25 32 26 * 檢查 33 * 檢查 Check 27 34 28 35 {{{ … … 31 38 }}} 32 39 33 == 1.3 下載HDFS的資料到本地目錄 == 34 35 * 下載 40 == 1.3 下載 HDFS 的資料到本地目錄 == 41 == 1.3 Download HDFS Files or Folder to Local == 42 43 * 下載 Download 36 44 37 45 {{{ … … 39 47 }}} 40 48 41 * 檢查 49 * 檢查 Check 42 50 43 51 {{{ … … 46 54 }}} 47 55 48 == 1.4 刪除檔案 == 56 == 1.4 刪除檔案 == 57 == 1.4 Remove Files or Folder == 49 58 50 59 {{{ … … 53 62 }}} 54 63 55 == 1.5 直接看檔案 == 64 == 1.5 直接看檔案 == 65 == 1.5 Browse Files Directly == 56 66 57 67 {{{ … … 60 70 }}} 61 71 62 == 1.6 更多指令操作 == 72 == 1.6 更多指令操作 == 73 == 1.6 More Commands -- Help message == 63 74 64 75 {{{ … … 106 117 The general command line syntax is 107 118 bin/hadoop command [genericOptions] [commandOptions] 108 109 119 }}} 110 120 111 121 112 122 113 = Content 2. 使用網頁Gui瀏覽資訊 = 123 = Content 2: 使用網頁 GUI 瀏覽資訊 = 124 = Content 2: User Web GUI to browse HDFS = 114 125 115 126 * [http://localhost:50030 Map/Reduce Administration] 116 127 * [http://localhost:50070 NameNode ] 117 128 118 = Content 3. 更多HDFS shell 的用法 = 119 120 * bin/hadoop fs <args> ,下面則列出 <args> 的用法 121 * 以下操作預設的目錄在 /user/<$username>/ 下 129 = Content 3: 更多 HDFS Shell 的用法 = 130 = Content 3: More about HDFS Shell = 131 132 * bin/hadoop fs <args> ,下面則列出 <args> 的用法[[BR]]Following are the examples of hadoop fs related commands. 133 * 以下操作預設的目錄在 /user/<$username>/ 下[[BR]]By default, your working directory will be at /user/<$username>/. 122 134 {{{ 123 135 $ bin/hadoop fs -ls input … … 128 140 -rw-r--r-- 2 hadooper supergroup 25844527 2009-04-02 11:51 /user/hadooper/input/4.txt 129 141 }}} 130 * 完整的路徑則是 '''hdfs://node:port/path''' 如: 142 * 完整的路徑則是 '''hdfs://node:port/path''' 如:[[BR]]Or you have to give a __''absolute path''__, such as '''hdfs://node:port/path''' 131 143 {{{ 132 144 $ bin/hadoop fs -ls hdfs://gm1.nchc.org.tw:9000/user/hadooper/input