摘要: 存储文件系统元数据,例如:文件目录结构,不同文件的分块情况,每块存储在那个节点,权限等 这些元数据全部存储在内存中,所以,namenode要求内存比较大 hdfs在存文件的时候会按照块存储,每一块默认128M 如果存储的文件很小,他在hdfs里也会占用128M,所以hdfs适合存储大块的数据 如果文 阅读全文
posted @ 2018-11-10 11:52 413Xiaol 阅读(151) 评论(0) 推荐(0)
摘要: 1.生成自己的公钥和私钥 ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa 进入~/.ssh目录看多了两个文件:id_rsa id_rsa.pub 其中一个是公钥一个是私钥 2.把自己的公钥发送到目标主机上 ssh-copy-id 192.168.0.105 这时候需 阅读全文
posted @ 2018-11-10 10:55 413Xiaol 阅读(776) 评论(0) 推荐(0)
摘要: 1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld 开机启用 : 阅读全文
posted @ 2018-11-10 10:14 413Xiaol 阅读(2415) 评论(0) 推荐(0)
摘要: 1.配置core-site.xml(每个节点上都要配置) 路径: /usr/local/hadoop-2.7.3/etc/hadoop/core-site.xml 配置项1: name: fs.defaultFS value: hdfs://master的地址:端口 作用: 告诉所有机器master 阅读全文
posted @ 2018-11-10 09:33 413Xiaol 阅读(326) 评论(0) 推荐(0)
摘要: hostnamectl set-hostname xiaol 阅读全文
posted @ 2018-11-10 00:36 413Xiaol 阅读(189) 评论(0) 推荐(0)