MapR CLI 101 Tutorial

This is a tutorial of the MapR Enterprise Grade distribution of Hadoop Command Line Interface.

Before we start, just in case let's refresh the MapR Architecture.

MapR Architecture

The MapR Architecture consists of the following services or daemons

  • CLDB (Containers Location Data Base)
  • MapR Fileserver
  • JobTracker
  • TaskTracker
  • Zookeeper
  • NFS
  • Webserver
  • Warden

Warden is a daemon that runs on all the cluster nodes to manage and monitor the other services running in a cluster node. It's like a watchdog. The warden will not start any services unless Zookeeper is reachable and more than half of the configured Zookeeper nodes are alive.

Cluster Management
  • Bringing up the cluster
    1. Start Zookeeper on all the nodes where it is installed, by running the command
      root@ip-10-245-12-77:~# /etc/init.d/mapr-zookeeper start
    2. On the nodes running the CLDB and Webserver service (mapr-webserver), start the warden by running the command
      root@ip-10-245-12-77:~# /etc/init.d/mapr-warden start
  • Stopping the cluster
    1. Determine which nodes are running the NFS service
      root@ip-10-245-12-77:~# maprcli node list -filter "[rp==/*]and[svc==nfs]" -columns id,h,hn,svc,rp
      id                   racktopo                                                         service                                              hostname                                      health  ip
      8707346954164511835  /data/default-rack/ip-10-244-129-15.us-west-2.compute.internal   fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-244-129-15.us-west-2.compute.internal   0       10.244.129.15
      453989218842577487   /data/default-rack/ip-10-244-131-141.us-west-2.compute.internal  fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-244-131-141.us-west-2.compute.internal  0       10.244.131.141
      2892638075826172151  /data/default-rack/ip-10-244-164-169.us-west-2.compute.internal  fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-244-164-169.us-west-2.compute.internal  0       10.244.164.169
      8833235307193396272  /data/default-rack/ip-10-244-165-232.us-west-2.compute.internal  webserver,cldb,fileserver,nfs,hoststats              ip-10-244-165-232.us-west-2.compute.internal  0       10.244.165.232
      6559272699074389504  /data/default-rack/ip-10-244-45-60.us-west-2.compute.internal    fileserver,tasktracker,hbmaster,nfs,hoststats        ip-10-244-45-60.us-west-2.compute.internal    0       10.244.45.60
      9137989191756045555  /data/default-rack/ip-10-245-12-77.us-west-2.compute.internal    webserver,cldb,fileserver,nfs,hoststats              ip-10-245-12-77.us-west-2.compute.internal    0       10.245.12.77
      7791110135751846418  /data/default-rack/ip-10-245-14-103.us-west-2.compute.internal   fileserver,tasktracker,hbmaster,nfs,hoststats        ip-10-245-14-103.us-west-2.compute.internal   0       10.245.14.103
      1152291012558508871  /data/default-rack/ip-10-245-7-200.us-west-2.compute.internal    fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-245-7-200.us-west-2.compute.internal    0       10.245.7.200
      7482334955545014043  /data/default-rack/ip-10-245-8-49.us-west-2.compute.internal     fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-245-8-49.us-west-2.compute.internal     0       10.245.8.49
      4127302514082488703  /data/default-rack/ip-10-245-8-52.us-west-2.compute.internal     webserver,cldb,fileserver,nfs,hoststats,jobtracker   ip-10-245-8-52.us-west-2.compute.internal     0       10.245.8.52
      root@ip-10-245-12-77:~#
    2. Determine which nodes are running the CLDB service
      root@ip-10-245-12-77:~# maprcli node list -filter "[rp==/*]and[svc==cldb]" -columns id,h,hn,svc,rp
      id                   racktopo                                                         service                                             hostname                                      health  ip
      8833235307193396272  /data/default-rack/ip-10-244-165-232.us-west-2.compute.internal  webserver,cldb,fileserver,nfs,hoststats             ip-10-244-165-232.us-west-2.compute.internal  0       10.244.165.232
      9137989191756045555  /data/default-rack/ip-10-245-12-77.us-west-2.compute.internal    webserver,cldb,fileserver,nfs,hoststats             ip-10-245-12-77.us-west-2.compute.internal    0       10.245.12.77
      4127302514082488703  /data/default-rack/ip-10-245-8-52.us-west-2.compute.internal     webserver,cldb,fileserver,nfs,hoststats,jobtracker  ip-10-245-8-52.us-west-2.compute.internal     0       10.245.8.52
      root@ip-10-245-12-77:~#
    3. List all non-CLDB nodes
      root@ip-10-245-12-77:~# maprcli node list -filter "[rp==/*]and[svc!=cldb]" -columns id,h,hn,svc,rp
      id                   racktopo                                                         service                                              hostname                                      health  ip
      8707346954164511835  /data/default-rack/ip-10-244-129-15.us-west-2.compute.internal   fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-244-129-15.us-west-2.compute.internal   0       10.244.129.15
      453989218842577487   /data/default-rack/ip-10-244-131-141.us-west-2.compute.internal  fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-244-131-141.us-west-2.compute.internal  0       10.244.131.141
      2892638075826172151  /data/default-rack/ip-10-244-164-169.us-west-2.compute.internal  fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-244-164-169.us-west-2.compute.internal  0       10.244.164.169
      6559272699074389504  /data/default-rack/ip-10-244-45-60.us-west-2.compute.internal    fileserver,tasktracker,hbmaster,nfs,hoststats        ip-10-244-45-60.us-west-2.compute.internal    0       10.244.45.60
      7791110135751846418  /data/default-rack/ip-10-245-14-103.us-west-2.compute.internal   fileserver,tasktracker,hbmaster,nfs,hoststats        ip-10-245-14-103.us-west-2.compute.internal   0       10.245.14.103
      1152291012558508871  /data/default-rack/ip-10-245-7-200.us-west-2.compute.internal    fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-245-7-200.us-west-2.compute.internal    0       10.245.7.200
      7482334955545014043  /data/default-rack/ip-10-245-8-49.us-west-2.compute.internal     fileserver,tasktracker,hbregionserver,nfs,hoststats  ip-10-245-8-49.us-west-2.compute.internal     0       10.245.8.49
      root@ip-10-245-12-77:~#
    4. Shutdown all NFS instances
      root@ip-10-245-12-77:~# maprcli node services -nfs stop -nodes ip-10-244-129-15.us-west-2.compute.internal ip-10-244-131-141.us-west-2.compute.internal ip-10-244-164-169.us-west-2.compute.internal ip-10-244-165-232.us-west-2.compute.internal ip-10-244-45-60.us-west-2.compute.internal ip-10-245-12-77.us-west-2.compute.internal ip-10-245-14-103.us-west-2.compute.internal ip-10-245-7-200.us-west-2.compute.internal ip-10-245-8-49.us-west-2.compute.internal ip-10-245-8-52.us-west-2.compute.internal
      root@ip-10-245-12-77:~#
    5. Stop the warden in each CLDB node
      root@ip-10-245-12-77:~# /etc/init.d/mapr-warden stop
    6. Stop the warden in the remaining cluster nodes
      root@ip-10-244-45-60:~# /etc/init.d/mapr-warden stop
    7. Stop the Zookeeper in each Zookeeper node
      root@ip-10-245-12-77:~# /etc/init.d/mapr-zookeeper stop
Restart Webserver (mapr-webserver)
root@ip-10-245-12-77:~# /opt/mapr/adminuiapp/webserver stop

stopping adminuiapp server
root@ip-10-245-12-77:~#


root@ip-10-245-12-77:~# /opt/mapr/adminuiapp/webserver start

Starting adminuiapp server, logging to /opt/mapr/logs/adminuiapp.log
root@ip-10-245-12-77:~#
Restarting NFS Service
root@ip-10-245-12-77:~# maprcli node services -nfs start -nodes ip-10-244-129-15.us-west-2.compute.internal ip-10-244-131-141.us-west-2.compute.internal ip-10-244-164-169.us-west-2.compute.internal ip-10-244-165-232.us-west-2.compute.internal ip-10-244-45-60.us-west-2.compute.internal ip-10-245-12-77.us-west-2.compute.internal ip-10-245-14-103.us-west-2.compute.internal ip-10-245-7-200.us-west-2.compute.internal ip-10-245-8-49.us-west-2.compute.internal ip-10-245-8-52.us-west-2.compute.internal
root@ip-10-245-12-77:~#
Restart Services (TaskTracker)
root@ip-10-245-12-77:~# maprcli node services -nodes ip-10-244-129-15.us-west-2.compute.internal -tasktracker stop
root@ip-10-245-12-77:~# maprcli node services -nodes ip-10-244-129-15.us-west-2.compute.internal -tasktracker start
root@ip-10-245-12-77:~#
Give full permission to MapR administrator user
root@ip-10-245-12-77:~# id mapr
uid=2147483632(mapr) gid=2147483632(mapr) groups=2147483632(mapr),42(shadow)
root@ip-10-245-12-77:~# maprcli acl edit -type cluster -user mapr:fc
root@ip-10-245-12-77:~#
Alarms Email Notifications Setup
root@ip-10-245-12-77:~# maprcli alarm config save -values "AE_ALARM_AEQUOTA_EXCEEDED,1,Carlos.Morillo@maprtech.com"
root@ip-10-245-12-77:~# maprcli alarm config save -values "NODE_ALARM_CORE_PRESENT,1,Carlos.Morillo@maprtech.com"
root@ip-10-245-12-77:~#
Listing Alarms
root@ip-10-245-12-77:~# maprcli alarm list -type cluster
root@ip-10-245-12-77:~# maprcli alarm list -type node
root@ip-10-245-12-77:~#
Listing Nodes
root@ip-10-245-12-77:~# maprcli node list -columns id,h,hn,br,da,dtotal,dused,davail,fs-heartbeat
id                   davail  dused  bytesReceived  hostname                                      dtotal  health  fs-heartbeat  ip
8707346954164511835  116     170    1741           ip-10-244-129-15.us-west-2.compute.internal   287     0       0             10.244.129.15
453989218842577487   38      249    2465           ip-10-244-131-141.us-west-2.compute.internal  287     0       0             10.244.131.141
2892638075826172151  106     180    764            ip-10-244-164-169.us-west-2.compute.internal  287     0       0             10.244.164.169
8833235307193396272  109     173    2168           ip-10-244-165-232.us-west-2.compute.internal  283     0       0             10.244.165.232
6559272699074389504  99      187    2605           ip-10-244-45-60.us-west-2.compute.internal    287     0       0             10.244.45.60
9137989191756045555  107     175    1606           ip-10-245-12-77.us-west-2.compute.internal    283     0       0             10.245.12.77
7791110135751846418  39      247    1627           ip-10-245-14-103.us-west-2.compute.internal   287     0       0             10.245.14.103
1152291012558508871  101     185    764            ip-10-245-7-200.us-west-2.compute.internal    287     0       0             10.245.7.200
7482334955545014043  39      248    904            ip-10-245-8-49.us-west-2.compute.internal     287     0       0             10.245.8.49
4127302514082488703  86      197    19685          ip-10-245-8-52.us-west-2.compute.internal     283     0       0             10.245.8.52
root@ip-10-245-12-77:~# maprcli node list -columns id,br,fs-heartbeat,jt-heartbeat
id                   bytesReceived  hostname                                      jt-heartbeat  fs-heartbeat  ip
8707346954164511835  832            ip-10-244-129-15.us-west-2.compute.internal   2             0             10.244.129.15
453989218842577487   1897           ip-10-244-131-141.us-west-2.compute.internal  2             0             10.244.131.141
2892638075826172151  1749           ip-10-244-164-169.us-west-2.compute.internal  2             0             10.244.164.169
8833235307193396272  1521           ip-10-244-165-232.us-west-2.compute.internal  2             0             10.244.165.232
6559272699074389504  1812           ip-10-244-45-60.us-west-2.compute.internal    2             0             10.244.45.60
9137989191756045555  1038           ip-10-245-12-77.us-west-2.compute.internal    2             0             10.245.12.77
7791110135751846418  1084           ip-10-245-14-103.us-west-2.compute.internal   2             0             10.245.14.103
1152291012558508871  836            ip-10-245-7-200.us-west-2.compute.internal    2             0             10.245.7.200
7482334955545014043  1869           ip-10-245-8-49.us-west-2.compute.internal     2             0             10.245.8.49
4127302514082488703  19243          ip-10-245-8-52.us-west-2.compute.internal     2             0             10.245.8.52
root@ip-10-245-12-77:~#

Determining which nodes are running the Zookeeper service

Note that there is only one Zookeeper leader and the remaining Zookeeper nodes are followers.

root@ip-10-245-12-77:~/installer# parallel-ssh -Ph ./hostnames /etc/init.d/mapr-zookeeper qstatus
[1] 16:11:04 [FAILURE] ip-10-244-45-60.us-west-2.compute.internal Exited with error code 127
[2] 16:11:04 [FAILURE] ip-10-245-7-200.us-west-2.compute.internal Exited with error code 127
[3] 16:11:04 [FAILURE] ip-10-245-14-103.us-west-2.compute.internal Exited with error code 127
[4] 16:11:04 [FAILURE] ip-10-244-131-141.us-west-2.compute.internal Exited with error code 127
[5] 16:11:04 [FAILURE] ip-10-244-164-169.us-west-2.compute.internal Exited with error code 127
[6] 16:11:04 [FAILURE] ip-10-244-129-15.us-west-2.compute.internal Exited with error code 127
[7] 16:11:04 [FAILURE] ip-10-245-8-49.us-west-2.compute.internal Exited with error code 127
ip-10-244-165-232.us-west-2.compute.internal: Mode: leader
[8] 16:11:04 [SUCCESS] ip-10-244-165-232.us-west-2.compute.internal
ip-10-245-8-52.us-west-2.compute.internal: Mode: follower
[9] 16:11:04 [SUCCESS] ip-10-245-8-52.us-west-2.compute.internal
ip-10-245-12-77.us-west-2.compute.internal: Mode: follower
[10] 16:11:04 [SUCCESS] ip-10-245-12-77.us-west-2.compute.internal
root@ip-10-245-12-77:~/installer#
Adding a node (in this cluster the nodes running the Zookeeper service are also running the CLDB service)
root@newnode:~# /opt/mapr/server/configure.sh -Z ip-10-244-165-232.us-west-2.compute.internal,ip-10-245-12-77.us-west-2.compute.internal,ip-10-245-8-52.us-west-2.compute.internal -C ip-10-244-165-232.us-west-2.compute.internal,ip-10-245-12-77.us-west-2.compute.internal,ip-10-245-8-52.us-west-2.compute.internal
root@newnode:~# /opt/mapr/server/disksetup -F /tmp/disks.txt
root@newnode:~# /etc/init.d/mapr-warden start

Volumes

Creating a Volume
root@ip-10-245-12-77:~# maprcli volume create -name carlosvolume -path /carlosvolume -quota 1G -advisoryquota 200M
root@ip-10-245-12-77:~#
Creating a Mirror Volume
root@ip-10-245-12-77:~# maprcli volume create -name carlosvolume_mirror -source carlosvolume@my.cluster.com -path /carlosvolume_mirror -type 1
root@ip-10-245-12-77:~#
Listing Volumes
root@ip-10-245-12-77:~# maprcli volume list -columns volumeid,volumetype,volumename,mountdir,mounted,aename,quota,used,totalused,actualreplication,rackpath
quota  mountdir                                                              actualreplication  volumeid   aename  rackpath  used    mounted  volumename                                                       volumetype  totalused  aetype
1024   /carlosvolume                                                         ...                48119723   root    /data     0       1        carlosvolume                                                     0           0          0
0      /carlosvolume_mirror                                                  ...                219729268  root    /data     0       1        carlosvolume_mirror                                              1           0          0
0      /user/mapr                                                            ...                161101264  mapr    /data     597899  1        mapr                                                             0           597899     0
0                                                                            ...                1          mapr    /data     0       0        mapr.cldb.internal                                               0           0          0
0      /                                                                     ...                104597444  mapr    /data     0       1        mapr.cluster.root                                                0           0          0
0      /var/mapr/configuration                                               ...                121877052  mapr    /data     0       1        mapr.configuration                                               0           0          0
0      /hbase                                                                ...                234741384  mapr    /data     0       1        mapr.hbase                                                       0           0          0
0      /var/mapr/local/ip-10-244-129-15.us-west-2.compute.internal/logs      ...                206969086  mapr    /data     5       1        mapr.ip-10-244-129-15.us-west-2.compute.internal.local.logs      0           5          0
0      /var/mapr/local/ip-10-244-129-15.us-west-2.compute.internal/mapred    ...                243798871  mapr    /data     1       1        mapr.ip-10-244-129-15.us-west-2.compute.internal.local.mapred    0           1          0
0      /var/mapr/local/ip-10-244-129-15.us-west-2.compute.internal/metrics   ...                69263110   mapr    /data     96      1        mapr.ip-10-244-129-15.us-west-2.compute.internal.local.metrics   0           96         0
0      /var/mapr/local/ip-10-244-131-141.us-west-2.compute.internal/logs     ...                23205174   mapr    /data     2       1        mapr.ip-10-244-131-141.us-west-2.compute.internal.local.logs     0           2          0
0      /var/mapr/local/ip-10-244-131-141.us-west-2.compute.internal/mapred   ...                105260920  mapr    /data     1       1        mapr.ip-10-244-131-141.us-west-2.compute.internal.local.mapred   0           1          0
0      /var/mapr/local/ip-10-244-131-141.us-west-2.compute.internal/metrics  ...                19860697   mapr    /data     97      1        mapr.ip-10-244-131-141.us-west-2.compute.internal.local.metrics  0           97         0
0      /var/mapr/local/ip-10-244-164-169.us-west-2.compute.internal/logs     ...                212161365  mapr    /data     5       1        mapr.ip-10-244-164-169.us-west-2.compute.internal.local.logs     0           5          0
0      /var/mapr/local/ip-10-244-164-169.us-west-2.compute.internal/mapred   ...                162207671  mapr    /data     1       1        mapr.ip-10-244-164-169.us-west-2.compute.internal.local.mapred   0           1          0
0      /var/mapr/local/ip-10-244-164-169.us-west-2.compute.internal/metrics  ...                251008000  mapr    /data     99      1        mapr.ip-10-244-164-169.us-west-2.compute.internal.local.metrics  0           99         0
0      /var/mapr/local/ip-10-244-165-232.us-west-2.compute.internal/logs     ...                254163265  mapr    /data     0       1        mapr.ip-10-244-165-232.us-west-2.compute.internal.local.logs     0           0          0
0      /var/mapr/local/ip-10-244-165-232.us-west-2.compute.internal/metrics  ...                252158411  mapr    /data     97      1        mapr.ip-10-244-165-232.us-west-2.compute.internal.local.metrics  0           97         0
0      /var/mapr/local/ip-10-244-45-60.us-west-2.compute.internal/logs       ...                185745772  mapr    /data     5       1        mapr.ip-10-244-45-60.us-west-2.compute.internal.local.logs       0           5          0
0      /var/mapr/local/ip-10-244-45-60.us-west-2.compute.internal/mapred     ...                213209407  mapr    /data     1       1        mapr.ip-10-244-45-60.us-west-2.compute.internal.local.mapred     0           1          0
0      /var/mapr/local/ip-10-244-45-60.us-west-2.compute.internal/metrics    ...                211996945  mapr    /data     97      1        mapr.ip-10-244-45-60.us-west-2.compute.internal.local.metrics    0           97         0
0      /var/mapr/local/ip-10-245-12-77.us-west-2.compute.internal/logs       ...                111775179  mapr    /data     0       1        mapr.ip-10-245-12-77.us-west-2.compute.internal.local.logs       0           0          0
0      /var/mapr/local/ip-10-245-12-77.us-west-2.compute.internal/metrics    ...                233931728  mapr    /data     97      1        mapr.ip-10-245-12-77.us-west-2.compute.internal.local.metrics    0           97         0
0      /var/mapr/local/ip-10-245-14-103.us-west-2.compute.internal/logs      ...                251542201  mapr    /data     2       1        mapr.ip-10-245-14-103.us-west-2.compute.internal.local.logs      0           2          0
0      /var/mapr/local/ip-10-245-14-103.us-west-2.compute.internal/mapred    ...                160008303  mapr    /data     1       1        mapr.ip-10-245-14-103.us-west-2.compute.internal.local.mapred    0           1          0
0      /var/mapr/local/ip-10-245-14-103.us-west-2.compute.internal/metrics   ...                73005604   mapr    /data     96      1        mapr.ip-10-245-14-103.us-west-2.compute.internal.local.metrics   0           96         0
0      /var/mapr/local/ip-10-245-7-200.us-west-2.compute.internal/logs       ...                66440508   mapr    /data     5       1        mapr.ip-10-245-7-200.us-west-2.compute.internal.local.logs       0           5          0
0      /var/mapr/local/ip-10-245-7-200.us-west-2.compute.internal/mapred     ...                87429862   mapr    /data     1       1        mapr.ip-10-245-7-200.us-west-2.compute.internal.local.mapred     0           1          0
0      /var/mapr/local/ip-10-245-7-200.us-west-2.compute.internal/metrics    ...                247661324  mapr    /data     97      1        mapr.ip-10-245-7-200.us-west-2.compute.internal.local.metrics    0           97         0
0      /var/mapr/local/ip-10-245-8-49.us-west-2.compute.internal/logs        ...                159900756  mapr    /data     5       1        mapr.ip-10-245-8-49.us-west-2.compute.internal.local.logs        0           5          0
0      /var/mapr/local/ip-10-245-8-49.us-west-2.compute.internal/mapred      ...                141734370  mapr    /data     1       1        mapr.ip-10-245-8-49.us-west-2.compute.internal.local.mapred      0           1          0
0      /var/mapr/local/ip-10-245-8-49.us-west-2.compute.internal/metrics     ...                59237315   mapr    /data     97      1        mapr.ip-10-245-8-49.us-west-2.compute.internal.local.metrics     0           97         0
0      /var/mapr/local/ip-10-245-8-52.us-west-2.compute.internal/logs        ...                69920939   mapr    /data     0       1        mapr.ip-10-245-8-52.us-west-2.compute.internal.local.logs        0           0          0
0      /var/mapr/local/ip-10-245-8-52.us-west-2.compute.internal/metrics     ...                26655377   mapr    /data     96      1        mapr.ip-10-245-8-52.us-west-2.compute.internal.local.metrics     0           96         0
0      /var/mapr/cluster/mapred/jobTracker                                   ...                162832045  mapr    /data     0       1        mapr.jobtracker.volume                                           0           0          0
0      /var/mapr/metrics                                                     ...                157755141  mapr    /data     0       1        mapr.metrics                                                     0           0          0
0      /var/mapr                                                             ...                129618546  mapr    /data     0       1        mapr.var                                                         0           0          0
0      /tera.in                                                              ...                225962280  root    /data     262621  1        tera.in                                                          0           262621     0
0      /tera.out                                                             ...                62181860   root    /data     1       1        tera.out                                                         0           1          0
0      /user                                                                 ...                250577554  mapr    /data     0       1        users                                                            0           0          0
root@ip-10-245-12-77:~#
Volume Properties
root@ip-10-245-12-77:~# maprcli volume info -name carlosvolume
numreplicas  schedulename  volumeid  rackpath  volumename    used  volumetype  aetype  creator  advisoryquota  snapshotcount  quota  mountdir       scheduleid  snapshotused  nameContainerSizeMB  replicationtype  maxinodesalarmthreshold  minreplicas  acl                                                                                  actualreplication  aename  needsGfsck  partlyOutOfTopology  mounted  logicalUsed  readonly  totalused
3                          48119723  /data     carlosvolume  0     0           0       root     200            0              1024   /carlosvolume  0           0             0                    high_throughput  0                        2            {"acl":{"Principal":"User root","Allowed actions":["dump","restore","m","d","fc"]}}  ...                root    false       0                    1        0            0         0
root@ip-10-245-12-77:~# maprcli volume info -output terse -name carlosvolume
qta   rp     ro  mrf  aqt  dsu  nfsck  id        ssu  arf  drf  tsu  on    miath  aen   sid  sn  acl                                                    mt  n             sc  poot  dcr              dlu  t  p              ncsmb  aet
1024  /data  0   2    200  0    false  48119723  0    ...  3    0    root  0      root  0        {"acl":{"User root":["dump","restore","m","d","fc"]}}  1   carlosvolume  0   0     high_throughput  0    0  /carlosvolume  0      0
root@ip-10-245-12-77:~#
Mount/Unmount Volume
root@ip-10-245-12-77:~# hadoop fs -ls maprfs:///
Found 7 items
drwxr-xr-x   - root root          0 2013-03-27 17:33 /carlosvolume
drwxrwxrwx   - root root          0 1970-01-01 00:00 /carlosvolume_mirror
drwxr-xr-x   - mapr mapr          6 2013-02-21 17:50 /hbase
drwxr-xr-x   - root root          1 2013-03-11 14:07 /tera.in
drwxr-xr-x   - root root          1 2013-03-11 14:54 /tera.out
drwxr-xr-x   - mapr mapr          1 2013-02-21 18:23 /user
drwxr-xr-x   - mapr mapr          1 2013-02-21 17:42 /var
root@ip-10-245-12-77:~# maprcli volume unmount -name carlosvolume
root@ip-10-245-12-77:~# hadoop fs -ls maprfs:///
Found 6 items
drwxrwxrwx   - root root          0 1970-01-01 00:00 /carlosvolume_mirror
drwxr-xr-x   - mapr mapr          6 2013-02-21 17:50 /hbase
drwxr-xr-x   - root root          1 2013-03-11 14:07 /tera.in
drwxr-xr-x   - root root          1 2013-03-11 14:54 /tera.out
drwxr-xr-x   - mapr mapr          1 2013-02-21 18:23 /user
drwxr-xr-x   - mapr mapr          1 2013-02-21 17:42 /var
root@ip-10-245-12-77:~# maprcli volume mount -name carlosvolume
root@ip-10-245-12-77:~# hadoop fs -ls maprfs:///
Found 7 items
drwxr-xr-x   - root root          0 2013-03-27 17:33 /carlosvolume
drwxrwxrwx   - root root          0 1970-01-01 00:00 /carlosvolume_mirror
drwxr-xr-x   - mapr mapr          6 2013-02-21 17:50 /hbase
drwxr-xr-x   - root root          1 2013-03-11 14:07 /tera.in
drwxr-xr-x   - root root          1 2013-03-11 14:54 /tera.out
drwxr-xr-x   - mapr mapr          1 2013-02-21 18:23 /user
drwxr-xr-x   - mapr mapr          1 2013-02-21 17:42 /var
root@ip-10-245-12-77:~#
Removing a Volume
root@ip-10-245-12-77:~# hadoop fs -ls maprfs:///
Found 8 items
drwxr-xr-x   - root root          0 2013-03-27 17:33 /carlosvolume
drwxrwxrwx   - root root          0 1970-01-01 00:00 /carlosvolume_mirror
drwxr-xr-x   - mapr mapr          6 2013-02-21 17:50 /hbase
drwxr-xr-x   - root root          1 2013-03-11 14:07 /tera.in
drwxr-xr-x   - root root          1 2013-03-11 14:54 /tera.out
drwxr-xr-x   - root root          0 2013-03-27 17:59 /testvolume
drwxr-xr-x   - mapr mapr          1 2013-02-21 18:23 /user
drwxr-xr-x   - mapr mapr          1 2013-02-21 17:42 /var
root@ip-10-245-12-77:~# maprcli volume remove -name testvolume
root@ip-10-245-12-77:~# hadoop fs -ls maprfs:///
Found 7 items
drwxr-xr-x   - root root          0 2013-03-27 17:33 /carlosvolume
drwxrwxrwx   - root root          0 1970-01-01 00:00 /carlosvolume_mirror
drwxr-xr-x   - mapr mapr          6 2013-02-21 17:50 /hbase
drwxr-xr-x   - root root          1 2013-03-11 14:07 /tera.in
drwxr-xr-x   - root root          1 2013-03-11 14:54 /tera.out
drwxr-xr-x   - mapr mapr          1 2013-02-21 18:23 /user
drwxr-xr-x   - mapr mapr          1 2013-02-21 17:42 /var
root@ip-10-245-12-77:~#

Later on I will cover the MapR CLI showing examples of how to use it with Mirrors, Schedules and Snapshots.

I hope you enjoy it and find this information useful.

no

Streaming Data Architecture:

New Designs Using Apache Kafka and MapR Streams

 

 

 

Download for free