moonlightml

spark常用参数

 val conf = new SparkConf().setAppName("WordCount_groupBy").setMaster("local")
      // .set("spark.default.parallelism", "100") //  1. 调节并行度
      .set("spark.executor.memory ","4g")
      .set("spark.executor.cores","5")
      .set("spark.executor.nums","4")//1
      //静态内存机制
      .set("spark.memory.useLegacyMode","false")
      .set("spark.storage.memoryFraction", "0.3")// 5.cache占用的内存占比,default=0.6
      //统一内存机制
      .set("spark.memory.Fraction","0.3")//default=0.6
      .set("spark.storage.storageFraction","0.9")//default=0.5
      .set("spark.shuffle.consolidateFiles", "false")

 

分类:

技术点:

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2022-01-28
  • 2021-12-13
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2022-12-23
  • 2021-12-13
  • 2021-12-13
  • 2021-12-13
相关资源
相似解决方案