CSDN■不看就亏系列!这里有完整的 Hadoop 集群搭建教程,和最易懂的 Hadoop 概念!| 附代码( 七 )

<name>yarn.resourcemanager.resource-tracker.address</name> <value>chenc01:8031</value> </proetry> <proetry> <name>yarn.resourcemanager.admin.address</name> <value>chenc01:8033</value> </proetry> <proetry> <name>yarn.resourcemanager.webapp.address</name> <value>chenc01:8088</value> </proetry> </configuration>

  • datanode配置文件生成
[hadoop@ chenc01 hadoop]$ scp -r /home/hadoop/hadoop-3.13 hadoop@chenc02:~/ The authenticity of host 'chenc02 (10.0.0.62)' can't be established. RSA key fingerprint is 9b:57:b9:86:84:90:a4:4b:44:3e:18:9f:8a:29:6f:e5. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'chenc02,10.0.0.62' (RSA) to the list of known hosts. hadoop@chenc02's password: /home/hadoop/hadoop-3.13: No such file or directory [hadoop@ chenc01 hadoop]$ scp -r /home/hadoop/hadoop-3.13 hadoop@chenc03:~/ The authenticity of host 'chenc03 (10.0.0.63)' can't be established. Warning: Permanently added 'chenc03,10.0.0.63' (RSA) to the list of known hosts. hadoop@chenc03's password: /home/hadoop/hadoop-3.13: No such file or directory[hadoop@ chenc01 ~]$ cd /home/hadoop/hadoop-3.1.3/bin/ [hadoop@ chenc01 bin]$ ./hdfs namenode -format 2020-03-04 16:05:17,247 INFO namenode.FSImageFormatProtobuf: Image file /home/hadoop/dfs/name/current/fsimage.ckpt_0000000000000000000 of size 393 bytes saved in 0 seconds . 2020-03-04 16:05:17,268 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0 2020-03-04 16:05:17,277 INFO namenode.FSImage: FSImageSaver clean checkpoint: txid = 0 when meet shutdown. 2020-03-04 16:05:17,278 INFO namenode.NameNode: SHUTDOWN_MSG: / SHUTDOWN_MSG: Shutting down NameNode at xinsz08-1/192.168.1.18
  • 查看是否生成相应的内容
[hadoop@ chenc01 ~]$ cd /home/hadoop/dfs/ [hadoop@ chenc01 dfs]$ ls data name [hadoop@ chenc01 dfs]$ tree . ├── data └── name └── current ├── fsimage_0000000000000000000 ├── fsimage_0000000000000000000.md5 ├── seen_txid └── VERSION 3 directories, 4 files
  • 配置免密要登录
[hadoop@ chenc01 dfs]$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/hadoop/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/hadoop/.ssh/id_rsa.


推荐阅读