问题描述
我将apache spark(2.4.4)与纱线配合使用,以实现更好的作业计划并启用多个并发作业。但是我的工作一直处于接受状态,并且没有前进。
我的集群包含10个节点(1个主节点和9个从属节点)。每个节点8个cpu和16 GB内存。 Yarn工作得非常好,可以看到UI中的节点,也看不到不正常的节点,但是不确定作业是否长时间处于ACCEPTED状态,并且在某些时间点之后会失败。我通读了不同的文章,到处都提到“纱线没有足够的资源来分配”。但是我的集群相当大,而我的工作却很少。任何帮助,将不胜感激。
yarn-site.xml
var data = JsonConvert.DeserializeObject<List<Root>>(response.Content);
email_send_message = data[0].email_send_subject;
Console.WriteLine(email_send_subject + " " + email_send_message);
纱线界面
应用
公平的计划程序选项
var data = JsonConvert.DeserializeObject<Root>(response.Content);
string subject = data.email_send_subject;
string message = data.email_send_message;
Console.WriteLine(subject + " " + message);
火花提交命令
<configuration>
<property>
<description>The hostname of the RM.</description>
<name>yarn.resourcemanager.hostname</name>
<value>${hostname}</value>
</property>
<property>
<name>yarn.scheduler.minimum-allocation-mb</name>
<value>1024</value>
</property>
<property>
<name>yarn.resourcemanager.scheduler.class</name>
<value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.Fairscheduler</value>
</property>
<property>
<name>yarn.nodemanager.resource.memory-mb</name>
<value>12288</value>
</property>
<property>
<name>yarn.scheduler.maximum-allocation-mb</name>
<value>12288</value>
</property>
</configuration>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)