Version 9 (modified by jazz, 11 years ago) (diff) |
---|
實作四 Lab 4
HDFS 叢集環境操作練習
HDFS full distributed mode in practice
HDFS full distributed mode in practice
以下練習,請連線至 https://lab.3du.me 操作。底下的 hXXXX 等於您的用戶名稱。
準備工作
- 由於 Google Cloud Engine 的 ssh 有些限制,目前先以 https 瀏覽器的連線方式進行實作
- 瀏覽器操作模式比較受限,目前已知 IE 會有問題,Firefox 會打不出 "-" 號,建議採用 Chrome 瀏覽器進行操作。
- 下載 Google Chrome
- 連線至 https://lab.3du.me (使用期限: 2014/03/23 00:00 ~ 2014/03/30 23:00)
- 保障您自己使用的權利,請先修改密碼:
user0@hdp:~$ passwd Changing password for user0. (current) UNIX password: Enter new UNIX password: Retype new UNIX password:
產生目錄
user0@hdp:~$ hadoop fs -ls user0@hdp:~$ hadoop fs -mkdir tmp user0@hdp:~$ hadoop fs -ls Found 1 items drwxr-xr-x - user0 supergroup 0 2014-03-23 02:04 /user/user0/tmp
產生一個 100 MB 的檔案
user0@hdp:~$ dd if=/dev/zero of=100mb.img bs=1M count=100 100+0 records in 100+0 records out 104857600 bytes (105 MB) copied, 0.0589096 s, 1.8 GB/s user0@hdp:~$ hadoop fs -put 100mb.img test.img user0@hdp:~$ hadoop fs -ls Found 2 items -rw-r--r-- 1 user0 supergroup 104857600 2014-03-23 02:08 /user/user0/test.img drwxr-xr-x - user0 supergroup 0 2014-03-23 02:04 /user/user0/tmp
Attachments (1)
- GoogleChromePortable_33.0.1750.154_online.paf.exe (1.3 MB) - added by jazz 11 years ago.
Download all attachments as: .zip