hdfs-shell
hdfs-shell copied to clipboard
Return codes are not passed to the calling shell
Return codes for command like hdfs dfs -test -d / are not passed. The command always returns zero as a success. The same behavior appears in daemon mode.
This functionality is critical to implement this product for real workloads.
This utility was designed mainly to be used by human. For scripting you should use script command, which will raise error if any of the commands fail.