Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Not A Problem
-
2.7.0
-
None
-
None
-
None
Description
Case 1 (CLI):
a. In HDFS Create a new Directory
./hdfs dfs -mkdir /new , A New directory will be created
b. Now Execute the same Command again
mkdir: `/new': File exists , Error message will be shown
Case 2 (RestAPI) :
a. In HDFS Create a new Directory
curl -i -X PUT -L "http://host1:50070/webhdfs/v1/new1?op=MKDIRS&overwrite=false"
A New Directory will be created
b. Now Execute the same webhdfs command again
No exception will be thrown back to the client.
HTTP/1.1 200 OK Cache-Control: no-cache Expires: Thu, 21 May 2015 15:11:57 GMT Date: Thu, 21 May 2015 15:11:57 GMT Pragma: no-cache Content-Type: application/json Transfer-Encoding: chunked