hadoop nfs网关
来源:互联网 发布:北京阿里云招聘 编辑:程序博客网 时间:2024/05/01 04:19
hadoop nfs网关
1. 在hadoop下的core-site.xml,加入
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
<description>允许所有用户组用户代理</description>
</property>
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>localhost</value>
<description>允许挂载的主机域名</description>
</property>
2. 在hadoop下的hdfs-site.xml加入
<property>
<name>nfs.dump.dir</name>
<value>/tmp/.hdfs-nfs</value>
</property>
<property>
<name>nfs.rtmax</name>
<value>1048576</value>
<description>This is the maximum size in bytes of a READ request supported by the NFS gateway. If you change this, make sure you also upda
te the nfs mount's rsize(add rsize= # of bytes to the mount directive).</description>
</property>
<property>
<name>nfs.wtmax</name>
<value>65536</value>
<description>This is the maximum size in bytes of a WRITE request supported by the NFS gateway. If you change this, make sure you also upd
ate the nfs mount's wsize(add wsize= # of bytes to the mount directive).</description>
</property>
<property>
<name>nfs.exports.allowed.hosts</name>
<value>* rw</value>
<description>允许所有主机对文件有rw权限</description>
</property>
3.重启hadoop
/etc/init.d/hadoop-hdfs-namenode restart
/etc/init.d/hadoop-hdfs-datanode restart
4.关闭系统nfs、rpcbind
service nfs stop
service rpcbind stop
5.启动hadoop的portmap、nfs3
hdfs portmap start
hdfs nfs3 start
6. 挂载
mount -t nfs -o vers=3,proto=tcp,nolock,noacl $server:/ $mount_point
7.卸载
umount $mount_point
1. 在hadoop下的core-site.xml,加入
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
<description>允许所有用户组用户代理</description>
</property>
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>localhost</value>
<description>允许挂载的主机域名</description>
</property>
2. 在hadoop下的hdfs-site.xml加入
<property>
<name>nfs.dump.dir</name>
<value>/tmp/.hdfs-nfs</value>
</property>
<property>
<name>nfs.rtmax</name>
<value>1048576</value>
<description>This is the maximum size in bytes of a READ request supported by the NFS gateway. If you change this, make sure you also upda
te the nfs mount's rsize(add rsize= # of bytes to the mount directive).</description>
</property>
<property>
<name>nfs.wtmax</name>
<value>65536</value>
<description>This is the maximum size in bytes of a WRITE request supported by the NFS gateway. If you change this, make sure you also upd
ate the nfs mount's wsize(add wsize= # of bytes to the mount directive).</description>
</property>
<property>
<name>nfs.exports.allowed.hosts</name>
<value>* rw</value>
<description>允许所有主机对文件有rw权限</description>
</property>
3.重启hadoop
/etc/init.d/hadoop-hdfs-namenode restart
/etc/init.d/hadoop-hdfs-datanode restart
4.关闭系统nfs、rpcbind
service nfs stop
service rpcbind stop
5.启动hadoop的portmap、nfs3
hdfs portmap start
hdfs nfs3 start
6. 挂载
mount -t nfs -o vers=3,proto=tcp,nolock,noacl $server:/ $mount_point
7.卸载
umount $mount_point
0 0
- hadoop nfs网关
- hadoop 2.7 安装nfs
- Hadoop&Hbase 备份方案--NFS
- Hadoop&Hbase 备份方案--NFS
- hadoop+nfs+zookeeper搭建集群
- 启动hadoop2.0中nfs网关服务的步骤
- 在NFS上的Hadoop配置
- 在NFS上的Hadoop配置
- hadoop学习笔记之-NFS配置
- hadoop HA部署(NFS方案)
- hadoop学习笔记之-NFS配置
- hadoop hdfs high availablity with nfs
- hadoop集群搭建之NFS服务
- Hadoop HDFS NFS GateWay部署深入详解
- 网关
- 网关
- 网关
- 网关
- CSS开发规范
- 做网页时遇到的一些问题和解决方法
- MATLAB实现控制系统的根轨迹分析
- 【Python专题】python入门之一:搭建开发环境
- 秒懂!何凯明的深度残差网络PPT是这样的|ICML2016 tutorial
- hadoop nfs网关
- 动态规划学习【一】
- linux下home目录迁移
- KMP
- 计蒜客 无脑博士 bfs
- matlab极限导数积分初步
- jvm内存调优及原理的学习笔记
- 好好学习数据结构
- git hook实现代码自动部署