简体   繁体   中英

Number of cores by default Spark local mode takes

当 spark 在本地模式下运行时,执行程序需要的核心数是多少,如果我没有在命令中提到核心数,如下所示

./start-shell --master local

I got the answer for my question and I just wanted to put it here. If user mentions just "local" without specifying any number of cores, it just takes only 1 core.

If its "local[N]", takes N cores If its "local[*]", takes all the cores available.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM