HDFSNFS gateway operations

Source: Internet
Author: User
In the previous article, the cluster runs in test [1-4]. Set the nfsserver user group to root and the host to test1 (the same as namenode ). The version is CDH5.2.1 (Hadoop2.5.0 ). Vimetchadoopconfcore-site.xmlpropertynamehadoop.proxyuser.root.groupsnamevaluerootvaluepropertypropertyname

In the previous article, the cluster runs in test [1-4]. Set the nfsserver user group to root and the host to test1 (the same as namenode ). The version is CDH5.2.1 (Hadoop 2.5.0 ). Vim/etc/hadoop/conf/core-site.xmlproperty namehadoop. proxyuser. root. groups/name valueroot/value/propertyproperty name

In the previous article, the cluster runs in test [1-4]. Set the nfsserver user group to root and the host to test1 (the same as namenode ). The version is CDH5.2.1 (Hadoop 2.5.0 ).

Vim/etc/hadoop/conf/core-site.xml
   
  
   
Hadoop. proxyuser. root. groups
    
  
   
Root
  
 
   
  
   
Hadoop. proxyuser. root. hosts
    
  
   
Test1
  
 # Only allow all users to read-only:
   
  
   
Nfs. exports. allowed. hosts
    
  
   
* Ro
  
 # Stop native service nfs stopservice rpcbind stop # Start NFS service 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: 111su-hdfshdfs nfs3 # view service status 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 # view the export directory showmount-e test1Export list for test1: /* # Mount directory mkdir/mnt/hdfsmount. nfs test1: // mnt/hdfs-o nolockhdfs dfs-appendToFile-/user/hive/hello.txt hellocat/mnt/hdfs/user/hive/hello.txt hello

This article from: http://debugo.com, original address: http://debugo.com/hdfs-nfsop/, thanks to the original author to share.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.