Displays statistics for MapR-DB or file system components that are identified by an FID. This command is similar to the UNIX stat command.

Only the root user and the MAPR_USER user (user name under which MapR services runs) have permissions to run this command.

Syntax

CLImaprcli fid stat
  [ -cluster cluster_name ]
  -fid fid
RESTN/A

Parameters

ParameterDescription
clusterThe cluster on which to run the command. If this parameter is omitted, the command is run on the same cluster where it is issued. In multi-cluster contexts, you can use this parameter to specify a different cluster on which to run the command.
fidThe file identifier for the element (region, kvstore, etc.) for which you want detailed information. The output of maprcli table region list lists the FIDs for the table's regions.

Output Fields

ColumnsDescription
uidThe user ID of the owner.
atimeThe last access time for this FID. 
nblocksThe number of disk blocks.
deleteFlagsAn internal delete flags set on the FID for transactions involving multiple nodes.
mtimeThe time of the last modification.
parentThe parent FID.
typeThe type of the FID. It can be for example, regular file, dir, filelet, kvstore, fidmap etc.
versionThe current version of the FID. 
sizeThe size of the FID. Depending on the type of FID, it can be the actual size or the number of entries.
modeThe UNIX style permission mode bits for the FID.
networkencryptionThe network encryption setting. If the network encryption is enabled for this FID or not.
subtype

The subtype of the FID.

gidThe group ID.
compressionThe compression setting.

Example

Displays statistics for a specified FID:

[user@hostname ~]$ maprcli fid stat -fid 2062.32.131252  -json
{
        "timestamp":1425521633948,
        "timeofday":"2015-03-04 06:13:53.948 GMT-0800",
        "status":"OK",
        "total":1,
        "data":[
                {
                        "type":"FTKvstore",
                        "subtype":"FSTKvTablet",
                        "parent":"2049.43.131208",
                        "size":3,
                        "nblocks":1,
                        "compression":"off",
                        "deleteFlags":"DeleteTypeNone",
                        "atime":1424296259,
                        "mtime":1424296259,
                        "mode":"666",
                        "uid":0,
                        "gid":0,
                        "version":1048579,
                        "networkencryption":false
                }
        ]
}