avast / hdfs-shell

HDFS Shell is a HDFS manipulation tool to work with functions integrated in Hadoop DFS
Apache License 2.0
150 stars 33 forks source link

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

Open jankrejcik opened 6 years ago

jankrejcik commented 6 years ago

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?

Vity01 commented 6 years ago

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.