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

환경 설정

  1. etc/hadoop/hadoop-env.sh
    1. export JAVA_HOME과 export HADOOP_HOME 설정하기
  2. etc/hadoop/core-site.xml
    1. 중앙관리
  3. etc/hadoop/hdfs-site.xml
    1. 복제본, 블록사이즈 설정

hadoop-2.7.6단의 폴더 위치로 이동 후 Namenode Format

command

bin/hadoop namenode -format

Execution, Start DFS

start-dfs.sh
jps // check out all daemons are fine