hdfs-shell icon indicating copy to clipboard operation
hdfs-shell copied to clipboard

setfacl: option 'x"' is not available for this command

Open jankrejcik opened this issue 6 years ago • 1 comments

Hi, trying to setfacl in hdfs shell with following command:

hdfs-shell /the/path > setfacl -m user:usrName:--x dir

and it fails with:

Option 'x' is not available for this command. Use tab assist or the "help" command to see the legal options

Using hdfs dfs with same stuff is successful:

$ hdfs dfs -setfacl -m user:usrName:--x /the/path/dir

Unfortunately the version command is not helpful in my case:

hdfs-shell /the/path >version
unspecified

Can you confirm, please?

jankrejcik avatar Jun 04 '18 11:06 jankrejcik

Hi, features like command options are given by Hadoop-Client implementation (HDFS Shell dependency). By default (for better compatibility) HDFS Shell integrates version 2.6.0. If you need a higher version you need to rebuild HDFS Shell from sources with updated library.

Edit: I think there is another problem I forgot to mention. Spring Shell limitation, --x might be the problem of its parser. This will be (hopefully) resolved with Spring Shell upgrade in the future.

Version command works fine for a build, it looks like you running it from IDE.

Vity01 avatar Jun 04 '18 12:06 Vity01