hadoop fs -put 和 hadoop fs -copyFromLocal 的区别 [英] Difference between hadoop fs -put and hadoop fs -copyFromLocal

查看:50
本文介绍了hadoop fs -put 和 hadoop fs -copyFromLocal 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

-put-copyFromLocal 记录为相同,而大多数示例使用详细变体 -copyFromLocal.为什么?

-put and -copyFromLocal are documented as identical, while most examples use the verbose variant -copyFromLocal. Why?

-get-copyToLocal

推荐答案

-copyFromLocal-put 命令类似,只是来源限制为本地文件引用.

-copyFromLocal is similar to -put command, except that the source is restricted to a local file reference.

所以基本上,你可以用 put 来做,所有你用 -copyFromLocal 做的事情,但反之亦然.

So basically, you can do with put, all that you do with -copyFromLocal, but not vice-versa.

同样,

-copyToLocal 类似于 get 命令,除了目标仅限于本地文件引用.

-copyToLocal is similar to get command, except that the destination is restricted to a local file reference.

因此,您可以使用 get 代替 -copyToLocal,但不能反过来.

Hence, you can use get instead of -copyToLocal, but not the other way round.

参考:Hadoop 的文档.

更新:有关截至 2015 年 10 月的最新信息,请参阅下面的答案.

Update: For the latest as of Oct 2015, please see this answer below.

这篇关于hadoop fs -put 和 hadoop fs -copyFromLocal 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆