Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
-
None
Description
Currently, hadoop fs -test -d path returns 0 for the case where path is a directory and -1 for all the other cases such as execution errors, path does not exists, and path is a file.
It is better to use different return codes to differentiate these cases.
Similar issues also apply to hadoop fs -test -e|z