fix hdfs bug

revert-15207-remove_op_handle_lock_and_fix_var
heqiaozhi 7 years ago
parent 2c1e986f22
commit 5d3ecbfdf5

@ -52,9 +52,10 @@ class HDFSClient(object):
ret_code = 0
ret_out = None
ret_err = None
whole_commands = " ".join(whole_commands)
for x in range(retry_times + 1):
proc = subprocess.Popen(
whole_commands, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
whole_commands, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
(output, errors) = proc.communicate()
ret_code, ret_out, ret_err = proc.returncode, output, errors
if ret_code:

Loading…
Cancel
Save