<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: HADOOP:Application  failed 2 times due to AM Container for  exited with  exitCode: 1 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/389799#M247090</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111386"&gt;@bigluman&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Hadoop experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/89137"&gt;@sandeepV2&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/33734"&gt;@Asok&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2024 17:46:17 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2024-07-02T17:46:17Z</dc:date>
    <item>
      <title>HADOOP:Application  failed 2 times due to AM Container for  exited with  exitCode: 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/389787#M247083</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;我正在尝试使用 Sqoop 将数据从 PostgreSQL 提取到 HDFS，但一直收到错误&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:20,913 INFO mapreduce.JobSubmitter：拆分数：1 &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:21,183 INFO mapreduce.JobSubmitter：提交作业令牌：job_1719844718570_0005 &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:21,183 INFO mapreduce.JobSubmitter：使用令牌执行：[] &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:21,336 INFO conf.Configuration：未找到 resource-types.xml &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:21,337 INFO resource.ResourceUtils：无法找到“resource-types.xml”。&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:21,382 INFO impl.YarnClientImpl：已提交的应用程序 application_1719844718570_0005 &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:21,410 INFO mapreduce.Job：跟踪作业的 URL：&lt;/FONT&gt;&lt;/FONT&gt;&lt;A href="http://master:8088/proxy/application_1719844718570_0005/" target="_blank" rel="noopener"&gt;&lt;FONT&gt;&lt;FONT&gt;http://master:8088/proxy/application_1719844718570_0005/&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:21,411 INFO mapreduce.Job：正在运行的作业：job_1719844718570_0005 &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:25,455 INFO mapreduce.Job：作业 job_1719844718570_0005 正在运行uber 模式：false &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13：26：25,456 INFO mapreduce.Job：map 0％reduce 0％&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13：26：25,480 INFO mapreduce.Job：作业 job_1719844718570_0005 失败，状态为 FAILED，原因是：应用程序 application_1719844718570_0005 由于 AM 而失败 2 次，appattempt_1719844718570_0005_000002 的容器退出，退出代码为：1&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;此次尝试失败。诊断：[2024-07-02 13：26：24.824]容器启动异常。&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;容器 ID：container_1719844718570_0005_02_000001&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;退出代码：1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;[2024-07-02 13:26:24.826]容器以非零退出代码 1 退出。错误文件：prelaunch.err。prelaunch.err&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;的最后 4096 个字节：&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;stderr 的最后 4096 个字节：&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;log4j：WARN 找不到记录器 (org.apache.hadoop.mapreduce.v2.app.MRAppMaster) 的附加程序。&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;[2024-07-02 13:26:24.827]容器以非零退出代码 1 退出。错误文件：prelaunch.err。prelaunch.err&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;的最后 4096 个字节：&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;stderr 的最后 4096 个字节：&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;log4j：WARN 找不到记录器 (org.apache.hadoop.mapreduce.v2.app.MRAppMaster) 的附加程序。&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;应用程序失败。2024-07-02 &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;13:26:25,494 INFO mapreduce.Job：计数器：0 &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:25,502 WARN mapreduce.Counters：Group FileSystemCounters 已弃用。改用 org.apache.hadoop.mapreduce.FileSystemCounter &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:25,503 INFO mapreduce.ImportJobBase：在 18.3462 秒内传输了 0 个字节（0 字节/秒）&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:25,508 WARN mapreduce.Counters：组 org.apache.hadoop.mapred.Task$Counter 已弃用。改用 org.apache.hadoop.mapreduce.TaskCounter &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;2024-07-02 13:26:25,509 INFO mapreduce.ImportJobBase：已检索到 0 条记录。2024-07-02 &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;13:26:25,509 错误 tool.ImportTool：导入失败：导入作业失败！&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;&lt;DIV class="flex-col gap-1 md:gap-3"&gt;&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;&lt;DIV class="min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 juice:w-full juice:items-end overflow-x-auto gap-2"&gt;&lt;DIV class="flex w-full flex-col gap-1 juice:empty:hidden juice:first:pt-[3px]"&gt;&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;“然后，我还向 mapred-site.xml 和 yarn-site.xml 添加了以下属性：&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium"&gt;&lt;DIV class="flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md"&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;xml&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;DIV class="flex items-center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="flex items-center"&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;lt;属性&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;gt; &amp;lt;名称&amp;gt;yarn.application.classpath&amp;lt;/名称&amp;gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;lt;值&amp;gt;/usr/local/hadoop-3.1.3/etc/hadoop:/usr/local/hadoop-3.1.3/share/hadoop/common/lib/*:/usr/local/hadoop-3.1.3/share/hadoop/common/*:/usr/local/hadoop-3.1.3/share/hadoop/hdfs:/usr/local/hadoop-3.1.3/share/hadoop/hdfs/lib/*:/usr/local/hadoop-3.1.3/share /hadoop/hdfs/*:/usr/local/hadoop-3.1.3/share/hadoop/mapreduce/lib/*:/usr/local/hadoop-3.1.3/share/hadoop/mapreduce/*:/usr/local/hadoop-3.1.3/share/hadoop/yarn:/usr/local/hadoop-3.1.3/share/hadoop/yarn/lib/*:/usr/local/hadoop-3.1.3/share/hadoop/yarn/*&amp;lt;/value&amp;gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;lt;/property&amp;gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jul 2024 08:27:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/389787#M247083</guid>
      <dc:creator>bigluman</dc:creator>
      <dc:date>2024-07-02T08:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: HADOOP:Application  failed 2 times due to AM Container for  exited with  exitCode: 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/389798#M247089</link>
      <description>&lt;P&gt;Translation:&lt;/P&gt;
&lt;P&gt;I'm trying to use Sqoop to pull data from PostgreSQL to HDFS but I keep getting the error&lt;/P&gt;
&lt;P&gt;2024-07-02 13:26:20,913 INFO mapreduce.JobSubmitter: Number of splits: 1&lt;BR /&gt;2024-07-02 13:26:21,183 INFO mapreduce.JobSubmitter: Submit job token: job_1719844718570_0005&lt;BR /&gt;2024-07-02 13:26:21,183 INFO mapreduce.JobSubmitter: Executing with token: []&lt;BR /&gt;2024-07-02 13:26:21,336 INFO conf.Configuration: resource-types.xml not found&lt;BR /&gt;2024-07-02 13:26:21,337 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'.&lt;BR /&gt;2024-07-02 13:26:21,382 INFO impl.YarnClientImpl: Submitted application application_1719844718570_0005&lt;BR /&gt;2024-07-02 13:26:21,410 INFO mapreduce.Job: URL of tracking job: &lt;A href="http://master:8088/proxy/application_1719844718570_0005/" target="_blank"&gt;http://master:8088/proxy/application_1719844718570_0005/&lt;/A&gt;&lt;BR /&gt;2024-07-02 13:26:21,411 INFO mapreduce.Job: Running job: job_1719844718570_0005&lt;BR /&gt;2024-07-02 13:26:25,455 INFO mapreduce.Job: Job job_1719844718570_0005 is running uber mode: false&lt;BR /&gt;2024-07-02 13:26:25,456 INFO mapreduce.Job: map 0%reduce 0%&lt;BR /&gt;2024-07-02 13:26:25,480 INFO mapreduce.Job: Job job_1719844718570_0005 failed with status FAILED due to: Application application_1719844718570_0005 failed 2 times due to AM, appattempt_1719844718570_0005_000 The container exited with 002, the exit code is: 1&lt;BR /&gt;This attempt failed. Diagnosis: [2024-07-02 13:26:24.824] Container startup abnormality.&lt;BR /&gt;Container ID: container_1719844718570_0005_02_000001&lt;BR /&gt;Exit code: 1&lt;/P&gt;
&lt;P&gt;[2024-07-02 13:26:24.826] Container exited with non-zero exit code 1. Error file: prelaunch.err. prelaunch.err&lt;BR /&gt;The last 4096 bytes of:&lt;BR /&gt;Last 4096 bytes of stderr:&lt;BR /&gt;log4j: WARN No appender found for logger (org.apache.hadoop.mapreduce.v2.app.MRAppMaster). [2024-07-02 13:26:24.827] Container exited with non-zero exit code 1. Error file: prelaunch.err. prelaunch.err&lt;BR /&gt;The last 4096 bytes of:&lt;BR /&gt;Last 4096 bytes of stderr:&lt;BR /&gt;log4j: WARN No appender found for logger (org.apache.hadoop.mapreduce.v2.app.MRAppMaster). Application failed. 2024-07-02&lt;BR /&gt;13:26:25,494 INFO mapreduce.Job: Counter: 0&lt;BR /&gt;2024-07-02 13:26:25,502 WARN mapreduce.Counters: Group FileSystemCounters is deprecated. Use org.apache.hadoop.mapreduce.FileSystemCounter instead&lt;BR /&gt;2024-07-02 13:26:25,503 INFO mapreduce.ImportJobBase: 0 bytes transferred in 18.3462 seconds (0 bytes/sec)&lt;BR /&gt;2024-07-02 13:26:25,508 WARN mapreduce.Counters: Group org.apache.hadoop.mapred.Task$Counter is deprecated. Use org.apache.hadoop.mapreduce.TaskCounter instead&lt;BR /&gt;2024-07-02 13:26:25,509 INFO mapreduce.ImportJobBase: 0 records retrieved. 2024-07-02&lt;BR /&gt;13:26:25,509 Error tool.ImportTool: Import failed: Import job failed!&lt;/P&gt;
&lt;P&gt;"I then also added the following properties to mapred-site.xml and yarn-site.xml:&lt;/P&gt;
&lt;P&gt;xml&lt;BR /&gt;&lt;BR /&gt;&amp;lt;properties&lt;BR /&gt;&amp;gt; &amp;lt;name&amp;gt;yarn.application.classpath&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;/usr/local/hadoop-3.1.3/etc/hadoop:/usr/local/hadoop-3.1.3/share/hadoop/common/lib/*:/usr/local/hadoop-3.1.3/ share/hadoop/common/*:/usr/local/hadoop-3.1.3/share/hadoop/hdfs:/usr/local/hadoop-3.1.3/share/hadoop/hdfs/lib/*:/usr/local /hadoop-3.1.3/share /hadoop/hdfs/*:/usr/local/hadoop-3.1.3/share/hadoop/mapreduce/lib/*:/usr/local/hadoop-3.1.3/share/hadoop /mapreduce/*:/usr/local/hadoop-3.1.3/share/hadoop/yarn:/usr/local/hadoop-3.1.3/share/hadoop/yarn/lib/*:/usr/local/hadoop- 3.1.3/share/hadoop/yarn/*&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 17:43:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/389798#M247089</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-07-02T17:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: HADOOP:Application  failed 2 times due to AM Container for  exited with  exitCode: 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/389799#M247090</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111386"&gt;@bigluman&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Hadoop experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/89137"&gt;@sandeepV2&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/33734"&gt;@Asok&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 17:46:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/389799#M247090</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-07-02T17:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: HADOOP:Application  failed 2 times due to AM Container for  exited with  exitCode: 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/389947#M247120</link>
      <description>&lt;P&gt;Your Application Master is failing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2024-07-02 13:26:25,480 INFO mapreduce.Job: Job job_1719844718570_0005 failed with status FAILED due to: Application application_1719844718570_0005 failed 2 times due to AM, appattempt_1719844718570_0005_000 The container exited with 002, the exit code is: 1
This attempt failed. Diagnosis: [2024-07-02 13:26:24.824] Container startup abnormality.
Container ID: container_1719844718570_0005_02_000001
Exit code: 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Check the yarn application logs using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;yarn logs -applicationId &amp;lt;Application ID&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 14:31:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/389947#M247120</guid>
      <dc:creator>Asok</dc:creator>
      <dc:date>2024-07-06T14:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: HADOOP:Application  failed 2 times due to AM Container for  exited with  exitCode: 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/390032#M247159</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111386"&gt;@bigluman&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 18:36:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HADOOP-Application-failed-2-times-due-to-AM-Container-for/m-p/390032#M247159</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-07-09T18:36:06Z</dc:date>
    </item>
  </channel>
</rss>

