touchz

Creates a file of zero length.
Returns an error if the file exists with non-zero length.

Returns 0 on success and -1 on error.

The usage is as follows:

$ hadoop fs -touchz URI [URI ...]

Example:

$ hadoop fs -touchz pathname
Found a mistake? Seleсt text and press Ctrl+Enter to report it