Skip to content

Commit

Permalink
hadoop: Fix CDH3 mkdir implementation (#2188)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson authored and Tarrasch committed Jul 21, 2017
1 parent 7636ae3 commit eca47ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion luigi/contrib/hdfs/hadoopcli_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ def mkdir(self, path, parents=True, raise_if_exists=False):
self.call_check(load_hadoop_cmd() + ['fs', '-mkdir', path])
except hdfs_error.HDFSCliError as ex:
if "File exists" in ex.stderr:
raise FileAlreadyExists(ex.stderr)
if raise_if_exists:
raise FileAlreadyExists(ex.stderr)
else:
raise

Expand Down

0 comments on commit eca47ff

Please sign in to comment.