手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Hadoop企业级集群架构 - NFS安装

[日期:2015-11-16] 来源:Linux社区  作者:chujq [字体:大 中 小]

Hadoop企业级集群架构 - NFS安装

服务器地址:192.168.1.230  

安装NFS软件 

检查nfs是否安装完成

rpm -qa | grep nfs

检查rpcbind和nfs 服务

systemctl list-unit-files | grep "nfs"

systemctl list-unit-files | grep "rpcbind"

systemctl enable nfs-server.service

systemctl enable rpcbind.service

systemctl list-unit-files | grep -E "rpcbind.service|nfs-server.service"

检查 NFS,RPC状态

service rpcbind status

service rpcbind status

建立运行帐户:

groupadd grid

useradd -m -s /bin/bash -g grid grid

passwd grid

<grid123>

修改/ecc/expots

添加:

/home/grid *(rw,sync,no_root_squash)

重启rpcbind,nfs

systemctl restart rpcbind

systemctl restart nfs

验证:

showmount -e 192.168.1.230

在节点上挂载共享目录

NSF挂载Errror "wrong fs type,bad option

解决办法:

yum -y install nfs-utils

mount -t nfs 192.168.1.230:/home/grid /nfs_share/

查看mount

mount

设置开机自动挂载

vi /etc/fstab

添加如下一行:

192.168.1.230:/home/grid /nfs_share nfs defaults 0 0

在NFS服务器及各节点配置SSH

将各节点的密钥加到NFS服务器上

ssh h1.hadoop.com cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

ssh h2.hadoop.com cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

ssh h3.hadoop.com cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

id_rsa.pub

在各节点创建共享目录文件authorized_keys的软连接

在各节点上安装

yum -y install nfs-utils

mkdir /nfs_share

mount -t nfs 192.168.1.230:/home/grid /nfs_share/

ln -s /nfs_share/.ssh/authorized_keys ~/.ssh/authorized_keys

下面关于Hadoop的文章您也可能喜欢,不妨看看:

Ubuntu14.04下Hadoop2.4.1单机/伪分布式安装配置教程  http://www.linuxidc.com/Linux/2015-02/113487.htm

CentOS安装和配置Hadoop2.2.0  http://www.linuxidc.com/Linux/2014-01/94685.htm

Ubuntu 13.04上搭建Hadoop环境 http://www.linuxidc.com/Linux/2013-06/86106.htm

Ubuntu 12.10 +Hadoop 1.2.1版本集群配置 http://www.linuxidc.com/Linux/2013-09/90600.htm

Ubuntu上搭建Hadoop环境(单机模式+伪分布模式) http://www.linuxidc.com/Linux/2013-01/77681.htm

Ubuntu下Hadoop环境的配置 http://www.linuxidc.com/Linux/2012-11/74539.htm

单机版搭建Hadoop环境图文教程详解 http://www.linuxidc.com/Linux/2012-02/53927.htm

更多Hadoop相关信息见Hadoop 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=13

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-11/125227.htm

linux
相关资讯       NFS安装  Hadoop集群架构 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款