Version 9 (modified by jazz, 11 years ago) (diff) |
---|
實作一 Lab1
單機模式
Local (Standalone) Mode
Local (Standalone) Mode
#text 請先連線至 nodeN.3du.tw
- 首先, 我們來介紹 Hadoop 的三種安裝模式
- <參考> http://hadoop.apache.org/docs/stable/single_node_setup.html
Now you are ready to start your Hadoop cluster in one of the three supported modes: * Local (Standalone) Mode * Pseudo-Distributed Mode * Fully-Distributed Mode
- 開始動手吧~請剪貼以下的步驟:
user@node2:~$ cd hadoop_labs/ user@node2:~/hadoop_labs$ lab000/hadoop-local-mode
- 觀察有幾個 java process
user@node2:~/hadoop_labs$ jps
- 觀察有沒有開 port
user@node2:~/hadoop_labs$ netstat -nap | grep java
- 讓我們來複習一下 HDFS 的基本操作
user@node2:~/hadoop_labs$ cd ~ user@node2:~$ hadoop fs -ls user@node2:~$ hadoop fs -mkdir tmp user@node2:~$ hadoop fs -ls user@node2:~$ ls user@node2:~$ hadoop fs -put ${HOME}/hadoop/conf.local input user@node2:~$ hadoop fs -ls