zoukankan      html  css  js  c++  java
  • Spark Standalone spark-default.conf

    Example:

    spark.master spark://master:7077

    spark.eventLog.enabled true

    spark.eventLog.dir hdfs://namenode:8021/directory

    spark.serializer org.apache.spark.serializer.KryoSerializer

    spark.driver.memory 5g

    spark.executor.extraJavaOptions -XX:+PrintGCDetails -Dkey=value -Dnumbers="one two three"

    spark.eventLog.enabled true
    spark.eventLog.dir hdfs://flashHadoop/spark/log
    spark.eventLog.compress true

    spark.local.dir=/data1/data/spark/local

    spark.ui.enabled true
    spark.ui.killEnabled false
    spark.ui.port 18080

    spark.history.ui.port 18080
    spark.history.fs.cleaner.enabled true
    spark.history.fs.logDirectory hdfs://flashHadoop/spark/log
    spark.history.fs.cleaner.interval 5d
    spark.history.fs.cleaner.maxAge 8d

    2018.12.17 Turning for driver and exec memory

    spark.driver.supervise true
    spark.driver.cores 2
    spark.driver.memory 3g

    spark.executor.cores 2
    spark.executor.memory 3g

    spark.driver.extraJavaOption -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+G1SummarizeConcMark -XX:MaxGCPauseMillis=100 -XX:-ResizePLAB -XX
    :+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:ParallelGCThreads=16 -XX:ConcGCThreads=8 -XX:G1HeapWastePercent=3 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1MixedGCLiveThresholdPer
    cent=85 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintAdaptiveSizePolicy

    spark.executor.extraJavaOptions -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+G1SummarizeConcMark -XX:MaxGCPauseMillis=100 -XX:-ResizePLAB -XX
    :+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:ParallelGCThreads=16 -XX:ConcGCThreads=8 -XX:G1HeapWastePercent=3 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1MixedGCLiveThresholdPer
    cent=85 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintAdaptiveSizePolicy

    Spark Job Submit → Read default conf,,,, 调优后。

  • 相关阅读:
    26、实例化需求:团队如何交付正确的软件
    25、华胥引
    24、老子
    23、禅与摩托车维修艺术(又名万里任禅游)
    22、中国哲学简史
    21、人类简史-从动物到上帝(赫拉利)
    20、淘宝技术这十年
    19.验收测试驱动开发
    18. Scrum敏捷软件开发
    17、胡适谈哲学与人生
  • 原文地址:https://www.cnblogs.com/hit-zb/p/10401737.html
Copyright © 2011-2022 走看看