Hi All,

When I try to load a folder into the RDDs, any way for me to find the input
file name of particular partitions? So I can track partitions from which
file.

In the hadoop, I can find this information through the code:

FileSplit fileSplit = (FileSplit) context.getInputSplit();
String strFilename = fileSplit.getPath().getName();

But how can I do this in spark?

Regards,

Shuai

Reply via email to