当前位置:网站首页>Explanation of spark common parameters
Explanation of spark common parameters
2022-06-11 02:34:00 【hzp666】
Spark The default configuration file for is located in this location on the fortress machine : $SPARK_CONF_DIR/spark-defaults.conf, Users can view and understand .
It should be noted that , The default value has the lowest priority , If the user explicitly specifies the configuration when submitting a task or in the code , The user configuration shall prevail . On the basis that users understand the meaning of parameters , Parameters can be adjusted according to specific task conditions ( Modify submission parameters --conf value , No spark-defaults.conf file ).
The following common parameter configurations can be configured through --conf XXX=Y Way to use , For other parameters and descriptions, please refer to Configuration - Spark 3.2.1 Documentation
Parameter name | recommended value | explain |
|---|---|---|
| spark.master | yarn | Which resource scheduler to use , In general use yarn. Local debugging can use local |
| spark.submit.deployMode | cluster | driver Where the program runs , Debugging can use client, Online task suggestions cluster. |
| spark.driver.cores | 4 | driver Maximum use cpu( Threads ) Count |
| spark.driver.memory | 4-10g | driver Request memory size |
| spark.executor.memory | 3. Spark Task tuning techniques | Single executor Request heap memory size |
| spark.python.worker.memory | spark.executor.memory/2 | Generally, the default value is used |
| spark.yarn.executor.memoryOverhead | 3072 | Single executor Request out of heap memory size , Generally, the default value is used |
| spark.executor.cores | 3. Spark Task tuning techniques | Single executor Maximum concurrency task Count |
| spark.executor.instances | 3. Spark Task tuning techniques | executor Count |
| spark.speculation | The default value is false | The speculative execution mechanism defaults to false( close ), If the operation gets stuck occasionally, you can try to open . |
| spark.default.parallelism | 3. Spark Task tuning techniques | Control default RDD Of partithion Count , Read hdfs When you file partition Count blocksize And whether to merge the input . |
| spark.sql.shuffle.partitions | perform sql or sql Class operator shuffle Partition number , This value should be increased when the amount of data is large . | |
| spark.pyspark.python | python2/python3/python3.5 | Appoint pyspark The use of python edition ( If you use docker Mirror image , Please confirm whether there is a corresponding version in the image , The platform basic image only has python2) |
| spark.log.level | The default value is info | ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF, Case insensitive . |
| spark.sql.hive.mergeFiles | The default value is false | Opening will automatically close spark-sql Small files generated |
| spark.hadoop.jd.bdp.streaming.monitor.enable | The default value is false | Open or not streaming Homework batch Backlog alarm function , The default is false, It can be done by --conf spark.hadoop.jd.bdp.streaming.monitor.enable=true Turn on |
| spark.hadoop.jd.bdp.batch.threshold | The default value is 10 | streaming Homework batch Backlog alarm threshold , The default value is 10, Users can adjust according to their needs , for example : --conf spark.hadoop.jd.bdp.batch.threshold=20 |
| spark.hadoop.jd.bdp.user.define.erps | The alarm group configured by the platform is used by default | For similar streaming Homework batch Backlog and other indicators that only need users' attention , The user can customize the alarm group , for example : --conf spark.hadoop.jd.bdp.user.define.erps="baibing12|maruilei" ( Be careful : Multi person configurable , adjacent erp Use vertical line | Separate ) |
spark.isLoadHivercFile spark.sql.tempudf.ignoreIfExists | Default false | Whether to load all hive udf( Only support spark-sql Next use , I won't support it spark-submit、pyspark).(HiveTask The inside has been opened , The user doesn't need extra settings ) |
边栏推荐
- Find - (block find)
- Binary tree sequence traversal
- 10007. ISBN号码
- About stepping on the pit diary and the association of knowledge points
- 金属有机骨架材料Fe-MIL-53,Mg-MOF-74,Ti-KUMOF-1,Fe-MIL-100,Fe-MIL-101)负载异氟醚/甲氨蝶呤/阿霉素(DOX)/紫杉醇/布洛芬/喜树碱
- 企业展厅设计能为企业带来什么?
- Redis learning notes (continuously updating)
- 2022 safety officer-b certificate examination question bank and answers
- 如何保障数仓数据质量?
- Mentality cannot collapse
猜你喜欢

421. 数组中两个数的最大异或值

MySQL备份与恢复

金属有机骨架材料Fe-MIL-53,Mg-MOF-74,Ti-KUMOF-1,Fe-MIL-100,Fe-MIL-101)负载异氟醚/甲氨蝶呤/阿霉素(DOX)/紫杉醇/布洛芬/喜树碱
![[AI weekly] AI and freeze electron microscopy reveal the structure of](/img/2e/e986a5bc44526f686c407378a9492f.png)
[AI weekly] AI and freeze electron microscopy reveal the structure of "atomic level" NPC; Tsinghua and Shangtang proposed the "SIM" method, which takes into account semantic alignment and spatial reso

What is the relationship between precious metal silver and spot Silver

Cyclodextrin metal organic framework( β- Cd-mof) loaded with dimercaptosuccinic acid / emodin / quercetin / sucralose / diflunisal / omeprazole (OME)

Li Kou brushing questions - hash table

Unity HTC and Pico are the same

NFT insider 61:animoca brands holds US $1.5 billion of encrypted assets in 340 investments

Jetpack compose scaffold and bottomappbar (bottom navigation)
随机推荐
Fundamentals of deep learning [4] build easyocr and carry out simple character recognition from 0
金属有机框架MOF-Al(DIBA),MOF-Zr(DIBA),MOF-Fe(DIBA)包载姜黄素/羧苄西林/MTX甲氨蝶呤/紫杉醇PTX/阿霉素DOX/顺铂CDDP/CPT喜树碱等药物
叶酸配体的金属有机骨架材料MOFs负载5-氟尿嘧啶,西达本胺,紫杉醇,阿霉素,柔红霉素,布洛芬,喜树碱,姜黄素,藤黄酸等小分子药物
金属有机骨架材料Fe-MIL-53,Mg-MOF-74,Ti-KUMOF-1,Fe-MIL-100,Fe-MIL-101)负载异氟醚/甲氨蝶呤/阿霉素(DOX)/紫杉醇/布洛芬/喜树碱
What is the relationship between precious metal silver and spot Silver
Jetpack compose scaffold and topappbar (top navigation)
Common vocabulary of software testing English
【并行与分布式系统】Cache学习
STC8A8K64D4 EEPROM读写失败
SQL | 计算总和
Mentality cannot collapse
如何3步精读《PMBOK指南》(经验+资料分享)
心态不能崩......
Sd3.0 notes
Unity3d detects that the object is not within the range of the camera
P4338 [zjoi2018] history (tree section) (violence)
多级介孔有机金属骨架材料ZIF-8负载乳酸氧化酶(LOD)/四氧化三铁(Fe304)/阿霉素DOX/胰岛素/cas9蛋白/甲硝唑/大黄素甲醚
UI interaction
贵金属白银和现货白银之间是什么关系
koa2学习笔记