1.
1 2 | # hostnamectl set-hostname cdh00.rabbit.kr | cs |
2.
1 2 | # vi /etc/hosts | cs |
3.
1 2 3 4 5 6 | 192.168.0.23 cdh00 192.168.0.24 cdh01 192.168.0.25 cdh02 192.168.0.27 cdh03 192.168.0.26 cdh04 | cs |
4,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: SHA256:MdT7uyeHUWBNsZ6Oi3hqa6qy/UeVp/ZyPUp0qQJfIrI root@cdh00.rabbit.kr The key's randomart image is: +---[RSA 2048]----+ .. oo. | . . o .. | o + .. | o+ ...o | . S..+o.= | o.+o+o= | E. .o.+=. | .. +.o+*.= | .oooo=++.o+* . | +----[SHA256]-----+ | cs |
5.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # ssh-copy-id -i ~/.ssh/id_rsa.pub cdh01 /bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub" The authenticity of host 'cdh01 (192.168.0.24)' can't be established. ECDSA key fingerprint is SHA256:wS8cbjSpKH87w+gzj99YrffsEminjggyur8RD9olnuQ. ECDSA key fingerprint is MD5:24:b0:77:d4:01:db:47:2e:c5:cc:06:68:7f:32:d5:66. Are you sure you want to continue connecting (yes/no)? yes /bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys root@cdh01's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'cdh01'" and check to make sure that only the key(s) you wanted were added. | cs |
6.
1 2 3 4 5 | # scp -r ~/.ssh/* cdh01:~/.ssh/ id_rsa 100% 1679 2.4MB/s 00:00 id_rsa.pub 100% 402 1.1MB/s 00:00 known_hosts 100% 720 1.2MB/s 00:00 | cs |
7. pssh 설치
: 관련 게시글 참조 요망
8.
1 2 3 4 5 6 7 | # pssh -h dept.hosts service iptables stop [1] 14:25:01 [SUCCESS] root@192.168.0.26 [2] 14:25:01 [SUCCESS] root@192.168.0.24 [3] 14:25:01 [SUCCESS] root@192.168.0.25 [4] 14:25:01 [SUCCESS] root@192.168.0.27 [5] 14:25:01 [SUCCESS] root@192.168.0.23 | cs |
9.
1 2 3 4 5 6 7 | # pssh -h dept.hosts chkconfig iptables off [1] 14:25:55 [SUCCESS] root@192.168.0.24 [2] 14:25:55 [SUCCESS] root@192.168.0.26 [3] 14:25:55 [SUCCESS] root@192.168.0.27 [4] 14:25:56 [SUCCESS] root@192.168.0.25 [5] 14:25:56 [SUCCESS] root@192.168.0.23 | cs |
10.
1 2 | # vi /etc/sysconfig/selinux | cs |
11.
1 2 3 | #SELINUX=enforcing SELINUX=disabled | cs |
12.
1 2 3 4 5 6 7 | # pscp -h dept.hosts /etc/sysconfig/selinux /etc/sysconfig/selinux [1] 14:29:55 [SUCCESS] root@192.168.0.25 [2] 14:29:55 [SUCCESS] root@192.168.0.24 [3] 14:29:55 [SUCCESS] root@192.168.0.26 [4] 14:29:55 [SUCCESS] root@192.168.0.27 [5] 14:29:55 [SUCCESS] root@192.168.0.23 | cs |
13.
1 2 3 4 5 6 7 | # pssh -h dept.hosts 'sysctl -w vm.swappiness=0' [1] 14:31:06 [SUCCESS] root@192.168.0.24 [2] 14:31:06 [SUCCESS] root@192.168.0.25 [3] 14:31:06 [SUCCESS] root@192.168.0.26 [4] 14:31:06 [SUCCESS] root@192.168.0.27 [5] 14:31:06 [SUCCESS] root@192.168.0.23 | cs |
14.
1 2 | # echo 'vm.swappiness=0' >> /etc/sysctl.conf | cs |
15.
1 2 3 4 5 6 7 | # pscp -h dept.hosts /etc/sysctl.conf /etc/sysctl.conf [1] 14:32:07 [SUCCESS] root@192.168.0.24 [2] 14:32:07 [SUCCESS] root@192.168.0.25 [3] 14:32:07 [SUCCESS] root@192.168.0.26 [4] 14:32:07 [SUCCESS] root@192.168.0.23 [5] 14:32:07 [SUCCESS] root@192.168.0.27 | cs |
16.
1 2 | # echo never > /sys/kernel/mm/transparent_hugepage/defrag | cs |
* All Node
17.
1 2 | # echo never > /sys/kernel/mm/transparent_hugepage/enabled | cs |
* All Nodes
18.
1 2 3 4 5 | # cat << EOT >> /etc/rc.local > echo never > /sys/kernel/mm/transparent_hugepage/defrag > echo never > /sys/kernel/mm/transparent_hugepage/enabled > EOT | cs |
19.
1 2 3 4 5 6 7 | # pscp -h dept.hosts /etc/rc.local /etc/rc.local [1] 14:39:55 [SUCCESS] root@192.168.0.24 [2] 14:39:55 [SUCCESS] root@192.168.0.25 [3] 14:39:55 [SUCCESS] root@192.168.0.26 [4] 14:39:55 [SUCCESS] root@192.168.0.23 [5] 14:39:55 [SUCCESS] root@192.168.0.27 | cs |
20.
1 2 3 4 5 6 7 | # pssh -h dept.hosts yum install -y ntp [1] 14:41:42 [SUCCESS] root@192.168.0.26 [2] 14:41:43 [SUCCESS] root@192.168.0.25 [3] 14:41:43 [SUCCESS] root@192.168.0.27 [4] 14:41:43 [SUCCESS] root@192.168.0.24 [5] 14:41:44 [SUCCESS] root@192.168.0.23 | cs |
21.
1 2 3 4 5 6 7 | # cat << EOT >> /etc/ntp.conf > server 0.kr.pool.ntp.org > server 1.asia.pool.ntp.org > server 2.kr.pool.ntp.org > server 3.asia.pool.ntp.org > EOT | cs |
22.
1 2 3 4 5 6 7 | # pscp -h dept.hosts /etc/ntp.conf /etc/ntp.conf [1] 14:48:07 [SUCCESS] root@192.168.0.25 [2] 14:48:07 [SUCCESS] root@192.168.0.26 [3] 14:48:07 [SUCCESS] root@192.168.0.24 [4] 14:48:07 [SUCCESS] root@192.168.0.23 [5] 14:48:07 [SUCCESS] root@192.168.0.27 | cs |
23.
1 2 3 4 5 6 7 | # pssh -h dept.hosts service ntpd stop [1] 14:48:47 [SUCCESS] root@192.168.0.24 [2] 14:48:47 [SUCCESS] root@192.168.0.26 [3] 14:48:47 [SUCCESS] root@192.168.0.25 [4] 14:48:47 [SUCCESS] root@192.168.0.23 [5] 14:48:47 [SUCCESS] root@192.168.0.27 | cs |
24.
1 2 3 4 5 6 7 | # pssh -h dept.hosts ntpdate kr.pool.ntp.org [1] 14:49:18 [SUCCESS] root@192.168.0.24 [2] 14:49:20 [SUCCESS] root@192.168.0.25 [3] 14:49:20 [SUCCESS] root@192.168.0.26 [4] 14:49:20 [SUCCESS] root@192.168.0.27 [5] 14:49:21 [SUCCESS] root@192.168.0.23 | cs |
25.
1 2 3 4 5 6 7 | # pssh -h dept.hosts service ntpd start [1] 14:49:31 [SUCCESS] root@192.168.0.24 [2] 14:49:31 [SUCCESS] root@192.168.0.25 [3] 14:49:31 [SUCCESS] root@192.168.0.26 [4] 14:49:31 [SUCCESS] root@192.168.0.27 [5] 14:49:31 [SUCCESS] root@192.168.0.23 | cs |
26.
1 2 3 4 5 6 7 | # pssh -h dept.hosts chkconfig ntpd on [1] 14:49:51 [SUCCESS] root@192.168.0.25 [2] 14:49:51 [SUCCESS] root@192.168.0.24 [3] 14:49:51 [SUCCESS] root@192.168.0.26 [4] 14:49:51 [SUCCESS] root@192.168.0.27 [5] 14:49:51 [SUCCESS] root@192.168.0.23 | cs |
27.
1 2 3 4 5 6 7 | # cat << EOT >> /etc/security/limits.conf > * hard nofile 131072 > * soft nofile 131072 > root hard nofile 131072 > root soft nofile 131072 > EOT | cs |
28.
1 2 3 4 5 6 7 | # pscp -h dept.hosts /etc/security/limits.conf /etc/security/limits.conf [1] 15:38:09 [SUCCESS] root@192.168.0.25 [2] 15:38:09 [SUCCESS] root@192.168.0.24 [3] 15:38:09 [SUCCESS] root@192.168.0.26 [4] 15:38:09 [SUCCESS] root@192.168.0.27 [5] 15:38:09 [SUCCESS] root@192.168.0.23 | cs |
29.
1 2 | # pssh -h dept.hosts reboot | cs |
30.
1 2 3 4 5 6 7 8 9 10 11 12 | # wget http://archive.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin --2018-06-01 16:28:20-- http://archive.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin Resolving archive.cloudera.com (archive.cloudera.com)... 151.101.0.167, 151.101.64.167, 151.101.128.167, ... Connecting to archive.cloudera.com (archive.cloudera.com)|151.101.0.167|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 521190 (509K) [application/octet-stream] Saving to: ‘cloudera-manager-installer.bin’ 100%[===========================================================================>] 521,190 1.11MB/s in 0.4s 2018-06-01 16:28:21 (1.11 MB/s) - ‘cloudera-manager-installer.bin’ saved [521190/521190] | cs |
31.
1 2 | # chmod u+x cloudera-manager-installer.bin | cs |
32.
1 2 | # ./cloudera-manager-installer.bin | cs |
33.
34.
35.
36.
37.
38.
39.
40.
41.
* 초기 계정 정보 : admin / admin
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
'Big Data Platform' 카테고리의 다른 글
[경고] Cloudera supports versions 1.6.0_31 and 1.7.0_55 of Oracle JVM and later. (0) | 2018.06.17 |
---|---|
[경고] CDH Transparent Huge Page Compaction is enabled (0) | 2018.06.17 |
[에러] No route to host (0) | 2018.06.01 |