简体   繁体   中英

Read HDFS files in eclipse

I have installed hadoop plugin in eclipse.my mapreduce program has iterations and i want to read a file in hdfs in each iteration. I read the file directly from hdfs or i copy the file into local and then read it? which of them is more efficient? Thanks.

It depends entirely what you want to do with it; if you will be reusing the file contents, you might as well just copy it to local to save the repeat lookups to HDFS, but if you just need to read it once, there's no harm in direct from HDFS as copying to local will involve reading it from there anyhow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM