gpt4 book ai didi

java - MapReduce 2 作业在本地运行而不是提交到 yarn

转载 作者:可可西里 更新时间:2023-11-01 15:27:21 24 4
gpt4 key购买 nike

所以我尝试将我的作业配置为提交给 yarn,但它在本地运行:

config.set("yarn.resourcemanager.address", "ADDRESS:8032");
config.set("mapreduce.framework.name", "yarn");
config.set("fs.default.name", "hdfs://ADDRESS:8020");

如果我设置 ma​​pred.job.tracker 它会失败:

Exception in thread "main" org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.RpcServerException): Unknown rpc kind in rpc headerRPC_WRITABLE

因为它不是 MR1。

那么为什么app没有提交到yarn呢?

最佳答案

通过这样做解决了它:

config.set("yarn.resourcemanager.address", "ADDRESS:8032");
config.set("yarn.resourcemanager.scheduler.address", "ADDRESS:8030");
config.set("yarn.resourcemanager.resource-tracker.address", "ADDRESS:8031");
config.set("yarn.resourcemanager.admin.address", "ADDRESS:8033");

代替:

config.set("yarn.resourcemanager.address", "ADDRESS:8032");

关于java - MapReduce 2 作业在本地运行而不是提交到 yarn,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42229864/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com