Can't get a SparkContext in new AWS EMR Cluster

后端 未结 3 735
名媛妹妹
名媛妹妹 2021-02-07 10:19

i just set up an AWS EMR Cluster (EMR Version 5.18 with Spark 2.3.2). I ssh into the master maschine and run spark-shell or pyspark and get the following error:

         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-07 10:32

    in order to fix this issue you can add configuration in json format on emr provisioning. We use code like this

    {
        "Classification": "yarn-site",
        "Configurations": [
        ],
        "Properties": {
          "spark.yarn.app.container.log.dir": "/var/log/hadoop-yarn"
        }
      }
    

提交回复
热议问题