Wednesday, May 7, 2014

MapR commands - 6 Direct Access NFS

  • Mount NFS

List the NFS shares exported on the server:
[gpadmin@smdw ~]$ /usr/sbin/showmount  -e mdw
Export list for mdw:
/mapr               *
/mapr/mynameCluster *
Using root to create the directory:
mkdir /mapr
Mount:
mount mdw:/mapr /mapr
Change /etc/fstab:
mdw:/mapr /mapr nfs rw 0 0
  • Setting ChunkSize and Compression for a Volume

[root@smdw mynamevol]# more .dfs_attributes
# lines beginning with # are treated as comments
Compression=true
ChunkSize=268435456

[root@smdw mynamevol]# hadoop mfs -setchunksize 13107000 /mynamevol
setchunksize: chunksize should be a multiple of 64K
[root@smdw mynamevol]# hadoop mfs -setchunksize 13107200 /mynamevol
  • Setting extension of compression file

maprcli config save -values {"mapr.fs.nocompression":"bz2,gz,tgz,tbz2,zip,z,Z,mp3,jpg,jpeg,mpg,mpeg,avi,gif,png"}
[gpadmin@mdw myname]$ maprcli config load -keys mapr.fs.nocompression
mapr.fs.nocompression                                      
bz2,gz,tgz,tbz2,zip,z,Z,mp3,jpg,jpeg,mpg,mpeg,avi,gif,png

No comments:

Post a Comment

Popular Posts