在运行mapred作业时,容器会根据请求被杀死(Container killed on request, while running mapred jobs)
我正在运行基准的tearasort程序,映射器阶段进展顺利。 但是当谈到减速机阶段时,我会得到以下信息。 最终工作失败了
16/05/20 14:42:53 INFO mapreduce.Job: Task Id : attempt_1463557283514_0017_r_000008_1, Status : FAILED Container [pid=54068,containerID=container_1463557283514_0017_01_018425] is running beyond physical memory limits. Current usage: 4.2 GB of 4 GB physical memory used; 8.1 GB of 8.4 GB virtual memory used. Killing container. Dump of the process-tree for container_1463557283514_0017_01_018425 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 54068 54066 54068 54068 (bash) 0 0 115843072 362 /bin/bash -c /usr/java/jdk1.8.0_60/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx6144m -Djava.io.tmpdir=/u10/yarn/nm/usercache/username/appcache/application_1463557283514_0017/container_1463557283514_0017_01_018425/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/u04/yarn/container-logs/application_1463557283514_0017/container_1463557283514_0017_01_018425 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA org.apache.hadoop.mapred.YarnChild 1x.4x.3x.9x 47528 attempt_1463557283514_0017_r_000008_1 18425 1>/u04/yarn/container-logs/application_1463557283514_0017/container_1463557283514_0017_01_018425/stdout 2>/u04/yarn/container-logs/application_1463557283514_0017/container_1463557283514_0017_01_018425/stderr |- 54073 54068 54068 54068 (java) 5355 6080 8573480960 1103372 /usr/java/jdk1.8.0_60/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx6144m -Djava.io.tmpdir=/u10/yarn/nm/usercache/username/appcache/application_1463557283514_0017/container_1463557283514_0017_01_018425/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/u04/yarn/container-logs/application_1463557283514_0017/container_1463557283514_0017_01_018425 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA org.apache.hadoop.mapred.YarnChild 1x.4x.3x.9x 47528 attempt_1463557283514_0017_r_000008_1 18425 Container killed on request. Exit code is 143 Container exited with a non-zero exit code 143
I am running benchmark tearasort program, mapper phase is going well. But when it comes to reducer phase i am getting below info. Ultimately job is failing
16/05/20 14:42:53 INFO mapreduce.Job: Task Id : attempt_1463557283514_0017_r_000008_1, Status : FAILED Container [pid=54068,containerID=container_1463557283514_0017_01_018425] is running beyond physical memory limits. Current usage: 4.2 GB of 4 GB physical memory used; 8.1 GB of 8.4 GB virtual memory used. Killing container. Dump of the process-tree for container_1463557283514_0017_01_018425 : |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE |- 54068 54066 54068 54068 (bash) 0 0 115843072 362 /bin/bash -c /usr/java/jdk1.8.0_60/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx6144m -Djava.io.tmpdir=/u10/yarn/nm/usercache/username/appcache/application_1463557283514_0017/container_1463557283514_0017_01_018425/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/u04/yarn/container-logs/application_1463557283514_0017/container_1463557283514_0017_01_018425 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA org.apache.hadoop.mapred.YarnChild 1x.4x.3x.9x 47528 attempt_1463557283514_0017_r_000008_1 18425 1>/u04/yarn/container-logs/application_1463557283514_0017/container_1463557283514_0017_01_018425/stdout 2>/u04/yarn/container-logs/application_1463557283514_0017/container_1463557283514_0017_01_018425/stderr |- 54073 54068 54068 54068 (java) 5355 6080 8573480960 1103372 /usr/java/jdk1.8.0_60/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx6144m -Djava.io.tmpdir=/u10/yarn/nm/usercache/username/appcache/application_1463557283514_0017/container_1463557283514_0017_01_018425/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/u04/yarn/container-logs/application_1463557283514_0017/container_1463557283514_0017_01_018425 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA org.apache.hadoop.mapred.YarnChild 1x.4x.3x.9x 47528 attempt_1463557283514_0017_r_000008_1 18425 Container killed on request. Exit code is 143 Container exited with a non-zero exit code 143
原文:https://stackoverflow.com/questions/37343171
最满意答案
我将Linq用于xml并填充CollectionViewSource。 然后绑定到那个而不是xmlDataProvider。
Once again, this guy's article helped me out. I moved my
Teams
XML into my Products.xml file, so I have the following format:<Products> <Product name="MyProduct1"> <Components> <Component name="MyComponent1"> <Teams> <Team id="1"/> <Team id="4"/> </Teams> </Component> </Components> </Product> <Teams> <Team name="Team A" id="1"/> <Team name="Team B" id="2"/> <Team name="Team C" id="3"/> <Team name="Team D" id="4"/> </Teams> </Products>
Then, I did the following for my ComboBox in XAML:
<ComboBox Height="23" HorizontalAlignment="Left" Margin="133,218,0,0" Name="cbo_team" VerticalAlignment="Top" Width="148" DataContext="{Binding ElementName=cbo_component, Path=SelectedItem}"> <ComboBox.ItemsSource> <Binding XPath="Teams/Team/@id" Converter="{StaticResource xmlConverter}"> <Binding.ConverterParameter> <local:XmlConverterParameter XPathTemplate="/Products/Teams/Team[{0}]" XPathCondition="@id='{0}'" /> </Binding.ConverterParameter> </Binding> </ComboBox.ItemsSource> <ComboBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding XPath=@name}" /> </DataTemplate> </ComboBox.ItemTemplate> </ComboBox>
I had to include the following in my
<Window.Resources>
in XAML:<local:XmlConverter x:Key="xmlConverter"/>
And, following his tutorial, I created two C# classes:
XmlConverter
andXmlConverterParameter
. Now my ComboBox converts a teamid
to aname
and displays thename
, so my XML is fairly DRY because the team names are only defined in one place.
相关问答
更多-
链接组合框(Linking Comboboxes)[2023-12-14]
您无法使用Open事件为控件分配值,因为它们尚未创建。 使用Load事件。 然后: Combo5 = Forms!Form_0_Cover.Combo0 You cannot use the Open event to assign values to controls as they have not yet been created. Use the Load event. Then: Combo5 = Forms!Form_0_Cover.Combo0 -
ItemsSource属性应设置为要在列表中显示的项的集合,在您的情况下是XmlDataProvider 。 用户StaticResource定位它,因为它被定义为资源。 应使用DisplayMemberPath属性来选择应使用哪个属性来显示组合框中的文本。 关于你的第一个(和3个)问题,我个人喜欢创建类而不是使用原始XML。 它给我带来的好处很少 添加包装器属性。 例如,FullName = FirstName +“”+ LastName属性。 每次我想访问值(总是字符串)时,我不必检查空值和类型安全性。 ...
-
我看到的第一件事是在update.php查询中,你实际上并没有使用where子句。 执行准备好的查询时,传入值数组,但准备好的查询中没有任何占位符。 我希望有类似的东西: $sql = "SELECT `topic`,`sub_topic`,`info`,`url` FROM `links` WHERE sub_topic=?"; $statement = $objDb->prepare($sql); $statemen ...
-
编辑 :使我的帖子更清楚。 您只需要使用self.options来获取所有声明的选项。 this.options在$.ajax({...})不起作用,因为在该上下文中将返回匿名函数。 如果你改变了这条线 $.ajax({ url: "http://ws.geonames.org/searchJSON", 至 $.ajax({ url: self.options.source, ,然后ajax调用将使用您在“构造函数”中提供的任何源URL。 然后你可以简单地做: $("#cbCoun ...
-
请参阅下面的工作代码,您可以在此处找到解决方案。
Index