简体   繁体   English

Spark 在本地机器而不是独立集群中运行

[英]Spark running in local machine instead of standalone cluster

I've created a spark cluster on ec2, after that, I installed Jupyter on the master node and started jupyter, after that I created sparkcontext using我在 ec2 上创建了一个 spark 集群,之后,我在主节点上安装了 Jupyter 并启动了 jupyter,之后我使用创建了 sparkcontext

findspark.init(spark_home='/home/ubuntu/spark')
import pyspark
from functools import partial
sc = pyspark.SparkContext(appName="Pi")

when I am trying to run any job, spark is only utilizing cores of the master machine, all the slaves are running and connected to master, but I am still not able to use the cores of any of the slave machines, anybody please help.当我尝试运行任何作业时,spark 仅使用主机的内核,所有从机都在运行并连接到主机,但我仍然无法使用任何从机的内核,请任何人帮忙。

创建SparkContext时,您需要将主 url 设置为spark://...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将应用程序提交到从Python笔记本在GCP中运行的独立Spark集群 - Submit an application to a standalone spark cluster running in GCP from Python notebook 在本地集群上运行 dask 时超时 OSError - Timeout OSError while running dask on local cluster 如何检测 PySpark 正在本地机器上运行 - How to detect that PySpark is running on local machine 如何从在Kubernetes上运行的Spark集群(2.1)查询hdfs? - How to query hdfs from a spark cluster (2.1) which is running on kubernetes? Flask 在我的本地机器上运行时出现 404 错误 - Flask 404 Error when running on my local machine 在本地机器上查看正在运行的 python 脚本的变量值 - View variable's value of a running python script in local machine Python Redis:无法从本地计算机或服务器连接到 AWS Redis 集群 - Python Redis: Not able to connect to AWS Redis cluster from local machine or server h2o是否可以为独立群集分配更多的内存? - Can h2o allow to allocate more memory to standalone cluster? 将 Python 库添加到远程集群机器? - Adding Python libraries to remote cluster machine? django.core.exceptions.ImproperlyConfigured。 当我尝试在本地计算机上运行python程序时,我输入了这个错误 - django.core.exceptions.ImproperlyConfigured. When I tried running a python program on my local machine, I encounted this error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM