search
HomeDatabaseMysql TutorialHDFS NFS网关操作实战
HDFS NFS网关操作实战Jun 07, 2016 pm 04:41 PM
hdfsnfsActual combatoperategatewaycluster

续上一篇译文,集群运行在test[1-4],设置nfsserver的用户组是root,host为test1(同namenode)。版本为CDH5.2.1(Hadoop 2.5.0)。 vim /etc/hadoop/conf/core-site.xmlproperty namehadoop.proxyuser.root.groups/name valueroot/value/propertyproperty name

续上一篇译文,集群运行在test[1-4],设置nfsserver的用户组是root,host为test1(同namenode)。版本为CDH5.2.1(Hadoop 2.5.0)。

vim /etc/hadoop/conf/core-site.xml
<property>
  <name>hadoop.proxyuser.root.groups</name>
  <value>root</value>
</property>
<property>
  <name>hadoop.proxyuser.root.hosts</name>
  <value>test1</value>
</property>
#只允许所有用户只读:
<property>
  <name>nfs.exports.allowed.hosts</name>
  <value>* ro</value>
</property>
#停止原生的服务
service nfs stop
service rpcbind stop
#启动NFS服务
nohup hdfs portmap &
...
14/12/24 09:45:13 INFO portmap.Portmap: Portmap server started at tcp:///0.0.0.0:111, udp:///0.0.0.0:111
su - hdfs
hdfs nfs3
#查看服务状态
rpcinfo -p test1
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100005    1   udp   4242  mountd
    100005    2   udp   4242  mountd
    100005    3   udp   4242  mountd
    100005    1   tcp   4242  mountd
    100005    2   tcp   4242  mountd
    100005    3   tcp   4242  mountd
    100003    3   tcp   2049  nfs
#查看export目录
showmount -e test1
Export list for test1:
/ *
#挂载目录
mkdir /mnt/hdfs
mount.nfs test1:/ /mnt/hdfs -o nolock
hdfs dfs -appendToFile - /user/hive/hello.txt
hello
cat /mnt/hdfs/user/hive/hello.txt
hello
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
网关Ping不通怎么回事?Ping不通什么原因?网关Ping不通怎么回事?Ping不通什么原因?Mar 13, 2024 pm 03:40 PM

  网络ping不通,是什么回事?其实这是个非常常见的问题了,主要分为两种情况,同网段ping不通和不同网段ping不通,下面就来看看详细内容吧。  同网段ping不通的原因ping命令无法连接的情况通常有两种:一是在同一网段内无法ping通的IP地址,另一种是在不同网段内无法ping通的IP地址。这两种情况具有不同的解决方法。首先,我们来讨论在同一网段内ping不通的情况。  一、同网段ping不通,结果是“无法访问目标主机”  目的ip和源ip是同一网段的,ping的结果是&l

hdfs命令是什么hdfs命令是什么Mar 14, 2023 pm 03:51 PM

hdfs命令是指Hadoop hdfs系统的命令,其常用命令包括:1、ls命令;2、cat命令;3、mkdir命令;4、rm命令;5、put命令;6、cp命令;7、copyFromLocal命令;8、get命令;9、copyToLocal命令;10、mv命令等。

网关和路由器哪个网速快网关和路由器哪个网速快Jun 19, 2023 pm 03:06 PM

网关WiFi和路由器WiFi的区别主要体现在功能、支持上网的终端数量、WiFi信号覆盖范围这三个方面。网关WiFi是光猫和路由器的结合体,功能更多,但支持上网设备数量较少,WiFi信号覆盖范围也不如路由器WiFi。

修改Linux系统的默认网关的方法是什么?修改Linux系统的默认网关的方法是什么?Jan 08, 2024 pm 02:14 PM

默认网关就是路由器的IP地址。一般来说,操作系统会在路由器的安装过程中自动检测网关,但是你也可能需要手动更改它。尤其是当网络中有多个网络适配器或路由器时,往往需要手动添加或更改网关,该怎么修改呢?下面我们就来看看详细的教程。一、使用终端1、打开终端。你可以从边栏打开终端程序,或按下Ctrl+Alt+T组合键来打开它。2、浏览当前默认网关信息。你可以输入route,按下Enter,来查看当前的默认网关设置。“默认”旁边的地址会显示当前默认的网关地址,它被分配到的界面则显示在桌面右侧。

PHP编程中有哪些常见的Behat操作?PHP编程中有哪些常见的Behat操作?Jun 12, 2023 am 08:19 AM

PHP编程中有哪些常见的Behat操作?Behat是一个行为驱动开发(BDD)工具,允许测试人员和开发人员在自然语言中撰写测试用例,并将这些用例转化为可执行的代码。它支持PHP语言,并提供了丰富的库和功能,可以实现多种常见的测试操作。下面列举了PHP编程中常见的Behat操作。前置条件(Background)在编写测试用例时,有时候会有一些公共的前置条件需要

linux NFS是什么及怎么用linux NFS是什么及怎么用May 12, 2023 pm 04:13 PM

nfs,是networkfilesystem的简写,即网络文件系统。网络文件系统是freebsd支持的文件系统中的一种,也被称为nfs.nfs允许一个系统在网络上与他人共享目录和文件。通过使用nfs,用户和程序可以像访问本地文件一样访问远端系统上的文件。nfs基于rpc协议,nfs本身只是起到共享的作用而和客户端进行连接和数据传输则是rpc协议的功能nfs主要通过两个daemon来进行控制:1.rpc.nfsd-------它用来控制客户端是否可以连接到,nfsserver2.rpc.mount

网关怎么设置网关怎么设置Jan 05, 2024 pm 01:56 PM

设置网关的一般步骤是:1、首先确定要设置的设备的IP地址和子网掩码;2、打开设备的网络设置或网络配置页面;3、在网络设置或网络配置页面上,找到网关设置选项;4、输入要设置的网关的IP地址;5、保存设置并重新启动设备即可。

linux下NFS安装配置的方法是什么linux下NFS安装配置的方法是什么May 19, 2023 pm 07:46 PM

1,服务器端软件:安装nfs-utils和portmap(rpcbind)nfs-utils:提供rpc.nfsd及rpc.mountd这两个nfsdaemons的套件portmap:nfs其实可以被看作是一个rpcserverprogram,而要启动一个rpcserverprogram,都要做好port的对应工作,而且这样的任务就是由portmap来完成的。通俗的说portmap就是用来做port的mapping的。nfs需要启动的daemonspc.nfsd:主要复杂登陆权限检测等必须por

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.