You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GCP Dataproc Spark作业间歇性出现Task not found错误

GCP Dataproc Spark作业间歇性Task not found错误问题

我在GCP的Dataproc Spark作业中遇到了间歇性的Task not found错误,该问题在运行3-4小时的长作业以及20-25分钟的短作业中均会出现。以下是相关配置:

Spark配置

spark.cores.max="80"
master="yarn"
spark.executor.memory="8G"
spark.task.maxFailures="50"
spark.driver.maxResultSize="10g"
spark.hadoop.dfs.replication= "1"

GCP集群DAG配置

MASTER_MACHINE_TYPE = "n1-standard-4"
WORKER_MACHINE_TYPE = "n1-standard-16"

# Dataproc cluster definition
CLUSTER_CONFIG = {
    "gce_cluster_config": {
        "subnetwork_uri": SUBNETWORK_URI,
        "internal_ip_only": True,
        "service_account" : GCP_SERVICE_ACCOUNT
    },
    "master_config": {
        "num_instances": 3,
        "machine_type_uri": MASTER_MACHINE_TYPE,
        "disk_config": {"boot_disk_type": "pd-standard", "boot_disk_size_gb": 1024},
        "image_uri" : IMAGE_URI
    },
    "worker_config": {
        "num_instances": 10,
        "machine_type_uri": WORKER_MACHINE_TYPE,
        "disk_config": {"boot_disk_type": "pd-standard", "boot_disk_size_gb": 1024},
         "image_uri" : IMAGE_URI
     },
     "software_config": {
        "properties": {
            "dataproc:dataproc.allow.zero.workers": "true",
            "yarn:yarn.resourcemanager.scheduler.class": "org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler",
            "yarn:yarn.nodemanager.resource.cpu-vcores": "48"
        }
    },
    "endpoint_config" : {
           "enable_http_port_access" : True
    },
    "lifecycle_config": {
        "idle_delete_ttl": {"seconds": 15*60},
         "auto_delete_ttl": {"seconds": 480*60},
    }
}

内容的提问来源于stack exchange,提问作者Neeraj Kumbhkar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.20 20:48:19