mrfscmd

Returns the path to the file specified by ID (fid).

Before running the utility, ensure that the LD_LIBRARY_PATH environment variable is set for the path to the libjvm.so file. If necessary, run the following command to set the LD_LIBRARY_PATH:

export LD_LIBRARY_PATH=/usr/lib/jvm/java/jre/lib/amd64/server/

Syntax

/opt/mapr/server/mrfscmd fid path -fid <file-ID>

Parameters

Parameter Description
fid The ID of the file.

Output

On success, returns path to the file specified by ID (fid).

On failure, returns error.

Examples

The following examples show file path (on success) and errors returned by the utility.

# ./mrfscmd fid path -fid 2115.33.131412 
/var/mapr/file1
# ./mrfscmd fid path -fid  2071.33.1313445
Error: Getting Path for Fid 2071.33.1313445 Failed - Stale file handle (116).
# ./mrfscmd fid path -fid  2071.33. 
Error: Invalid Fid 2071.33.