You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Bahubali Jain <ba...@gmail.com> on 2015/06/26 18:43:59 UTC

Multiple dir support : newApiHadoopFile

Hi,
How do we read files from multiple directories using newApiHadoopFile () ?

Thanks,
Baahu
-- 
Twitter:http://twitter.com/Baahu

Re: Multiple dir support : newApiHadoopFile

Posted by Eugen Cepoi <ce...@gmail.com>.
Comma separated paths works only with spark 1.4 and up

2015-06-26 18:56 GMT+02:00 Eugen Cepoi <ce...@gmail.com>:

> You can comma separate them or use globbing patterns
>
> 2015-06-26 18:54 GMT+02:00 Ted Yu <yu...@gmail.com>:
>
>> See this related thread:
>> http://search-hadoop.com/m/q3RTtiYm8wgHego1
>>
>> On Fri, Jun 26, 2015 at 9:43 AM, Bahubali Jain <ba...@gmail.com>
>> wrote:
>>
>>>
>>> Hi,
>>> How do we read files from multiple directories using newApiHadoopFile ()
>>> ?
>>>
>>> Thanks,
>>> Baahu
>>> --
>>> Twitter:http://twitter.com/Baahu
>>>
>>>
>>
>

Re: Multiple dir support : newApiHadoopFile

Posted by Eugen Cepoi <ce...@gmail.com>.
You can comma separate them or use globbing patterns

2015-06-26 18:54 GMT+02:00 Ted Yu <yu...@gmail.com>:

> See this related thread:
> http://search-hadoop.com/m/q3RTtiYm8wgHego1
>
> On Fri, Jun 26, 2015 at 9:43 AM, Bahubali Jain <ba...@gmail.com> wrote:
>
>>
>> Hi,
>> How do we read files from multiple directories using newApiHadoopFile () ?
>>
>> Thanks,
>> Baahu
>> --
>> Twitter:http://twitter.com/Baahu
>>
>>
>

Re: Multiple dir support : newApiHadoopFile

Posted by Ted Yu <yu...@gmail.com>.
See this related thread:
http://search-hadoop.com/m/q3RTtiYm8wgHego1

On Fri, Jun 26, 2015 at 9:43 AM, Bahubali Jain <ba...@gmail.com> wrote:

>
> Hi,
> How do we read files from multiple directories using newApiHadoopFile () ?
>
> Thanks,
> Baahu
> --
> Twitter:http://twitter.com/Baahu
>
>