There is no difference - textFile calls hadoopFile with a TextInputFormat, and 
maps each value to a String. 



—
Sent from Mailbox

On Tue, Apr 7, 2015 at 1:46 PM, Puneet Kumar Ojha
<puneet.ku...@pubmatic.com> wrote:

> Hi ,
> Is there any difference between Difference between textFile Vs hadoopFile 
> (textInoutFormat) when data is present in HDFS? Will there be any performance 
> gain that can be observed?
> Puneet Kumar Ojha
> Data Architect | PubMatic<http://www.pubmatic.com/>

Reply via email to