Operation modes
Pseudo-Distributed Operation Mode
클러스터를 구성하려면 노드가 여러개 필요하다. 위의 모드로 사용한다면 한개의 노드로 여러개의 노드를 흉내낼 수 있다.
하둡 다운로드 command
wget [<https://archive.apache.org/dist/hadoop/common/hadoop-2.7.6/hadoop-2.7.6.tar.gz>](<https://archive.apache.org/dist/hadoop/common/hadoop-2.7.6/hadoop-2.7.6.tar.gz>)
tar -xvf hadoop-2.7.6.tar.gz
ln -s hadoop-2.7.6 hadoop
vim hadoop/etc/hadoop/* # configuration files
passphraseless ssh 설정
Check that you can ssh to the localhost without a passphrase:
$ ssh localhost
If you cannot ssh to localhost without a passphrase, execute the following commands
ssh-keygen -t rsa -P ‘’ -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorzed_keys
command
bin/hadoop namenode -format
Execution, Start DFS
start-dfs.sh
jps // check out all daemons are fine