hadoop fs -put和hadoop fs -copyFromLocal之间的区别 [英] Difference between hadoop fs -put and hadoop fs -copyFromLocal
问题描述
-copyFromLocal
记录为相同,而大多数示例使用详细变量-copyFromLocal。为什么?
-get
和 -copyToLocal
可以使用放入,而不是使用 copyFromLocal ,但反之亦然。
/ p>
- copyToLocal 与 get 命令类似,但目标是仅限于本地文件引用。
因此,您可以使用 get em> copyToLocal ,但不是其他方式。
参考: Hadoop的文档。的更新:截至2015年10月的最新信息,请参阅下面的 答案。
-put
and -copyFromLocal
are documented as identical, while most examples use the verbose variant -copyFromLocal. Why?
Same thing for -get
and -copyToLocal
- copyFromLocal is similar to put command, except that the source is restricted to a local file reference.
So, basically you can do with put, all that you do with copyFromLocal, but not vice-versa.
Similarly,
- copyToLocal is similar to get command, except that the destination is restricted to a local file reference.
Hence, you can use get instead of copyToLocal, but not the other way round.
Reference: Hadoop's documentation.
Update: For the latest as of Oct 2015, please see this answer below.
这篇关于hadoop fs -put和hadoop fs -copyFromLocal之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!