<p>在AWS文档中,它们指定了如何激活Spark作业(<a href="https://docs.aws.amazon.com/glue/latest/dg/monitor-profile-glue-job-cloudwatch-metrics.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/glue/latest/dg/monitor-profile-glue-job-cloudwatch-metrics.html</a>)的监视,而不是python shell作业</p>
<p>按原样使用代码会导致以下错误:<code>ModuleNotFoundError: No module named 'pyspark'</code></p>
<p>更糟糕的是,在注释掉<code>from pyspark.context import SparkContext</code>之后,我得到了<code>ModuleNotFoundError: No module named 'awsglue.context'</code>。pythonshell作业似乎无法访问粘合上下文?有人解决了这个问题吗</p>