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

Return codes are not passed to the calling shell #22

Open mmontuori opened 2 years ago

mmontuori commented 2 years ago

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.

Vity01 commented 2 years ago

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.