| 50 | {{{ |
| 51 | user@node36:~$ sudo apt-get install git |
| 52 | user@node36:~$ git clone https://github.com/jazzwang/hadoop_labs.git |
| 53 | user@node36:~$ hadoop_labs/lab000/hadoop-local-mode |
| 54 | user@node36:~$ jps |
| 55 | user@node36:~$ netstat -nap | grep java |
| 56 | user@node36:~$ export PATH=${HOME}/hadoop/bin:$PATH |
| 57 | user@node36:~$ hadoop fs -ls |
| 58 | user@node36:~$ hadoop fs -mkdir tmp |
| 59 | user@node36:~$ hadoop fs -ls |
| 60 | user@node36:~$ cd tmp |
| 61 | user@node36:~/tmp$ hadoop fs -put ${HOME}/hadoop/conf input |
| 62 | user@node36:~/tmp$ cp ~/hadoop/hadoop-examples-1.0.4.jar . |
| 63 | user@node36:~/tmp$ hadoop jar hadoop-examples-1.0.4.jar wordcount input output |
| 64 | }}} |