getfattr

Displays the extended attribute names and values (if any) for a file or directory. Returns 0 on success and non-zero on error.

The usage is as follows:

$ hadoop fs -getfattr [-R] -n name | -d [-e en] <path>

Examples:

$ hadoop fs -getfattr -d /file
$ hadoop fs -getfattr -R -n user.myAttr /dir
Arguments

-R

Recursively lists the attributes for all files and directories

-n

Dumps the named extended attribute value

-d

Dumps all extended attribute values associated with pathname

-e encoding

Encodes values after retrieving them. Valid encodings are text, hex, and base64. Values encoded as text strings are enclosed in double quotes ("), and values encoded as hexadecimal and base64 are prefixed with 0x and 0s, respectively

path

A path to file or directory

Found a mistake? Seleсt text and press Ctrl+Enter to report it