自己写mapreduce如何使用本地文件?

75 views
Skip to first unread message

zhang辉张

unread,
Oct 17, 2012, 4:35:17 AM10/17/12
to hadoo...@googlegroups.com
自己写mapreduce如何使用本地文件?

Wei Wu

unread,
Oct 17, 2012, 10:31:30 AM10/17/12
to hadoo...@googlegroups.com
hadoop jar ... -files /path/to/localfile 

这个选项会把本地文件上传到集群,MR程序可以直接读取(已经帮你放在MR程序的当前目录下)。不知道是不是你想要的?

On Wed, Oct 17, 2012 at 4:35 PM, zhang辉张 <zhang...@gmail.com> wrote:
自己写mapreduce如何使用本地文件?

--
You received this message because you are subscribed to the Google Groups "Hadoop In China" group.
To post to this group, send email to hadoo...@googlegroups.com.
To unsubscribe from this group, send email to hadooper_cn...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hadooper_cn?hl=en.

Clark Yang (杨卓荦)

unread,
Oct 17, 2012, 10:39:12 AM10/17/12
to hadoo...@googlegroups.com
果然是大师啊……

Cheers,
Zhuoluo (Clark) Yang


2012/10/17 Wei Wu <woo...@gmail.com>:

zhang辉张

unread,
Oct 17, 2012, 9:14:13 PM10/17/12
to hadoo...@googlegroups.com

是滴

Reply all
Reply to author
Forward
0 new messages