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
-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 |
path |
A path to file or directory |