You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Walrus theCat <wa...@gmail.com> on 2015/11/14 01:56:53 UTC
send transformed RDD to s3 from slaves
Hi,
I have an RDD which crashes the driver when being collected. I want to
send the data on its partitions out to S3 without bringing it back to the
driver. I try calling rdd.foreachPartition, but the data that gets sent has
not gone through the chain of transformations that I need. It's the data
as it was ingested initially. After specifying my chain of
transformations, but before calling foreachPartition, I call rdd.count in
order to force the RDD to transform. The data it sends out is still not
transformed. How do I get the RDD to send out transformed data when
calling foreachPartition?
Thanks
Re: send transformed RDD to s3 from slaves
Posted by Ajay <as...@gmail.com>.
Hi Walrus,
Try caching the results just before calling the rdd.count.
Regards,
Ajay
> On Nov 13, 2015, at 7:56 PM, Walrus theCat <wa...@gmail.com> wrote:
>
> Hi,
>
> I have an RDD which crashes the driver when being collected. I want to send the data on its partitions out to S3 without bringing it back to the driver. I try calling rdd.foreachPartition, but the data that gets sent has not gone through the chain of transformations that I need. It's the data as it was ingested initially. After specifying my chain of transformations, but before calling foreachPartition, I call rdd.count in order to force the RDD to transform. The data it sends out is still not transformed. How do I get the RDD to send out transformed data when calling foreachPartition?
>
> Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
Re: send transformed RDD to s3 from slaves
Posted by Sabarish Sasidharan <sa...@manthan.com>.
It would be easier if you could show some code.
Regards
Sab
On 14-Nov-2015 6:26 am, "Walrus theCat" <wa...@gmail.com> wrote:
> Hi,
>
> I have an RDD which crashes the driver when being collected. I want to
> send the data on its partitions out to S3 without bringing it back to the
> driver. I try calling rdd.foreachPartition, but the data that gets sent has
> not gone through the chain of transformations that I need. It's the data
> as it was ingested initially. After specifying my chain of
> transformations, but before calling foreachPartition, I call rdd.count in
> order to force the RDD to transform. The data it sends out is still not
> transformed. How do I get the RDD to send out transformed data when
> calling foreachPartition?
>
> Thanks
>
Re: send transformed RDD to s3 from slaves
Posted by Walrus theCat <wa...@gmail.com>.
Update:
You can now answer this on stackoverflow for 100 bounty:
http://stackoverflow.com/questions/33704073/how-to-send-transformed-data-from-partitions-to-s3
On Fri, Nov 13, 2015 at 4:56 PM, Walrus theCat <wa...@gmail.com>
wrote:
> Hi,
>
> I have an RDD which crashes the driver when being collected. I want to
> send the data on its partitions out to S3 without bringing it back to the
> driver. I try calling rdd.foreachPartition, but the data that gets sent has
> not gone through the chain of transformations that I need. It's the data
> as it was ingested initially. After specifying my chain of
> transformations, but before calling foreachPartition, I call rdd.count in
> order to force the RDD to transform. The data it sends out is still not
> transformed. How do I get the RDD to send out transformed data when
> calling foreachPartition?
>
> Thanks
>
Re: send transformed RDD to s3 from slaves
Posted by Andrew Ehrlich <an...@aehrlich.com>.
Maybe you want to be using rdd.saveAsTextFile() ?
> On Nov 13, 2015, at 4:56 PM, Walrus theCat <wa...@gmail.com> wrote:
>
> Hi,
>
> I have an RDD which crashes the driver when being collected. I want to send the data on its partitions out to S3 without bringing it back to the driver. I try calling rdd.foreachPartition, but the data that gets sent has not gone through the chain of transformations that I need. It's the data as it was ingested initially. After specifying my chain of transformations, but before calling foreachPartition, I call rdd.count in order to force the RDD to transform. The data it sends out is still not transformed. How do I get the RDD to send out transformed data when calling foreachPartition?
>
> Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org