Could you provide the code of hbaseQuery? It maybe doesn't support to
execute in parallel.

Best Regards,
Shixiong Zhu

2014-11-12 14:32 GMT+08:00 qiaou <qiaou8...@gmail.com>:

>  Hi:
>     I got a problem with using the union method of RDD
>     things like this
> I get a function like
> def hbaseQuery(area:string):RDD[Result]= ???
>         when i use hbaseQuery('aa').union(hbaseQuery(‘bb’)).count() it
> returns 0
> however when use like this  sc.parallize(hbaseQuery('aa’).collect.toList
> ::: hbaseQuery(’bb’).collect.toList).count() it return the right value
> obviously i have got an action after my transformation action ,but why it
> did not work
> fyi
>
> --
> qiaou
> 已使用 Sparrow <http://www.sparrowmailapp.com/?sig>
>
>

Reply via email to