[ 
https://issues.apache.org/jira/browse/SPARK-12255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ant_nebula updated SPARK-12255:
-------------------------------
    Attachment: pic2.jpg
                pic1.jpg

> why "cache table a as select * from b" will do shuffle,and create 2 stage
> -------------------------------------------------------------------------
>
>                 Key: SPARK-12255
>                 URL: https://issues.apache.org/jira/browse/SPARK-12255
>             Project: Spark
>          Issue Type: Question
>         Environment: spark-1.4.1-bin-hadoop2.4
>            Reporter: ant_nebula
>         Attachments: pic1.jpg, pic2.jpg
>
>
> why "cache table a as select * from b" will do shuffle,and create 2 stage.
> example:
> table "ods_pay_consume" is from "KafkaUtils.createDirectStream"
> {code}
> hiveContext.sql("cache table dwd_pay_consume as select * from 
> ods_pay_consume")
> {code}
> create DAG as pic1.jsp
> {code}
> hiveContext.sql(""cache table dw_game_server_recharge as select * from 
> dwd_pay_consume")
> {code}
> create DAG as pic2.jsp



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to