(一)Hadoop基础环境搭建.pdfVIP

  • 3
  • 0
  • 约4.09千字
  • 约 6页
  • 2019-06-02 发布于浙江
  • 举报
()Hadoop ()Hadoop 15 2IP 3sudo 4 5 jdk 1 2 3 4 5jdk 15 HadoopNameNodeDataNode35 192.168.167.10 nna 192.168.167.11 nns 192.168.167.12 dn1 192.168.167.13 dn2 192.168.167.14 dn3 VMwareCentos7 IP hostshosts hosts 1 [hadoop@nna ~]$ cat /etc/hosts 2 127.0.0.1 localhost localhost.localdomain localhost4 localhos 3 t4.localdomain4 4 ::1 localhost localhost.localdomain localhost6 localhos 5 t6.localdomain6 6 192.168.167.10 nna 7 192.168.167.11 nns 8 192.168.167.12 dn1 192.168.167.13 dn2 192.168.167.14 dn3 2IP IPnmtuiNetworkManager 1 systemctl stop NetworkManager 2 systemctl enable NetworkManager 3sudo rootroot hadoop 1 [root@nns ~]# useradd hadoop 2 [root@nns ~]# passwd hadoop 3 Changing password for user hadoop. 4 New password: 5 BAD PASSWORD: The password fails the dictionary check - it is t 6 oo simplistic/systematic 7 Retype new password: passwd: all authentication tokens updated successfully. sudo 1 [root@nns ~]# sudoedit /etc/sudoers 2 # 3 hadoop ALL=(root) NOPASSWD: ALL 4 /data/soft/new 1 [hadoop@nns /]$ sudo mkdir -p /data/soft/new hadoop 1 [hadoop@nns /]$ sudo chown -R hadoop:hadoop /data/ 1 [hadoop@nns /]$ ls -Rl /data/ 2 /data/: 3 total 0 4 drwxr-xr-x. 3 hadoop hadoop 17 Dec 17 19:45 soft 5 6 /data/soft: 7 total 0 8 drwxr-xr-x. 2 hadoop hadoop 6 Dec 17 19:45 new 9 10 /data/soft/new: 11 total 0 5 1 [hadoop@nna ~]$ ssh-keygen -t rsa 2 Generating public/private rsa key pair. 3 Enter file in which to save the ke

文档评论(0)

1亿VIP精品文档

相关文档