server1
192.168.56.101
server2
192.168.56.102
server3
192.168.56.103
[CentOS 6 Gnome i386]
오른쪽마우스 클릭 -> 복제 -> full clone
server1번부터 3번까지 (로그인 하지 않고)차례대로 시
작(->초록색화살표 클릭)
ifconfig
1.
vi /etc/sysconfig/network
2. server1로 설정
NETWORKING=yes
HOSTNAME=server1
vi /etc/hosts
192.168.56.101 server1
192.168.56.102 server2
192.168.56.103 server3
system-shutdown 하고 나서 서버 2 시작
2.
ifconfig
system->network connections - system eth0 더블클릭
[IPv4 settiongs]탭에서 Adress 192.168.56.101을
192.168.56.102로 바꿈
또
1.
vi /etc/sysconfig/network
2. server2로 설정
NETWORKING=yes
HOSTNAME=server2
3.
vi /etc/hosts
192.168.56.101 server1
192.168.56.102 server2
192.168.56.103 server3
①번을 3번으로 바꾼채 반복
[CentOS 6 Gnome i386], [server2], [server3]
오른쪽마우스-네트워크-어댑터2-네트워크 어댑터 사용하
기 해제
다시 서버 1~3 시작하고
ifconfig
에서 ip확인하고
hostname
치고 호스트네임 확인
----------------------------------------------
하둡 클러스터가 동작되면서 각,, 네임노드의 파일 생성
파일을 생성할 때 생성할 수 있는 열쇠가 필요
ip와 호스트로 확인
---------------------------------------------
* ssh인증키
cd ~/.ssh
ssh 디렉토리
ls
known_host는 name노드가 슬레이브에게 스타트업해 라는
등등 명령어 입력함
네임노드가 서버1에게 명령을 내릴수 있는지 확인후, 공
개키(id_dsa.pub)를 보유하고있는지 확인
rm -rf ~/.ssh/*
ls
ssh server1 (sever1에게 명령 내리려함)
yes
하면 니가 누구냐?
root@server1's password: reverse
exit (서버 빠져나올때 항상 cllose 시켜줘야함)
ls
known_hosts (이게 생성되어있음)
vi known_hosts
server1 ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAyEu2qs2J4WVFfrzdh5lPpWvAm6nuab9QzA99JYdzDx4aTE0xgNqXl5Dk86BpTYHi1CE1S8B3keoiAbGJhftU7ScJGgaHhOJLJb/zdgLgdHT8FA/biiu2/4Qoiudgg9T9DC7KefBUvWS7JirUUF+IN08vuxuJItaFW8gewZ+pkmJG2vpnyvnBGdoeOcaFUzn4lFjFGp7S4/Nl0IseOI5blTlFlqCcbVDBgClYOyEJoLfJ1Tj1q2z1irRFGkIyhlxnbJV6dl7fvjcHaFIRgQlPccRTNDVo8Xv9wErIV9EZ4+MMrJVRRLBMYWSzaA11RIB3dtX8AK19KEw1O+G4QHXyBQ==
[root@server1 .ssh]#ssh server2
The authenticity of host 'server2 (192.168.56.102)' can't be established.
RSA key fingerprint is 1b:03:a6:95:98:76:db:7a:16:86:d5:f6:7f:5b:e8:49.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'server2,192.168.56.102' (RSA) to the list of known hosts.
하면 호스트네임이 server2로 됨
root@server2's password:
Last login: Sat Mar 7 16:40:57 2015 from namenode
[root@server2 ~]# exit
logout
Connection to server2 closed.
server1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyEu2qs2J4WVFfrzdh5lPpWvAm6nuab9QzA99JYdzDx4aTE0xgNqXl5Dk86BpTYHi1CE1S8B3keoiAbGJhftU7ScJGgaHhOJLJb/zdgLgdHT8FA/biiu2/4Qoiudgg9T9DC7KefBUvWS7JirUUF+IN08vuxuJItaFW8gewZ+pkmJG2vpnyvnBGdoeOcaFUzn4lFjFGp7S4/Nl0IseOI5blTlFlqCcbVDBgClYOyEJoLfJ1Tj1q2z1irRFGkIyhlxnbJV6dl7fvjcHaFIRgQlPccRTNDVo8Xv9wErIV9EZ4+MMrJVRRLBMYWSzaA11RIB3dtX8AK19KEw1O+G4QHXyBQ==
server2,192.168.56.102 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyEu2qs2J4WVFfrzdh5lPpWvAm6nuab9QzA99JYdzDx4aTE0xgNqXl5Dk86BpTYHi1CE1S8B3keoiAbGJhftU7ScJGgaHhOJLJb/zdgLgdHT8FA/biiu2/4Qoiudgg9T9DC7KefBUvWS7JirUUF+IN08vuxuJItaFW8gewZ+pkmJG2vpnyvnBGdoeOcaFUzn4lFjFGp7S4/Nl0IseOI5blTlFlqCcbVDBgClYOyEJoLfJ1Tj1q2z1irRFGkIyhlxnbJV6dl7fvjcHaFIRgQlPccRTNDVo8Xv9wErIV9EZ4+MMrJVRRLBMYWSzaA11RIB3dtX8AK19KEw1O+G4QHXyBQ==
그리고 다시 server3 똑같이 반복
[root@server1 .ssh]# ssh server3
The authenticity of host 'server3 (192.168.56.103)' can't be established.
RSA key fingerprint is 1b:03:a6:95:98:76:db:7a:16:86:d5:f6:7f:5b:e8:49.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'server3,192.168.56.103' (RSA) to the list of known hosts.
root@server3's password:
Last login: Sat Mar 7 16:40:57 2015 from namenode
[root@server3 ~]# exit
logout
Connection to server3 closed.
[root@server1 .ssh]# vi known_hosts
server1 ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAyEu2qs2J4WVFfrzdh5lPpWvAm6nuab9QzA99JYdzDx4aTE0xgNqXl5Dk86BpTYHi1CE1S8B3keoiAbGJhftU7ScJGgaHhOJLJb/zdgLgdHT8FA/biiu2/4Qoiudgg9T9DC7KefBUvWS7JirUUF+IN08vuxuJItaFW8gewZ+pkmJG2vpnyvnBGdoeOcaFUzn4lFjFGp7S4/Nl0IseOI5blTlFlqCcbVDBgClYOyEJoLfJ1Tj1q2z1irRFGkIyhlxnbJV6dl7fvjcHaFIRgQlPccRTNDVo8Xv9wErIV9EZ4+MMrJVRRLBMYWSzaA11RIB3dtX8AK19KEw1O+G4QHXyBQ==
server2,192.168.56.102 ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAyEu2qs2J4WVFfrzdh5lPpWvAm6nuab9QzA99JYdzDx4aTE0xgNqXl5Dk86BpTYHi1CE1S8B3keoiAbGJhftU7ScJGgaHhOJLJb/zdgLgdHT8FA/biiu2/4Qoiudgg9T9DC7KefBUvWS7JirUUF+IN08vuxuJItaFW8gewZ+pkmJG2vpnyvnBGdoeOcaFUzn4lFjFGp7S4/Nl0IseOI5blTlFlqCcbVDBgClYOyEJoLfJ1Tj1q2z1irRFGkIyhlxnbJV6dl7fvjcHaFIRgQlPccRTNDVo8Xv9wErIV9EZ4+MMrJVRRLBMYWSzaA11RIB3dtX8AK19KEw1O+G4QHXyBQ==
server3,192.168.56.103 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyEu2qs2J4WVFfrzdh5lPpWvAm6nuab9QzA99JYdzDx4aTE0xgNqXl5Dk86BpTYHi1CE1S8B3keoiAbGJhftU7ScJGgaHhOJLJb/zdgLgdHT8FA/biiu2/4Qoiudgg9T9DC7KefBUvWS7JirUUF+IN08vuxuJItaFW8gewZ+pkmJG2vpnyvnBGdoeOcaFUzn4lFjFGp7S4/Nl0IseOI5blTlFlqCcbVDBgClYOyEJoLfJ1Tj1q2z1irRFGkIyhlxnbJV6dl7fvjcHaFIRgQlPccRTNDVo8Xv9wErIV9EZ4+MMrJVRRLBMYWSzaA11RIB3dtX8AK19KEw1O+G4QHXyBQ==
~
위와 같이 server가 등록되어 있으면, 다시 서버 접속 (password) 안물어봄.
Nodes 메뉴
Applications 메뉴
'Study & Edu > BigData' 카테고리의 다른 글
맵리듀스 실습 및 설정 (0) | 2015.03.21 |
---|---|
빅데이터 2틀째 수업, 마지막 시간 필기 (0) | 2015.03.14 |
vi /etc/profile 안의 내용 - 파란줄만 설정하면 의사분산모드에서 전역에 등록하는법 (0) | 2015.03.07 |
하둡 압축풀기 (0) | 2015.03.07 |
vi /etc/profile 내용 복붙 -파란색줄 추가 (0) | 2015.03.07 |