<?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 Container exited with a non-zero exit code 13. Error file: prelaunch.err. on running spark-submit over docker over yarn in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Container-exited-with-a-non-zero-exit-code-13-Error-file/m-p/349246#M235576</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run spark job using spark-submit with a docker image over yarn.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the instructions in the Blog provided by cloudera in the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/" target="_blank" rel="noopener"&gt;https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I ran into an error that I couldn't fine an answer to.&lt;/P&gt;&lt;P&gt;Note: I already did all the configurations required from the post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran this command :&lt;/P&gt;&lt;P&gt;spark-submit \&lt;BR /&gt;--master yarn \&lt;BR /&gt;--deploy-mode cluster \&lt;BR /&gt;--conf spark.yarn.appMasterEnv.YARN_CONTAINER_RUNTIME_TYPE=docker \&lt;BR /&gt;--conf spark.yarn.appMasterEnv.YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=faresdev8/python3:v5 \&lt;BR /&gt;--conf spark.yarn.appMasterEnv.YARN_CONTAINER_RUNTIME_DOCKER_MOUNTS="/etc/passwd:/etc/passwd:ro,/etc/hadoop:/etc/hadoop:ro,/opt/cloudera/parcels/:/opt/cloudera/parcels/:ro,/data1/opt/cloudera/parcels/:/data1/opt/cloudera/parcels/:ro" \&lt;BR /&gt;--conf spark.executorEnv.YARN_CONTAINER_RUNTIME_TYPE=docker \&lt;BR /&gt;--conf spark.executorEnv.YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=faresdev8/python3:v5 \&lt;BR /&gt;--conf spark.executorEnv.YARN_CONTAINER_RUNTIME_DOCKER_MOUNTS="/etc/passwd:/etc/passwd:ro,/etc/hadoop:/etc/hadoop:ro,/opt/cloudera/parcels/:/opt/cloudera/parcels/:ro,/data1/opt/cloudera/parcels/:/data1/opt/cloudera/parcels/:ro" \&lt;BR /&gt;ols.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the error I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MLOpsEngineer_0-1659346343337.png"&gt;&lt;img src="https://community.cloudera.com/skins/images/D06D7978C9C8DDCE2D280E24398D4568/responsive_peak/images/image_not_found.png" alt="MLOpsEngineer_0-1659346343337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes its gives me an exit code 29. I don't understand what the problem is especially that I followed instructions properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 09:35:29 GMT</pubDate>
    <dc:creator>MLOpsEngineer</dc:creator>
    <dc:date>2022-08-01T09:35:29Z</dc:date>
    <item>
      <title>Container exited with a non-zero exit code 13. Error file: prelaunch.err. on running spark-submit over docker over yarn</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Container-exited-with-a-non-zero-exit-code-13-Error-file/m-p/349246#M235576</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run spark job using spark-submit with a docker image over yarn.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the instructions in the Blog provided by cloudera in the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/" target="_blank" rel="noopener"&gt;https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I ran into an error that I couldn't fine an answer to.&lt;/P&gt;&lt;P&gt;Note: I already did all the configurations required from the post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran this command :&lt;/P&gt;&lt;P&gt;spark-submit \&lt;BR /&gt;--master yarn \&lt;BR /&gt;--deploy-mode cluster \&lt;BR /&gt;--conf spark.yarn.appMasterEnv.YARN_CONTAINER_RUNTIME_TYPE=docker \&lt;BR /&gt;--conf spark.yarn.appMasterEnv.YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=faresdev8/python3:v5 \&lt;BR /&gt;--conf spark.yarn.appMasterEnv.YARN_CONTAINER_RUNTIME_DOCKER_MOUNTS="/etc/passwd:/etc/passwd:ro,/etc/hadoop:/etc/hadoop:ro,/opt/cloudera/parcels/:/opt/cloudera/parcels/:ro,/data1/opt/cloudera/parcels/:/data1/opt/cloudera/parcels/:ro" \&lt;BR /&gt;--conf spark.executorEnv.YARN_CONTAINER_RUNTIME_TYPE=docker \&lt;BR /&gt;--conf spark.executorEnv.YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=faresdev8/python3:v5 \&lt;BR /&gt;--conf spark.executorEnv.YARN_CONTAINER_RUNTIME_DOCKER_MOUNTS="/etc/passwd:/etc/passwd:ro,/etc/hadoop:/etc/hadoop:ro,/opt/cloudera/parcels/:/opt/cloudera/parcels/:ro,/data1/opt/cloudera/parcels/:/data1/opt/cloudera/parcels/:ro" \&lt;BR /&gt;ols.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the error I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MLOpsEngineer_0-1659346343337.png"&gt;&lt;img src="https://community.cloudera.com/skins/images/D06D7978C9C8DDCE2D280E24398D4568/responsive_peak/images/image_not_found.png" alt="MLOpsEngineer_0-1659346343337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes its gives me an exit code 29. I don't understand what the problem is especially that I followed instructions properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 09:35:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Container-exited-with-a-non-zero-exit-code-13-Error-file/m-p/349246#M235576</guid>
      <dc:creator>MLOpsEngineer</dc:creator>
      <dc:date>2022-08-01T09:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Container exited with a non-zero exit code 13. Error file: prelaunch.err. on running spark-submit over docker over yarn</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Container-exited-with-a-non-zero-exit-code-13-Error-file/m-p/349268#M235584</link>
      <description>&lt;P&gt;Okay so I solved this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if anyone got something related check on these 3 things:&lt;/P&gt;&lt;P&gt;1- spark version does not mismatch the python version. Spark 2 doesn't support python higher than 3.7.&lt;/P&gt;&lt;P&gt;2- Make sure that your python code starts a spark session, I forgot that I removed that when I was experimenting.&lt;/P&gt;&lt;P&gt;3- Make sure there are no problems in the code it self and test it on another machine to check if it works properly&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 13:10:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Container-exited-with-a-non-zero-exit-code-13-Error-file/m-p/349268#M235584</guid>
      <dc:creator>MLOpsEngineer</dc:creator>
      <dc:date>2022-08-01T13:10:45Z</dc:date>
    </item>
  </channel>
</rss>

