<?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: CDSW Job Exits with &amp;quot;Engine exited with status 2.&amp;quot; on Importing in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Job-Exits-with-quot-Engine-exited-with-status-2-quot-on/m-p/366442#M239581</link>
    <description>&lt;P&gt;Solved&lt;BR /&gt;&lt;BR /&gt;R_HOME was not setup properly, I set the environment variable to&amp;nbsp;/usr/local/lib/R and that solved the problem.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 07:04:27 GMT</pubDate>
    <dc:creator>DataSphereX</dc:creator>
    <dc:date>2023-03-20T07:04:27Z</dc:date>
    <item>
      <title>CDSW Job Exits with "Engine exited with status 2." on Importing</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Job-Exits-with-quot-Engine-exited-with-status-2-quot-on/m-p/366330#M239549</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am getting the following error on Importing R globalenv module with Python3, other modules are importing fine.&amp;nbsp;&lt;BR /&gt;Error comes on following modules:&lt;BR /&gt;from rpy2.robjects import globalenv&lt;BR /&gt;import rpy2.robjects as robjects&lt;BR /&gt;from rpy2.robjects.packages import importr&lt;BR /&gt;from rpy2.robjects import pandas2ri&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="cm-keyword"&gt;import&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;os&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class="cm-keyword"&gt;for&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;key&lt;/SPAN&gt; &lt;SPAN class="cm-keyword"&gt;in&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;os&lt;/SPAN&gt;.&lt;SPAN class="cm-property"&gt;environ&lt;/SPAN&gt;:
    &lt;SPAN class="cm-keyword"&gt;if&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;key&lt;/SPAN&gt; &lt;SPAN class="cm-keyword"&gt;in&lt;/SPAN&gt; [&lt;SPAN class="cm-string"&gt;'R_LIBS'&lt;/SPAN&gt;, &lt;SPAN class="cm-string"&gt;'LD_LIBRARY_PATH'&lt;/SPAN&gt;, &lt;SPAN class="cm-string"&gt;'R_HOME'&lt;/SPAN&gt;]:
        &lt;SPAN class="cm-builtin"&gt;print&lt;/SPAN&gt;(&lt;SPAN class="cm-variable"&gt;key&lt;/SPAN&gt;, &lt;SPAN class="cm-string"&gt;'=&amp;gt;'&lt;/SPAN&gt;, &lt;SPAN class="cm-variable"&gt;os&lt;/SPAN&gt;.&lt;SPAN class="cm-property"&gt;environ&lt;/SPAN&gt;[&lt;SPAN class="cm-variable"&gt;key&lt;/SPAN&gt;])&lt;/PRE&gt;&lt;PRE&gt;LD_LIBRARY_PATH =&amp;gt; /data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p78.21656418/lib/hadoop/lib/native:/data/cloudera/parcels/PTY_BDP-7.2.0.26_CDP7.p0/jpeplite/lib/*:/data/cloudera/parcels/PTY_BDP-7.2.0.26_CDP7.p0/pepspark/lib/*:/data/cloudera/parcels/PTY_BDP-7.2.0.26_CDP7.p0/pephive/lib/*:/usr/lib/x86_64-linux-gnu/:/usr/local/lib/R/lib/
R_LIBS =&amp;gt; /usr/lib/x86_64-linux-gnu/:/usr/local/lib/R/lib/:/home/cdsw/R:/usr/local/lib/R/library
R_HOME =&amp;gt; /usr/local/bin/R&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class="cm-keyword"&gt;import&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;rpy2&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class="cm-keyword"&gt;from&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;rpy2&lt;/SPAN&gt; &lt;SPAN class="cm-keyword"&gt;import&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;situation&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class="cm-keyword"&gt;from&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;rpy2&lt;/SPAN&gt;.&lt;SPAN class="cm-property"&gt;robjects&lt;/SPAN&gt; &lt;SPAN class="cm-keyword"&gt;import&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;globalenv&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;Engine exited with status 2.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Configurations used:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataSphereX_0-1679034176937.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36997i5208F1D960816F64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DataSphereX_0-1679034176937.png" alt="DataSphereX_0-1679034176937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These Environment variables are important cannot change that,&lt;BR /&gt;I have tried running the code from CDSW sessions and even through python shell of my docker container that works fine.&amp;nbsp;&lt;BR /&gt;I cannot find any documentation regarding this particular error.&lt;BR /&gt;There is another solved question on the community:&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Workbench-exits-every-time-lm-fit-command-is-run-in-python-2/td-p/60758" target="_blank" rel="noopener"&gt;Workbench-exits-every-time-lm-fit-command-is-run-in-python-2/td-p/60758&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;My job Engine is : Base Image v15 , docker repository engine:15&lt;BR /&gt;Don't have Admin rights so reinstalling R and other stuff is not possible.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any leads are helpful&amp;nbsp;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 06:32:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-Job-Exits-with-quot-Engine-exited-with-status-2-quot-on/m-p/366330#M239549</guid>
      <dc:creator>DataSphereX</dc:creator>
      <dc:date>2023-03-17T06:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW Job Exits with "Engine exited with status 2." on Importing</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Job-Exits-with-quot-Engine-exited-with-status-2-quot-on/m-p/366442#M239581</link>
      <description>&lt;P&gt;Solved&lt;BR /&gt;&lt;BR /&gt;R_HOME was not setup properly, I set the environment variable to&amp;nbsp;/usr/local/lib/R and that solved the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 07:04:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-Job-Exits-with-quot-Engine-exited-with-status-2-quot-on/m-p/366442#M239581</guid>
      <dc:creator>DataSphereX</dc:creator>
      <dc:date>2023-03-20T07:04:27Z</dc:date>
    </item>
  </channel>
</rss>

