Ubuntu 14.04 LTS下安装Hadoop 1.2.1(集群分布式模式)(3)

linuxidc@ubuntu:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 master # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters master 192.168.2.110 slave1 192.168.2.111 slave2 192.168.2.112 linuxidc@ubuntu:~$ cat /etc/hostname master linuxidc@ubuntu:~$

4. 安装SSH

linuxidc@ubuntu:/usr/lib/jvm/java$ sudo apt-get install ssh Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libck-connector0 ncurses-term openssh-client openssh-server openssh-sftp-server ssh-import-id Suggested packages: libpam-ssh keychain monkeysphere rssh molly-guard The following NEW packages will be installed: libck-connector0 ncurses-term openssh-server openssh-sftp-server ssh ssh-import-id The following packages will be upgraded: openssh-client 1 upgraded, 6 newly installed, 0 to remove and 239 not upgraded. Need to get 617 kB/1,181 kB of archives. After this operation, 3,450 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 trusty/main libck-connector0 amd64 0.4.5-3.1ubuntu2 [10.5 kB] Get:2 trusty/main ncurses-term all 5.9+20140118-1ubuntu1 [243 kB] Get:3 trusty-updates/main openssh-sftp-server amd64 1:6.6p1-2ubuntu2.3 [34.1 kB] Get:4 trusty-updates/main openssh-server amd64 1:6.6p1-2ubuntu2.3 [319 kB] Get:5 trusty-updates/main ssh all 1:6.6p1-2ubuntu2.3 [1,114 B] Get:6 trusty/main ssh-import-id all 3.21-0ubuntu1 [9,624 B] Fetched 617 kB in 16s (37.3 kB/s) Preconfiguring packages ... Selecting previously unselected package libck-connector0:amd64. (Reading database ... 166519 files and directories currently installed.) Preparing to unpack .../libck-connector0_0.4.5-3.1ubuntu2_amd64.deb ... Unpacking libck-connector0:amd64 (0.4.5-3.1ubuntu2) ... Preparing to unpack .../openssh-client_1%3a6.6p1-2ubuntu2.3_amd64.deb ... Unpacking openssh-client (1:6.6p1-2ubuntu2.3) over (1:6.6p1-2ubuntu2) ... Selecting previously unselected package ncurses-term. Preparing to unpack .../ncurses-term_5.9+20140118-1ubuntu1_all.deb ... Unpacking ncurses-term (5.9+20140118-1ubuntu1) ... Selecting previously unselected package openssh-sftp-server. Preparing to unpack .../openssh-sftp-server_1%3a6.6p1-2ubuntu2.3_amd64.deb ... Unpacking openssh-sftp-server (1:6.6p1-2ubuntu2.3) ... Selecting previously unselected package openssh-server. Preparing to unpack .../openssh-server_1%3a6.6p1-2ubuntu2.3_amd64.deb ... Unpacking openssh-server (1:6.6p1-2ubuntu2.3) ... Selecting previously unselected package ssh. Preparing to unpack .../ssh_1%3a6.6p1-2ubuntu2.3_all.deb ... Unpacking ssh (1:6.6p1-2ubuntu2.3) ... Selecting previously unselected package ssh-import-id. Preparing to unpack .../ssh-import-id_3.21-0ubuntu1_all.deb ... Unpacking ssh-import-id (3.21-0ubuntu1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for ureadahead (0.100.0-16) ... ureadahead will be reprofiled on next reboot Processing triggers for ufw (0.34~rc-0ubuntu2) ... Setting up libck-connector0:amd64 (0.4.5-3.1ubuntu2) ... Setting up openssh-client (1:6.6p1-2ubuntu2.3) ... Setting up ncurses-term (5.9+20140118-1ubuntu1) ... Setting up openssh-sftp-server (1:6.6p1-2ubuntu2.3) ... Setting up openssh-server (1:6.6p1-2ubuntu2.3) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... Creating SSH2 ECDSA key; this may take some time ... Creating SSH2 ED25519 key; this may take some time ... ssh start/running, process 7611 Setting up ssh-import-id (3.21-0ubuntu1) ... Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... Setting up ssh (1:6.6p1-2ubuntu2.3) ... Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

5. 解压hadoop压缩包到本地,修改配置文件

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/1fd0de3a766f8115d0277278e193c214.html