<?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: Exception &amp;quot;java.nio.charset.MalformedInputException: Input length = 1&amp;quot; when creating data profile on Docker Container Service (10.4 LTS) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/exception-quot-java-nio-charset-malformedinputexception-input/m-p/3624#M610</link>
    <description>&lt;P&gt;The&amp;nbsp;&lt;B&gt;MalformedInputException&lt;/B&gt;&amp;nbsp;is an exception in the&amp;nbsp;&lt;B&gt;java.nio.charset&lt;/B&gt;&amp;nbsp;package in Java that indicates that an input sequence is malformed or cannot be decoded correctly using a specific character set.&lt;/P&gt;&lt;P&gt;```java.nio.charset.MalformedInputException``` is caused by the default locale settings difference in the DCS cluster. After setting the below environment variables in the DCS cluster environment variables, you should be able to run your code fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly add the below settings in the environment variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;LANG=C.UTF-8&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;LC_ALL=C.UTF-8&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By setting LANG=C.UTF-8 and LC_ALL=C.UTF-8, you are configuring the locale to use the UTF-8 character encoding, which can help address issues related to character encoding and malformed input when working with Java processes.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 14:30:28 GMT</pubDate>
    <dc:creator>User16752242622</dc:creator>
    <dc:date>2023-06-08T14:30:28Z</dc:date>
    <item>
      <title>Exception "java.nio.charset.MalformedInputException: Input length = 1" when creating data profile on Docker Container Service (10.4 LTS)</title>
      <link>https://community.databricks.com/t5/data-engineering/exception-quot-java-nio-charset-malformedinputexception-input/m-p/3623#M609</link>
      <description>&lt;P&gt;I am encountering an issue while attempting to create a data profile on clusters using Docker Container Service (version 10.4 LTS). I keep receiving the following exception:&lt;/P&gt;&lt;P&gt;&lt;B&gt;java.nio.charset.MalformedInputException: Input length = 1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;What's puzzling is that I have tested the data profile creation process on clusters without Docker, using the same library dependencies, and it works flawlessly. However, when utilizing Docker Container Service, this exception consistently occurs regardless of the input data.&lt;/P&gt;&lt;P&gt;I have made several attempts with different data sets, but the problem persists. I suspect that Docker Container Service may be interfering with the character encoding or input handling in some way, leading to this exception.&lt;/P&gt;&lt;P&gt;Has anyone else encountered a similar issue with Docker Container Service and the &lt;/P&gt;&lt;P&gt;java.nio.charset.MalformedInputException? I would greatly appreciate any insights, experiences, or possible solutions to help me resolve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 08:15:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exception-quot-java-nio-charset-malformedinputexception-input/m-p/3623#M609</guid>
      <dc:creator>adrianna2942842</dc:creator>
      <dc:date>2023-06-05T08:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exception "java.nio.charset.MalformedInputException: Input length = 1" when creating data profile on Docker Container Service (10.4 LTS)</title>
      <link>https://community.databricks.com/t5/data-engineering/exception-quot-java-nio-charset-malformedinputexception-input/m-p/3624#M610</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;B&gt;MalformedInputException&lt;/B&gt;&amp;nbsp;is an exception in the&amp;nbsp;&lt;B&gt;java.nio.charset&lt;/B&gt;&amp;nbsp;package in Java that indicates that an input sequence is malformed or cannot be decoded correctly using a specific character set.&lt;/P&gt;&lt;P&gt;```java.nio.charset.MalformedInputException``` is caused by the default locale settings difference in the DCS cluster. After setting the below environment variables in the DCS cluster environment variables, you should be able to run your code fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly add the below settings in the environment variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;LANG=C.UTF-8&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;LC_ALL=C.UTF-8&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By setting LANG=C.UTF-8 and LC_ALL=C.UTF-8, you are configuring the locale to use the UTF-8 character encoding, which can help address issues related to character encoding and malformed input when working with Java processes.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 14:30:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exception-quot-java-nio-charset-malformedinputexception-input/m-p/3624#M610</guid>
      <dc:creator>User16752242622</dc:creator>
      <dc:date>2023-06-08T14:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exception "java.nio.charset.MalformedInputException: Input length = 1" when creating data profile on Docker Container Service (10.4 LTS)</title>
      <link>https://community.databricks.com/t5/data-engineering/exception-quot-java-nio-charset-malformedinputexception-input/m-p/3625#M611</link>
      <description>&lt;P&gt;Hi @Adrianna Klank​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from @Akash Bhat​​, and I was checking back to see if the suggestion helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else, If you have any solution, please share it with the community, as it can be helpful to others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 11:39:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exception-quot-java-nio-charset-malformedinputexception-input/m-p/3625#M611</guid>
      <dc:creator>Vartika</dc:creator>
      <dc:date>2023-06-09T11:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exception "java.nio.charset.MalformedInputException: Input length = 1" when creating data profile on Docker Container Service (10.4 LTS)</title>
      <link>https://community.databricks.com/t5/data-engineering/exception-quot-java-nio-charset-malformedinputexception-input/m-p/3626#M612</link>
      <description>&lt;P&gt;Thank you for a reply! I have checked that the above solution fixed the exception. &lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 11:52:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exception-quot-java-nio-charset-malformedinputexception-input/m-p/3626#M612</guid>
      <dc:creator>adrianna2942842</dc:creator>
      <dc:date>2023-06-12T11:52:09Z</dc:date>
    </item>
  </channel>
</rss>

