title: How to use webhdfs rest api to copy a file and store it in the another directory?
body: <p>How to use httpfs to copy a file in to another directory in hdfs. for example, I can use (<a href="http://1.12.134.1234:2020/webhdfs/v1/user/xx/x?op=create&amp;user=hello" rel="nofollow">http://1.12.134.1234:2020/webhdfs/v1/user/xx/x?op=create&amp;user=hello</a>) to create a file.   I did not find in <a href="https://hadoop.apache.org/docs/stable2/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#File_and_Directory_Operations" rel="nofollow">https://hadoop.apache.org/docs/stable2/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#File_and_Directory_Operations</a></p>