def move(src, dest, user=None):
src_host, src_port, src_path = path.split(src, user)<EOL>dest_host, dest_port, dest_path = path.split(dest, user)<EOL>src_fs = hdfs(src_host, src_port, user)<EOL>dest_fs = hdfs(dest_host, dest_port, user)<EOL>try:<EOL><INDENT>retval = src_fs.move(src_path, dest_fs, dest_path)<EOL>return retval<EOL><DEDENT>finally:<EOL><INDENT>src_fs.close()<EOL>dest_fs.close()<EOL><DEDENT>
Move or rename src to dest.