<?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: Disable dbutils.fs.put() write to console &amp;quot;Wrote x bytes&amp;quot; in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9562#M4901</link>
    <description>&lt;P&gt;what mean by suppress , can you please share code block&lt;/P&gt;</description>
    <pubDate>Sat, 11 Feb 2023 05:28:49 GMT</pubDate>
    <dc:creator>Aviral-Bhardwaj</dc:creator>
    <dc:date>2023-02-11T05:28:49Z</dc:date>
    <item>
      <title>Disable dbutils.fs.put() write to console "Wrote x bytes"</title>
      <link>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9561#M4900</link>
      <description>&lt;P&gt;Hey all, does anyone know how to suppress the output of dbutils.fs.put() ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 21:22:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9561#M4900</guid>
      <dc:creator>Jfoxyyc</dc:creator>
      <dc:date>2023-02-10T21:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Disable dbutils.fs.put() write to console "Wrote x bytes"</title>
      <link>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9562#M4901</link>
      <description>&lt;P&gt;what mean by suppress , can you please share code block&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 05:28:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9562#M4901</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2023-02-11T05:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Disable dbutils.fs.put() write to console "Wrote x bytes"</title>
      <link>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9563#M4902</link>
      <description>&lt;P&gt;write dbutils.fs.put('abfs://some_address_to_some_abfs_location_you_have/helloworld.txt','Hello World',True) and notice that it outputs "Wrote X bytes." to the console stdout. I don't want "Wrote X bytes" to be written to the console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can suppress dbutils.fs.put()'s output by setting sys.stdout = open("/dev/null","w") and just writing it out somewhere useless, but this doesn't work in a threaded application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could suppress the output by getting rid of sys.stdout like above, and then use logging, and write warnings, but I'd rather not have a warning written as I'm using warnings and errors for other purposes.&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/693iAE9F4844FE8E6901/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 03:22:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9563#M4902</guid>
      <dc:creator>Jfoxyyc</dc:creator>
      <dc:date>2023-02-13T03:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Disable dbutils.fs.put() write to console "Wrote x bytes"</title>
      <link>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9564#M4903</link>
      <description>&lt;P&gt;Hi @Jordan Fox​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 07:14:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9564#M4903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-13T07:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Disable dbutils.fs.put() write to console "Wrote x bytes"</title>
      <link>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9565#M4904</link>
      <description>&lt;P&gt;No, have not resolved the issue. Still Wrote 105783245 bytes. If dbutils.fs.put(), which is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;put(file: String, contents: String, overwrite: boolean = false): boolean&lt;/B&gt;&amp;nbsp;-&amp;gt; Writes the given String out to a file, encoded in UTF-8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could instead be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;put(file: String, contents: String, overwrite: boolean = false, verbose: boolean = true): boolean&lt;/B&gt;&amp;nbsp;-&amp;gt; Writes the given String out to a file, encoded in UTF-8, defaults message to stdout unless verbose=false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would be great.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 05:32:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/disable-dbutils-fs-put-write-to-console-quot-wrote-x-bytes-quot/m-p/9565#M4904</guid>
      <dc:creator>Jfoxyyc</dc:creator>
      <dc:date>2023-02-14T05:32:33Z</dc:date>
    </item>
  </channel>
</rss>

