You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kangtian (Jira)" <ji...@apache.org> on 2019/10/05 04:43:00 UTC

[jira] [Commented] (SPARK-29267) rdd.countApprox should stop when 'timeout'

    [ https://issues.apache.org/jira/browse/SPARK-29267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16944984#comment-16944984 ] 

Kangtian commented on SPARK-29267:
----------------------------------

[~hyukjin.kwon]

Just finish when timeout, we don't need final value ~

In my case, i used *partly partitions* to get approximate counting, without timeout param. (in my case, more then 100 partitions)

 

!image-2019-10-05-12-38-26-867.png!

!image-2019-10-05-12-38-52-039.png!

> rdd.countApprox should stop when 'timeout'
> ------------------------------------------
>
>                 Key: SPARK-29267
>                 URL: https://issues.apache.org/jira/browse/SPARK-29267
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 3.0.0
>            Reporter: Kangtian
>            Priority: Minor
>         Attachments: image-2019-10-05-12-37-22-927.png, image-2019-10-05-12-38-26-867.png, image-2019-10-05-12-38-52-039.png
>
>
> {{The way to Approximate counting: org.apache.spark.rdd.RDD#countApprox}}
> +countApprox(timeout: Long, confidence: Double = 0.95)+
>  
> But: 
> when timeout comes, the job will continue run until really finish.
>  
> We Want:
> *When timeout comes, the job will finish{color:#FF0000} immediately{color}*, without FinalValue
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org