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

Return codes are not passed to the calling shell

Open mmontuori opened this issue 2 years ago • 1 comments

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.

mmontuori avatar Jul 08 '22 13:07 mmontuori

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.

Vity01 avatar Jul 18 '22 14:07 Vity01