<?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>topic Re: java.lang.Exception: Unable to start python kernel for ReplId-79217-e05fc-0a4ce-2, kernel exited with exit code 1. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/java-lang-exception-unable-to-start-python-kernel-for-replid/m-p/10573#M5736</link>
    <description>&lt;P&gt;@Harsh Paliwal​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error message suggests that there might be a conflict with the xtables lock.&lt;/P&gt;&lt;P&gt;One thing you could try is to add the  -w option as suggested by the error message. You can add the following command to the beginning of your notebook to attempt to release any held xtables lock:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sh sudo iptables -w -F&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If this does not resolve the issue, you might want to check if there are any running processes that are using xtables lock. You can do this by running the following command in a terminal:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sudo lsof /usr/sbin/xtables-multi&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If there are any processes listed, you can try killing them with the following command:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sudo kill -9 &amp;lt;process_id&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If none of the above works, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2023 14:22:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-10T14:22:08Z</dc:date>
    <item>
      <title>java.lang.Exception: Unable to start python kernel for ReplId-79217-e05fc-0a4ce-2, kernel exited with exit code 1.</title>
      <link>https://community.databricks.com/t5/data-engineering/java-lang-exception-unable-to-start-python-kernel-for-replid/m-p/10572#M5735</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/786i0A76C735EADFB998/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;I am running a parameterized autoloader notebook in a workflow.&lt;/P&gt;&lt;P&gt;This notebook is being called 29 times in parallel, and FYI UC is also enabled.&lt;/P&gt;&lt;P&gt;I am facing this error:&lt;/P&gt;&lt;P&gt;java.lang.Exception: Unable to start python kernel for ReplId-79217-e05fc-0a4ce-2, kernel exited with exit code 1.&lt;/P&gt;&lt;P&gt;----- stdout -----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;----- stderr -----&lt;/P&gt;&lt;P&gt;Another app is currently holding the xtables lock. Perhaps you want to use the -w option?&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;  File &amp;amp;quot;/databricks/spark/python/pyspark/wrapped_python.py&amp;amp;quot;, line 136, in &amp;amp;lt;module&amp;amp;gt;&lt;/P&gt;&lt;P&gt;    do_all_setup_for_username(sys.argv[1])&lt;/P&gt;&lt;P&gt;  File &amp;amp;quot;/databricks/spark/python/pyspark/wrapped_python.py&amp;amp;quot;, line 104, in do_all_setup_for_username&lt;/P&gt;&lt;P&gt;    subprocess.check_call(&lt;/P&gt;&lt;P&gt;  File &amp;amp;quot;/usr/lib/python3.9/subprocess.py&amp;amp;quot;, line 373, in check_call&lt;/P&gt;&lt;P&gt;    raise CalledProcessError(retcode, cmd)&lt;/P&gt;&lt;P&gt;subprocess.CalledProcessError: Command '['iptables', '-I', 'OUTPUT', '-m', 'owner', '--uid-owner', '1014', '-d', '127.0.0.1', '-p', 'tcp', '--destination-port', '40491', '-j', 'ACCEPT']' returned non-zero exit status 4.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 09:47:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/java-lang-exception-unable-to-start-python-kernel-for-replid/m-p/10572#M5735</guid>
      <dc:creator>Harsh_Paliwal</dc:creator>
      <dc:date>2023-01-27T09:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.Exception: Unable to start python kernel for ReplId-79217-e05fc-0a4ce-2, kernel exited with exit code 1.</title>
      <link>https://community.databricks.com/t5/data-engineering/java-lang-exception-unable-to-start-python-kernel-for-replid/m-p/10573#M5736</link>
      <description>&lt;P&gt;@Harsh Paliwal​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error message suggests that there might be a conflict with the xtables lock.&lt;/P&gt;&lt;P&gt;One thing you could try is to add the  -w option as suggested by the error message. You can add the following command to the beginning of your notebook to attempt to release any held xtables lock:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sh sudo iptables -w -F&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If this does not resolve the issue, you might want to check if there are any running processes that are using xtables lock. You can do this by running the following command in a terminal:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sudo lsof /usr/sbin/xtables-multi&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If there are any processes listed, you can try killing them with the following command:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sudo kill -9 &amp;lt;process_id&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If none of the above works, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 14:22:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/java-lang-exception-unable-to-start-python-kernel-for-replid/m-p/10573#M5736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-10T14:22:08Z</dc:date>
    </item>
  </channel>
</rss>

