You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uniffle.apache.org by GitBox <gi...@apache.org> on 2022/11/12 10:32:04 UTC

[GitHub] [incubator-uniffle] rhh777 commented on issue #154: [Improvement] Support Empty assignment to Shuffle Server

rhh777 commented on issue #154:
URL: https://github.com/apache/incubator-uniffle/issues/154#issuecomment-1312449433

   When the RDD is Empty, the shuffle is triggered and the **Empty assignment to Shuffle Server**
   
   
   
           val conf = new SparkConf()
           conf.set("spark.shuffle.manager","org.apache.spark.shuffle.RssShuffleManager")
           conf.set("spark.rss.coordinator.quorum","localhost:19999")
           conf.set("spark.rss.storage.type","MEMORY_LOCALFILE")
   
           val session: SparkSession = SparkSession.builder().config(conf).
                   master("local").appName("rss_empty_assignment").getOrCreate()
   
           val rdd: RDD[Row] = session.emptyDataFrame.rdd
           val inputRDD: RDD[(String, Int)] = rdd.map((row: Row) => {
               ("rss_empty_assignment", 1)
           })
   
           inputRDD.countByKey().foreach(println)
           session.stop()
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@uniffle.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org