[英]How to use webhdfs rest api to copy a file and store it in the another directory?
如何使用httpfs将文件复制到hdfs中的另一个目录。 例如,我可以使用( http://1.12.134.1234:2020/webhdfs/v1/user/xx/x?op=create&user=hello )创建文件。 我在https://hadoop.apache.org/docs/stable2/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#File_and_Directory_Operations中找不到
没有webhdfs的“复制”命令。 使用hadoop distcp命令(或检索内容,创建新文件,如果预期文件很小,则写入内容)。 使用WebHDFS复制文件也可以解决该问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.