zoukankan      html  css  js  c++  java
  • 关于yarn的spark配置属性


     spark1.2.0


    These are configs that are specific to Spark on YARN
    Property Name Default Meaning
     spark.yarn.applicationMaster.waitTries  10  ApplicationMaster 链接Spark master和SparkContext初始化的尝试次数
     spark.yarn.submit.file.replication  3  上传到HDFS上的Spark jar、app jar登文件的备份数
     spark.yarn.preserve.staging.files  false  spark任务结束后是否删除上传的Spark jar、app jar等文件
     spark.yarn.scheduler.heartbeat.interval-ms  5000  Spark application master向YARN ResourceManager发送心跳的时间间隔
     spark.yarn.max.executor.failures

     numExecutors * 2

     最小是3

     executor 失败多少次就标记此应用的运行失败
     park.yarn.historyServer.address  空  默认无,是可选项,格式为host.com:port,不带http://,是spark历史服务器的地址
     spark.yarn.dist.archives  空  Comma separated list of archives to be extracted into the working directory of each executor
     spark.yarn.dist.files  空  Comma-separated list of files to be placed in the working directory of each executor.
     spark.yarn.executor.memoryOverhead

     executorMemory * 0.07,

     with minimum of 384

     The amount of off heap memory (in megabytes) to be allocated per executor. This is memory that accounts for things like VM overheads, interned strings, other native overheads, etc. This tends to grow with the executor size (typically 6-10%).
     spark.yarn.driver.memoryOverhead

     driverMemory * 0.07

    with minimum of 384

     The amount of off heap memory (in megabytes) to be allocated per driver. This is memory that accounts for things like VM overheads, interned strings, other native overheads, etc. This tends to grow with the container size (typically 6-10%).
     spark.yarn.queue  default  应用提交给yarn队列的名字
     spark.yarn.jar  空  spark jar包的的路径,默认使用本地spark目录中的,也可以放到HDFS上
     spark.yarn.access.namenodes  空  有安全认证的HDFS namenode的地址如:spark.yarn.access.namenodes=hdfs://nn1.com:8032,hdfs://nn2.com:8032
     spark.yarn.appMasterEnv.[EnvironmentVariableName]  空  环境变量的设置
     spark.yarn.containerLauncherMaxThreads  25  application master启动executor container的线程最大数量

    欲为大树,何与草争;心若不动,风又奈何。
  • 相关阅读:
    xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
    xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
    mysql 借用临时加索引的方式,使原来几分钟以上才能查出来的数据,优化到2秒钟以内
    周一不睡觉,也要把pandas groupy 肝完,你该这么学,No.8
    A Survey on Ring Signature
    门罗币基础技术介绍
    oracle 全表扫描返回无序
    截图工具竟是个大合体,这个软件一定要了解!
    健康小知识:你对肺痨了解多少?
    支持4K30帧的海鸟4K潜水套装上手体验
  • 原文地址:https://www.cnblogs.com/admln/p/sparkPropertiesForYarn.html
Copyright © 2011-2022 走看看