No. The third line creates a third RDD whose reference simply replaces
the reference to the first RDD in your local driver program. The first
RDD still exists.

On Thu, Aug 20, 2015 at 2:15 PM, Bahubali Jain <bahub...@gmail.com> wrote:
> Hi,
> How would the DAG look like for the below code
>
> JavaRDD<String> rdd1 = context.textFile(<SOMEPATH>);
> JavaRDD<String> rdd2 = rdd1.map(<DO something>);
> rdd1 =  rdd2.map(<Do SOMETHING>);
>
> Does this lead to any kind of cycle?
>
> Thanks,
> Baahu

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to