Skip to content

Commit

Permalink
Actually fix the /hdfs removal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Aggleton committed May 23, 2016
1 parent c39fad3 commit 29b11f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htcondenser/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def check_dir_create(directory):
"""
if not os.path.isdir(directory):
if os.path.abspath(directory).startswith('/hdfs'):
check_call(['hadoop', 'fs', '-mkdir', '-p', os.path.abspath(directory).replace('/hdfs', '/')])
check_call(['hadoop', 'fs', '-mkdir', '-p', os.path.abspath(directory).replace('/hdfs', '')])
else:
os.makedirs(directory)

Expand Down

0 comments on commit 29b11f6

Please sign in to comment.