Changes between Version 1 and Version 2 of III140412/Lab1
- Timestamp:
- Apr 11, 2014, 11:14:49 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
III140412/Lab1
v1 v2 28 28 * http://ntu.csie.org/~piaip/pietty/archive/pietty0327.exe 29 29 30 {{{31 ssh hdp編號 -l ubuntu32 }}}33 34 30 == <補充> 拿 Ubuntu 12.04 Live CD 當自習環境 == 35 31 … … 37 33 * 若您是使用自己的 Ubuntu 12.04 Live CD 請先安裝 git 38 34 {{{ 39 lab@node1:~$ sudo apt-get -y install git35 ~$ sudo apt-get -y install git 40 36 }}} 41 37 … … 43 39 44 40 {{{ 45 lab@node1:~$ git clone https://github.com/jazzwang/hadoop_labs.git41 ~$ git clone https://github.com/jazzwang/hadoop_labs.git 46 42 }}} 47 43 … … 49 45 {{{ 50 46 #!text 51 lab@node1:~$ git clone https://github.com/jazzwang/hadoop_labs.git47 ~$ git clone https://github.com/jazzwang/hadoop_labs.git 52 48 Cloning into 'hadoop_labs'... 53 49 remote: Counting objects: 249, done. … … 59 55 * 檢查是否有 hadoop_labs 目錄 60 56 {{{ 61 lab@node1:~$ cd hadoop_labs/62 lab@node1:~/hadoop_labs$ ls -al57 ~$ cd hadoop_labs/ 58 ~/hadoop_labs$ ls -al 63 59 }}} 64 60 … … 78 74 * 開始動手吧~請剪貼以下的步驟: 79 75 {{{ 80 lab@node1:~$ cd ~/hadoop_labs81 lab@node1:~/hadoop_labs$ sudo apt-get -y install wget82 lab@node1:~/hadoop_labs$ lab000/hadoop-local-mode76 ~$ cd ~/hadoop_labs 77 ~/hadoop_labs$ sudo apt-get -y install wget 78 ~/hadoop_labs$ lab000/hadoop-local-mode 83 79 }}} 84 80 … … 92 88 * 安裝完成,首先先讓我們觀察有幾個 java process 93 89 {{{ 94 lab@node1:~/hadoop_labs$ jps90 ~/hadoop_labs$ jps 95 91 }}} 96 92 97 93 * 觀察有沒有開 port 98 94 {{{ 99 lab@node1:~/hadoop_labs$ netstat -nap | grep java95 ~/hadoop_labs$ netstat -nap | grep java 100 96 }}} 101 97 102 98 * 讓我們來複習一下 HDFS 的基本操作 103 99 {{{ 104 lab@node1:~/hadoop_labs$ cd ~105 lab@node1:~$ ls106 lab@node1:~$ source ~/.bashrc107 lab@node1:~$ hadoop fs -ls108 lab@node1:~$ hadoop fs -mkdir tmp109 lab@node1:~$ hadoop fs -ls110 lab@node1:~$ ls111 lab@node1:~$ hadoop fs -put ${HOME}/hadoop/conf.local input112 lab@node1:~$ hadoop fs -ls113 lab@node1:~$ ls100 ~/hadoop_labs$ cd ~ 101 ~$ ls 102 ~$ source ~/.bashrc 103 ~$ hadoop fs -ls 104 ~$ hadoop fs -mkdir tmp 105 ~$ hadoop fs -ls 106 ~$ ls 107 ~$ hadoop fs -put ${HOME}/hadoop/conf.local input 108 ~$ hadoop fs -ls 109 ~$ ls 114 110 }}} 115 111