hdfs-shell
hdfs-shell copied to clipboard
setfacl: option 'x"' is not available for this command
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?
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.