You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2015/07/02 00:46:04 UTC
[jira] [Created] (HADOOP-12172) FsShell mkdir -p makes an
unnecessary check for the existence of the parent.
Chris Nauroth created HADOOP-12172:
--------------------------------------
Summary: FsShell mkdir -p makes an unnecessary check for the existence of the parent.
Key: HADOOP-12172
URL: https://issues.apache.org/jira/browse/HADOOP-12172
Project: Hadoop Common
Issue Type: Improvement
Components: fs
Reporter: Chris Nauroth
Assignee: Chris Nauroth
Priority: Minor
The {{mkdir}} command in {{FsShell}} checks for the existence of the parent of the directory and returns an error if it doesn't exist. The {{-p}} option suppresses the error and allows the directory creation to continue, implicitly creating all missing intermediate directories. However, the existence check still runs even with {{-p}} specified, and its result is ignored. Depending on the file system, this is a wasteful RPC call (HDFS) or HTTP request (WebHDFS/S3/Azure) imposing extra latency for the client and extra load for the server.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)