Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Sharing the configuration method of spark

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "Spark configuration method sharing", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "Spark configuration method sharing"!

1. Spark can be configured in three places: spark properties control most application parameters, via SparkConf objects or Java system properties; environment variables can be set individually on each machine via conf/spark-env.sh;Logging can be set via log4j.properties

2. SparkConf is set separately for each application. You can set masterURL, application name, and arbitrary key-value pairs through the corresponding set method. Spark-shell and spark-submit support two ways to load configuration dynamically, the first through command-line arguments and the second through the--conf flag./ bin/spark-submit --help to view command parameters. bin/spark-submit also loads configuration information from the conf/spark-defaults.conf file, which contains space-separated key-value pairs. The priority of configurations, from highest to lowest, is SparkConf > Parameters passed to spark-shell or spark-submit> spark-defaults.conf file.

3. Common application configuration parameters

spark.executor.memory

At this point, I believe that everyone has a deeper understanding of "spark configuration method sharing", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report