Changes between Version 1 and Version 2 of III140412/Lab1


Ignore:
Timestamp:
Apr 11, 2014, 11:14:49 PM (8 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • III140412/Lab1

    v1 v2  
    2828 * http://ntu.csie.org/~piaip/pietty/archive/pietty0327.exe
    2929
    30 {{{
    31 ssh hdp編號 -l ubuntu
    32 }}}
    33 
    3430== <補充> 拿 Ubuntu 12.04 Live CD 當自習環境 ==
    3531
     
    3733 * 若您是使用自己的 Ubuntu 12.04 Live CD 請先安裝 git
    3834{{{
    39 lab@node1:~$ sudo apt-get -y install git
     35~$ sudo apt-get -y install git
    4036}}}
    4137
     
    4339
    4440{{{
    45 lab@node1:~$ git clone https://github.com/jazzwang/hadoop_labs.git
     41~$ git clone https://github.com/jazzwang/hadoop_labs.git
    4642}}}
    4743
     
    4945{{{
    5046#!text
    51 lab@node1:~$ git clone https://github.com/jazzwang/hadoop_labs.git                                                     
     47~$ git clone https://github.com/jazzwang/hadoop_labs.git                                                     
    5248Cloning into 'hadoop_labs'...
    5349remote: Counting objects: 249, done.
     
    5955 * 檢查是否有 hadoop_labs 目錄
    6056{{{
    61 lab@node1:~$ cd hadoop_labs/
    62 lab@node1:~/hadoop_labs$ ls -al
     57~$ cd hadoop_labs/
     58~/hadoop_labs$ ls -al
    6359}}}
    6460
     
    7874 * 開始動手吧~請剪貼以下的步驟:
    7975{{{
    80 lab@node1:~$ cd ~/hadoop_labs
    81 lab@node1:~/hadoop_labs$ sudo apt-get -y install wget
    82 lab@node1:~/hadoop_labs$ lab000/hadoop-local-mode
     76~$ cd ~/hadoop_labs
     77~/hadoop_labs$ sudo apt-get -y install wget
     78~/hadoop_labs$ lab000/hadoop-local-mode
    8379}}}
    8480
     
    9288 * 安裝完成,首先先讓我們觀察有幾個 java process
    9389{{{
    94 lab@node1:~/hadoop_labs$ jps
     90~/hadoop_labs$ jps
    9591}}}
    9692
    9793 * 觀察有沒有開 port
    9894{{{
    99 lab@node1:~/hadoop_labs$ netstat -nap | grep java
     95~/hadoop_labs$ netstat -nap | grep java
    10096}}}
    10197
    10298 * 讓我們來複習一下 HDFS 的基本操作
    10399{{{
    104 lab@node1:~/hadoop_labs$ cd ~
    105 lab@node1:~$ ls
    106 lab@node1:~$ source ~/.bashrc
    107 lab@node1:~$ hadoop fs -ls
    108 lab@node1:~$ hadoop fs -mkdir tmp
    109 lab@node1:~$ hadoop fs -ls
    110 lab@node1:~$ ls
    111 lab@node1:~$ hadoop fs -put ${HOME}/hadoop/conf.local input
    112 lab@node1:~$ hadoop fs -ls
    113 lab@node1:~$ ls
     100~/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
    114110}}}
    115111